Re:Slate JS – A customizable framework for building rich tex...
by sbr464 on Thursday November 15, 2018 @05:16AM
(#18458185)
Curious also about any gotchas, etc.
[ Parent
| on HN ]
Re:Slate JS – A customizable framework for building rich tex...
by c-smile on Thursday November 15, 2018 @11:43AM
(#18460760)
Here is "DOM canibalizer" module from my HTML-NOTEPAD ( https://html-notepad.com ) :
https://github.com/c-smile/sciter-sdk/blob/master/notepad/re...
While it looks pretty simple it cleans MS Word and browser artifacts in pasted markup pretty well.
But I shall admit that such simplicity is possible only with sciter (that html-notepad is based on). E.g. that canonicalizeDOM gets called before the content appears in target document. So all this does not affect undo/redo stack, etc.