简体   繁体   English

当我们从Word文件中粘贴文本时,如何删除来自FCKEditor的弹出消息

[英]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:- 我正在使用FCK编辑器,当我尝试从编辑器中的单词中粘贴一些代码时,出现如下弹出消息:

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. 1) “由于您的浏览器安全设置,编辑器无法直接访问剪贴板数据。您需要将其再次粘贴到此窗口中。
Please paste inside the following box using the keyboard (Ctrl+V) and hit OK." 请使用键盘(Ctrl + V)粘贴在以下框中,然后单击“确定”。”

2) "The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?" 2) “您想要粘贴的文本似乎是从Word复制的。您要在粘贴之前清除它吗?”

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. 请为我提供解决此问题的解决方案,以便我也可以从Word文件粘贴文本。

Thanks in advance. 提前致谢。

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. 在JavaScript中,从剪贴板中获取内容通常是不可能的,因此基于浏览器的富文本编辑器必须尽力而为。 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; 我知道CKEditor(FCKeditor的替代者)使用了一种技巧,将用户粘贴重定向到屏幕外元素,从而使编辑者可以在粘贴内容之前将其粘贴到编辑器中。 I think this trick may not be implemented in FCKeditor, so you may want to consider trying CKEditor. 我认为该技巧可能无法在FCKeditor中实现,因此您可能需要考虑尝试CKEditor。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM