Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3812

Adjusting size of Bubble on open event

$
0
0

I several bubble editors in a row, but I have a few TinyMCE types that need to be larger than the others (too small to use), so I can't globally change the width like in this discussion: https://datatables.net/forums/discussion/comment/105384/#Comment_105384

So I came up with the following; adding a class that overwrote the width:

    _editor.on( 'open', function ( e, mode, action ) {
        if (_editor.displayed().includes("projectNotes") || _editor.displayed().includes("executiveStatusSummary")) {
            $("div.DTE_Bubble div.DTE_Bubble_Liner").addClass( 'wysiwygWrap' );
        }
    } );

However, it weirdly offsets the bubble now:

Expected to be centered like the other fields:


Viewing all articles
Browse latest Browse all 3812

Trending Articles