Replies: 1 comment
-
@nhverstr use it like below //for past without styles
var iframeBody = editor.Canvas.getDocument().body;
jQuery(iframeBody).on("paste", '[contenteditable="true"]', function(e) {
e.preventDefault();
var text = e.originalEvent.clipboardData.getData('text');
e.target.ownerDocument.execCommand("insertText", false, text);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using this snippet I found on this post
It looks correct to me, even though the post is from back in 2017.
When testing this in a basic setup, with just this as init,
I am able to reproduce this.
Not sure if this a bug, or I am just looking at it the wrong way. Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions