Skip to content

Conversation

@Ritchie333
Copy link
Contributor

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.

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.
@xchwarze
Copy link
Owner

xchwarze commented May 1, 2024

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.

revert ckeditor source - this is the wrong place to fix this
@Ritchie333
Copy link
Contributor Author

Ritchie333 commented May 2, 2024

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.

@xchwarze xchwarze merged commit aa8210d into xchwarze:master May 2, 2024
@xchwarze
Copy link
Owner

xchwarze commented May 2, 2024

added to 1.7.0

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 this pull request may close these issues.

2 participants