diff options
author | Christian Klinger | 2016-06-24 15:23:57 +0200 |
---|---|---|
committer | Christian Klinger | 2016-06-24 15:23:57 +0200 |
commit | 22789bbd4f9c843409475d67099a4e4ac31fe248 (patch) | |
tree | fd6e1811744192589696552ff918f3e2d79235ba /modules-available/news/templates | |
parent | Merge branch 'modularization' of dnbd3:openslx-ng/slx-admin into modularization (diff) | |
download | slx-admin-22789bbd4f9c843409475d67099a4e4ac31fe248.tar.gz slx-admin-22789bbd4f9c843409475d67099a4e4ac31fe248.tar.xz slx-admin-22789bbd4f9c843409475d67099a4e4ac31fe248.zip |
added summernote as an optional wysiwyg-editor.
Diffstat (limited to 'modules-available/news/templates')
-rw-r--r-- | modules-available/news/templates/page-news.html | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html index 79720df4..0eaeb52b 100644 --- a/modules-available/news/templates/page-news.html +++ b/modules-available/news/templates/page-news.html @@ -62,7 +62,7 @@ <form action="?do=News&action=save" method="post"> <div class="form-group"> <label for="news-content-id">{{lang_content}}</label> - <textarea name="help-content" id ="help-content-id" class="form-control" rows="5" cols="30" placeholder="">{{latestHelp}}</textarea> + <textarea name="help-content" id ="help-content-id" class="form-control" style="min-height:400px" placeholder="">{{latestHelp}}</textarea> </div> <button class="btn btn-primary btn-sm" name="news-type" value="help" type="submit">{{lang_save}}</button> <input type="hidden" name="token" value="{{token}}"> @@ -102,4 +102,23 @@ </div> </div> </div> - +{{#hasSummernote}} +<script> +document.addEventListener("DOMContentLoaded", function () { + $('#news-content-id, #help-content-id').summernote( { + toolbar: [ + // [groupName, [list of button]] + ['style', ['bold', 'italic', 'underline', 'clear']], + ['font', ['strikethrough', 'superscript', 'subscript']], + // ['fontsize', ['fontsize']], + ['color', ['color']], + ['para', ['ul', 'ol', 'paragraph']], + ['misc', ['codeview', 'undo', 'redo', 'fullscreen']] + //['height', ['height']] + ], + height: '300px' + } + ); +}); +</script> +{{/hasSummernote}} |