How to programmatically determine name of CKEditor instance

后端 未结 6 2004
野趣味
野趣味 2021-01-05 03:40

I\'ve added a CKEditor instance programmatically to my page in the code-behind of my ASP.NET page:

VB.NET:

itemEditor = New CkEditor
cell.Controls.Ad         


        
6条回答
  •  迷失自我
    2021-01-05 04:15

    If you are using CKEDITOR.appendTo(...), keep in mind that the ckeditor does create an instance name internally. So you can query for that name immediately after creating it, then store it somewhere, and use it later.

    var lvo_editor = CKEDITOR.appendTo( "my_div" , null , lvs_html ) ; 
    my_global_var  = lvo_editor.name                                 ;
    

    by the way: The CKEDITOR.replace(...) method allows you to define an instance name (see answer above)

提交回复
热议问题