javascript - CKEditor 4.3 Widget Richcombo -



javascript - CKEditor 4.3 Widget Richcombo -

how can insert widget when 1 of dropdown menu in richcombo clicked? i've read widget tutorial here , api documentation here

i tried this, didn't work

ckeditor.plugins.add('my_plugin', { init: function(editor) { editor.ui.addrichcombo('my_plugin', { label: 'plugin1', init: function() { this.add('first_name', 'first name', 'insert first name'); }, onclick: function(value) { editor.focus(); editor.widgets.add('widget1', { upcast: function( element ) { // defines elements become widgets. if ( element.hasclass( 'widget1' ) ) homecoming true; }, }); editor.setdata( '<div class="widget1">foo</div>' ); } )}; } });

javascript ckeditor

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -