copy and cut features of edit plugin of richtexteditor are not working | Community
Skip to main content
Dinu_Arya
Level 6
October 16, 2015
Solved

copy and cut features of edit plugin of richtexteditor are not working

  • October 16, 2015
  • 4 replies
  • 1563 views

 Hi,

I have followed http://dev.day.com/docs/en/cq/current/administering/configuring_rich_text_editor.html and configured copy and cut features to "edit" plugin. Whenever I clicked on copy/cut tools after selecting some text, I'm getting the following error in browser console -

TypeError: this.editorKernel is undefined
    
else if (e.message == "Cannot copy.") {
this.editorKernel.getDialogManager().alert(
CUI.rte.Utils.i18n("Copy"),
CUI.rte.Utils.i18n("Could not copy due to security restrictions of the browser.<br>Please use Ctrl+C to copy directly."),
CUI.rte.Utils.scope(this.deferFocus, this));
}

I tried to pasted it but it is not getting pasted the selected text. Is it browser related issue or something else? Please help me in this. Your comments are welcome. I'm using Adobe Experience Manager (5.6.1.20130606).

Thanks,

Arya.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ove_Lindström

Grant it the Clipboard access.

http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

Google on the same thing for Chrome.

/Ove

4 replies

Level 6
October 16, 2015

What browser are you using? Have seen this on IE sometimes.

/Ove

Dinu_Arya
Dinu_AryaAuthor
Level 6
October 16, 2015

I'm using Firefox new version. I haven't tested it in IE.

Dinu_Arya
Dinu_AryaAuthor
Level 6
October 16, 2015

I have tested in IE. Its working fine. What I have to do to make it work in FF and Google chrome?

Ove_LindströmAccepted solution
Level 6
October 16, 2015

Grant it the Clipboard access.

http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

Google on the same thing for Chrome.

/Ove