Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runCommand() runs function(chunks, mode), not function(mode, chunks) #29

Closed
jywarren opened this issue May 31, 2016 · 2 comments
Closed

Comments

@jywarren
Copy link
Collaborator

Unless I've made some mistake:

editor.runCommand(function(mode, chunks) { console.log(mode, chunks) })
> HtmlChunks {before: "<p>", startTag: "", selection: "", endTag: "", after: "lalalala</p>↵"} "wysiwyg"
@bevacqua
Copy link
Owner

You are right. We should probably leave it be and fix the documentation.

@jywarren
Copy link
Collaborator Author

Fixed in #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants