changeset 4cd109597d74 in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset;node=4cd109597d74
description:
        Add code to simplemde toolbar
diffstat:

 html/issue.item.html |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 197cdbae5763 -r 4cd109597d74 html/issue.item.html
--- a/html/issue.item.html      Thu Oct 22 14:26:44 2020 +0200
+++ b/html/issue.item.html      Thu Oct 22 16:16:46 2020 +0200
@@ -31,9 +31,10 @@
     <script type="text/javascript">
     (function () {
       var node = $('#change_note')[0];
+      var toolbar = ['bold', 'italic', 'heading', '|', 'code', 'quote', 
'unordered-list', 'ordered-list', '|', 'link', 'image', '|', 'preview', 
'side-by-side', 'fullscreen', '|', 'guide'];
       var initSimpleMde = function () {
         node.parentNode.appendChild($('<input/>', { type: 'hidden', name: 
'msg-1@type', value: 'text/markdown'})[0]);
-        var simplemde = new SimpleMDE({ element: node, status: false, 
styleSelectedText: false });
+        var simplemde = new SimpleMDE({ element: node, status: false, 
styleSelectedText: false, toolbar: toolbar });
         simplemde.render();
       };
       {% if context.id %}

Reply via email to