How to use CKEditor in a Bootstrap Modal?

后端 未结 14 1335
名媛妹妹
名媛妹妹 2020-11-30 04:14

If I use the CKEditor plugin in an HTML page based on a Bootstrap template, it works great, however if I insert the editor on a Bootstrap Modal like this

<         


        
14条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 04:44

    All very simple:

    $('#modal').removeAttr('tabindex');
    
    $('#modal').focusout(function(){
        $(this).css({'position':'relative'});
    });
    
    $('#modal').focusin(function(){
        $(this).css({'position':'fixed'});
    });
    

提交回复
热议问题