Dark theme
Basic usage
Gives you a dark button pane.
For demo purpose, this page has been forced to be in dark mode.
Welcome to the dark side of Trumbowyg!
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, aliquam, minima fugiat placeat provident optio nam reiciendis eius beatae quibusdam!
The text is derived from Cicero's De Finibus Bonorum et Malorum (On the Ends of Goods and Evils, or alternatively [About] The Purposes of Good and Evil). The original passage began: Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there anyone who loves grief itself since it is grief and thus wants to obtain it").
The code
<!-- Wrap the editor with an element with the class trumbowyg-dark -->
<div class="trumbowyg-dark">
<div id="editor"></div>
</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>