Search code examples
javascriptfckeditor

How to remove the Pop up message coming from FCKEditor when we paste text from a word file



I am using FCK Editor and when I try to paste some code from word in the editor, I get some pop up messages as follows:-

1)"Because of your browser security settings,the editor is not able to access your clipboard data directly. You are required to paste it again in this window.
Please paste inside the following box using the keyboard (Ctrl+V) and hit OK."

2) "The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?"

These two messages are displayed on two different machines.

I don't want both these popups. I want to allow user to paste text from word without these popups

Please provide me a solution to resolve this issue, so that I can paste text from word files also.

Thanks in advance.


Solution

  • These pop-ups are there for a reason. Getting content from the clipboard is rightly generally impossible in JavaScript so browser-based rich text editors have to work round this as best they can. I know that CKEditor (FCKeditor's replacement) uses a trick that redirects a user paste to an offscreen element, which gives the editor access to pasted content before it's inserted into the editor; I think this trick may not be implemented in FCKeditor, so you may want to consider trying CKEditor.