Dark theme

Basic usage

Gives you a dark button pane.

For demo purpose, this page has been forced to be in dark mode.

The code


<!-- Wrap the editor with an element with the class trumbowyg-dark -->
<div class="trumbowyg-dark">
    <textarea id="editor"></textarea>
</div>
            

$('#editor').trumbowyg();
            

Setup

In head tag


            

At the end of body


<!-- Import jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>