You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My humble apologies if this is somewhere already, but I've done (some) Googling and digging and I cannot find it.
I have a database full of v1.6 text that I need to now edit using the v2.0 editor.
Given the move to <ol> and going with <div> instead of <code></code> amongst other things, is there some function that can be called before posting the data into the editor, for re-editing?
I get that going the other way, we have quill.getSemanticHTML(), but what about pasting in?
For clarity - our code pastes the database HTML directly into the editing area, so I guess we should NOT be doing that(!)
My humble apologies if this is somewhere already, but I've done (some) Googling and digging and I cannot find it.
I have a database full of v1.6 text that I need to now edit using the v2.0 editor.
Given the move to
<ol>
and going with<div>
instead of<code></code>
amongst other things, is there some function that can be called before posting the data into the editor, for re-editing?I get that going the other way, we have quill.getSemanticHTML(), but what about pasting in?
For clarity - our code pastes the database HTML directly into the editing area, so I guess we should NOT be doing that(!)
Aha...
https://quilljs.com/docs/api/#setcontents
However, this does not format the HTML into the new 'modus', it simply adds it as pure text.
Oh wait...
I see there's
quill.clipboard.dangerouslyPasteHTML
- my issue is solved.I might leave this here? May help others like me!
The text was updated successfully, but these errors were encountered: