diff options
author | Christian Klinger | 2016-06-24 16:10:36 +0200 |
---|---|---|
committer | Christian Klinger | 2016-06-24 16:10:36 +0200 |
commit | bfb7db6b93a5c94f05cb6eb9ab1e9da497d81140 (patch) | |
tree | 931cc40d077f97c1c6adbb431be19112f9481afd /modules-available/news | |
parent | Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff) | |
download | slx-admin-bfb7db6b93a5c94f05cb6eb9ab1e9da497d81140.tar.gz slx-admin-bfb7db6b93a5c94f05cb6eb9ab1e9da497d81140.tar.xz slx-admin-bfb7db6b93a5c94f05cb6eb9ab1e9da497d81140.zip |
added i18n for summernote.
Diffstat (limited to 'modules-available/news')
-rw-r--r-- | modules-available/news/templates/page-news.html | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html index 0eaeb52b..c698e408 100644 --- a/modules-available/news/templates/page-news.html +++ b/modules-available/news/templates/page-news.html @@ -15,7 +15,7 @@ </div> <div class="form-group"> <label for="news-content-id">{{lang_content}}</label> - <textarea name="news-content" id ="news-content-id" class="form-control" rows="5" cols="30" placeholder="">{{latestContent}}</textarea> + <textarea name="news-content" id ="news-content-id" class="form-control summernote" rows="5" cols="30" placeholder="">{{latestContent}}</textarea> </div> <p>{{lang_latestUpdate}}: {{latestDate}}</p> <button class="btn btn-primary btn-sm" name="news-type" value="news" type="submit">{{lang_save}}</button> @@ -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" style="min-height:400px" placeholder="">{{latestHelp}}</textarea> + <textarea name="help-content" id ="help-content-id" class="form-control summernote" 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}}"> @@ -105,20 +105,6 @@ {{#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}} |