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

parse HTML using parser plugins when creating editor #296

Closed
bantic opened this issue Jan 19, 2016 · 1 comment · Fixed by #297
Closed

parse HTML using parser plugins when creating editor #296

bantic opened this issue Jan 19, 2016 · 1 comment · Fixed by #297
Assignees

Comments

@bantic
Copy link
Collaborator

bantic commented Jan 19, 2016

It should be possible to do:

editor = new Editor({html: 'some html...', parserPlugins: [parseNodeFn, ...]});

and have the html be parsed using the passed plugins the way that it works now when pasting in HTML.

Here's an example gist showing parsing images from HTML, e.g.

@bantic
Copy link
Collaborator Author

bantic commented Jan 19, 2016

cc @jordpo

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

Successfully merging a pull request may close this issue.

1 participant