Custom plugin with DOM manipulation CKEditor 4.x
问题 I am developing one custom plugin for the CKEditor 4.7 which do a simple think take in case user select some stuff it will put it in a div with specific class, else it will put a div with same class just with text like 'Add content here' I try to use some functions according to CKEditor docs but have something really wrong. here is the code for the plugin folder name=> customdiv , file=> plugin.js CKEDITOR.plugins.add('customdiv', { icons: 'smile', init: function (editor) { editor.addCommand(