javascript - How to assign id to an element in CKEditor custom plug-in -


i have created custom plug-in in ckeditor. inside plug-in there textbox want assign id. reason assigning id want show or hide textbox on click of button.

even if assigning id other attributes of element. in source code (i used inspect element), ckeditor assigning random id (e.g cke_121_textinput) field.

this random id cannot known while writing code.

code goes this: (ckeditor dialogue js)

ckeditor.dialog.add( 'testplugindialog', function( editor ) { ... elements: [ { type: 'text', id: 'txtcustomername', label: 'customer name', commit : function( data )   { data.txtcustomername= this.getvalue(); } }... ... 


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -