javascript - CKEditor plugin, how to reopen dialog when click on created content -


i creating ckeditor plugin, realize default ckeditor plugins have ability reopen edit dialog after create it. example insert table or link, if double click on new created table or link, table dialog open again can change attributes. know need done make plugin can reopen dialog if click on created content? thank you.

set listener doubleclick event , adjust data.dialog value if it's on element.

if want learn more, read documentation should explained among guides provide.

    editor.on( 'doubleclick', function( evt )         {             var element = evt.data.element;             if ( element.is( 'img' ) )                 evt.data.dialog = 'mydialog';         }); 

Comments

Popular posts from this blog

c# - Store DBContext Log in other EF table -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -