The first way to find it is to put the fckeditorcode_ie.js under the ckeditor/"target=" _blank >fckeditoreditorjs, and find the following pastefromword:
The code is as follows |
Copy Code |
Pastefromword:function () {fckdialog.opendialog (' fckdialog_paste ', Fcklang.pastefromword, ' dialog/fck_paste.html '), 400,330, ' Word ');
|
Change it to
The code is as follows |
Copy Code |
Pastefromword:function () {FCK. Inserthtml (Clipboarddata.getdata ("Text"));}
|
But in this way, it becomes plain text, no!
And then we found a solution.
Because JS what will automatically cache, each test, but also to clear the temporary files and then refresh the page to do, really trouble ah!
The specific actions are as follows:
Open the Fckeditorcode_ie.js under the Fckeditoreditorjs,
Found it
The code is as follows |
Copy Code |
if (Confirm (fcklang.pastewordconfirm)) |
The article, instead:
The code is as follows |
Copy Code |
if (Confirm (fcklang.pastewordconfirm)) {var d=a;d=cleanword (d,true,true); FCK. Inserthtml (D); return false;} |
Open the dialogfck_paste.html and paste the Cleanword function inside the head.
When you paste word again, when you select Yes, it clears the formatting directly. If not to whether the hint, the confirm (fcklang.pastewordconfirm) of the judgment can be removed.