Modal weight

Modal weight

alma_delayalma_delay Posts: 5Questions: 1Answers: 1

How I can to modify modal weight?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    What do you mean by the weight? The font weight? Or do you mean the width?

    If you mean the width, what styling library are you using?

    Allan

  • alma_delayalma_delay Posts: 5Questions: 1Answers: 1

    Sorry, widht, I need to modify.
    This css library:
    dataTables.bootstrap5.min
    responsive.bootstrap5.min

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Use the Bootstrap 5 modal width classes. Get the Bootstrap modal element with the displayNode() method.

    For example:

    editor.displayNode().childNodes[0].classList.add('modal-xl') 
    

    Allan

  • alma_delayalma_delay Posts: 5Questions: 1Answers: 1
    Answer ✓

    Allan, thank you!, but I used CSS. More easy for me.
    <style>
    .modal {
    --bs-modal-width: 900px !important;
    }
    </style>

Sign In or Register to comment.