Home > Article > Web Front-end > How to cancel the pop-up window when fckeditor pastes Word_javascript skills
The example in this article describes how to cancel the pop-up window when fckeditor pastes Word. Share it with everyone for your reference. The specific method is as follows:
Use fckeditor as the editing box for user publishing, allowing users to publish Word. By default, when pasting into word, you will be prompted whether to clear the word style. If you select "Yes", a box will pop up and you need to paste again to clear the word style. This operation is very troublesome, so cancel it.
The first way to find it is to put ckeditor/" target="_blank">fckeditorcode_ie.js under fckeditoreditorjs. Searching for PasteFromWord will find the following content:
Later I found some solutions:
Since JS and other things are automatically cached, every time you test, you have to clear the temporary files and refresh the page. It’s really troublesome!
The specific operations are as follows:
Open fckeditorcode_ie.js under fckeditoreditorjs,
Found
When pasting Word at this time, after selecting Yes, the format will be cleared directly. If you don’t want the prompt of yes, just remove the judgment of confirm(FCKLang.PasteWordConfirm).
I hope this article will be helpful to everyone’s JavaScript programming design.