Rename rx_upload CKEditor plugin to rx_paste, and move paste handler from editor.app.js to it

This commit is contained in:
Kijin Sung 2024-04-30 22:18:11 +09:00
parent 3e5951174e
commit e15c913b21
3 changed files with 18 additions and 20 deletions

View file

@ -162,14 +162,6 @@ function getAutoSavedSrl(ret_obj) {
}
});
instance.on('paste', function(e) {
if (e.data && e.data.dataValue && e.data.dataValue.replace) {
e.data.dataValue = e.data.dataValue.replace(/&lt;(iframe|object)\s[^<>]+&lt;\/\1&gt;/g, function(m) {
return String(m).unescape() + '<p>&nbsp;</p>';
});
}
});
$containerEl.data('cke_instance', instance);
window.editorRelKeys[data.editorSequence] = {};