javascript - Check whether cursor is inside table in ckeditor dialog? -
i using ckeditor , , have added 1 dialog on button click want check whether cursor inside table in ckeditor dialog ?
this dialog code on click of button need check above condition
ckeditor.dialog.add( 'ndfsrsdialog', function( editor ) { return { title: 'formula editor', contents: [ { id: 'tab-basic', label: 'basic condition', elements: [ { type: 'text', id: 'ndfsrs', label: 'field', validate: ckeditor.dialog.validate.notempty( " field cannot empty" ) }, { type: 'button', id: 'title', label: 'condition', validate: ckeditor.dialog.validate.notempty( " field cannot empty" ), onclick : function( ) { alert(0); } } ] } ], onok: function() { var dialog = this; dialog.getelement('tab-basic', 'ndfsrs' ).hide(); } }; });
like ?
if($("#ckeditor").is(":focus")){ //do stuff here }
Comments
Post a Comment