TinyMCE 4 insert link form fields disabled

后端 未结 3 985
误落风尘
误落风尘 2021-01-27 02:42

I\'m using the tinymce-rails gem which uses TinyMCE 4 and I\'m loading the link plugin and all this is initiated after/in a colorbox popup.

TinyMCE editor i

3条回答
  •  醉梦人生
    2021-01-27 03:10

    TinyMCE5 and MagnificPopup compatibility:

    $.magnificPopup.instance._onFocusIn = function( e ) {
        try {
            if( $( e.target ).attr( 'class' ).indexOf( 'tox-' ) >= 0 ) {
                return true;
            }
        } catch( e ) {}
    
        $.magnificPopup.proto._onFocusIn.call( this, e );
    }
    

提交回复
热议问题