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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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