Uncaught TypeError: CKEDITOR.cleanWord is not a function

The project uses ckeditor, a rich text plug-in, and I use ckeditor 4. At that time, it was a meeting recording function, and some content in the rich text returned by the backend needed to be copied to the rich text editor.
Then the following error occurs (because the image without error cannot be reproduced locally).
The browser reports an error:

Uncaught TypeError: CKEDITOR.cleanWord is not a function
    at Object.handle (ckeditor.js:23345:147)
    at k (ckeditor.js:23132:20)
    at $.<anonymous> (ckeditor.js:23184:37)
    at a.q (ckeditor.js:130:41)
    at a.<anonymous> (ckeditor.js:190:66)
    at CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:233:46)
    at ckeditor.js:23181:50
    at Object.<anonymous> (ckeditor.js:23158:45)
    at Object.callback (ckeditor.js:5589:36)
    at y (ckeditor.js:5530:37)

It was found that a string of codes in the ckeditor.js file was wrong.
Relevant error codes
insert image description here
I didn’t find any relevant solutions on the Internet, so I tried to modify them myself, and found that I could delete this code c.dataValue = CKEDITOR.cleanWord(c.dataValue, a), the code after deletion is as follows:
Solution :
insert image description here

Guess you like

Origin blog.csdn.net/weixin_46724655/article/details/126368254