Bubble Editor custom class

Bubble Editor custom class

Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

Hello,
Is there any ways to add a custom class to bubble window on edit? I can't found any callbacks or something else.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin

    You could use the open event. That will tell you what editing mode is being shown.

    Allan

  • Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

    I'm not sure that this event good for me. I want to add a custom class beside DTE DTE_Bubble class. Could you help?

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin
    Answer ✓
    editor.on( 'open', function ( e, mode, action ) {
      $('div.DTE_Bubble').addClass( 'myClass' );
    } );
    

    Allan

  • Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

    Thanks a lot!

This discussion has been closed.