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
When using the TinyMCE editor, it is possible to copy formatted text and paste it with formatting into the editor.
I have a script that generates HTML code for the editor and I want to paste the rich text into the editor, rather than going to the source code tab and paste the raw HTML there.
Unfortunately, I cannot get this to work with klembord...
Here is a minimal example that takes an existing clipboard and just puts it again into the clipboard:
When using the TinyMCE editor, it is possible to copy formatted text and paste it with formatting into the editor.
I have a script that generates HTML code for the editor and I want to paste the rich text into the editor, rather than going to the source code tab and paste the raw HTML there.
Unfortunately, I cannot get this to work with klembord...
Here is a minimal example that takes an existing clipboard and just puts it again into the clipboard:
But if I paste then into the editor, I just see the raw text...
I further noticed that TinyMCE puts
<!-- x-tinymce/html -->
in front of the HTML content, and I tried that with simple examples such as:Which also does not work.
Is there something I do wrong, do I have to set the HTML code differently? Has anyone used klembord to paste stuff to TinyMCE?
The text was updated successfully, but these errors were encountered: