]> BookStack Code Mirror - bookstack/commitdiff
Added lists plugin to TinyMCE, Fixed strange nested list behaviour
authorDan Brown <redacted>
Thu, 14 Apr 2016 21:34:33 +0000 (22:34 +0100)
committerDan Brown <redacted>
Thu, 14 Apr 2016 21:34:33 +0000 (22:34 +0100)
Fixes #97

resources/assets/js/pages/page-form.js

index c6787ba878f58450b7e642d6bd8913b54f53d421..de7b3e687f181d6833669d45ccec1d8e6ebbaabd 100644 (file)
@@ -11,7 +11,7 @@ var mceOptions = module.exports = {
     extended_valid_elements: 'pre[*]',
     automatic_uploads: false,
     valid_children: "-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]",
     extended_valid_elements: 'pre[*]',
     automatic_uploads: false,
     valid_children: "-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]",
-    plugins: "image table textcolor paste link fullscreen imagetools code hr autosave",
+    plugins: "image table textcolor paste link fullscreen imagetools code hr autosave lists",
     imagetools_toolbar: 'imageoptions',
     toolbar: "undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",
     content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",
     imagetools_toolbar: 'imageoptions',
     toolbar: "undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",
     content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",