Closed Ritchie333 closed 5 months ago
if you modify smiley.js directly it will overwrite when I upgrade the library. You should download the sources of that component from ckeditor and add the unminified edited version.
I've come up with a better solution that avoids changing the ckeditor source. It should also have a better chance of not having to be rewritten with an upgrade to CKEditor5 (if that ever happens).
The alternative solution is, when getting the returned data from the editor window, identify smileys without a leading space, and add them where appropriate.
added to 1.7.0
Convert unicode non-breaking spaces to ASCII spaces on handling a previewed or posted message - without this, the parser doesn't recognise smileys correctly. Redirect drag / drop events to the plupload element if it exists - without this, dragging an image to the edit window embeds it as base64 text, crashing the browser.