From fc70840c416bec6b9e9be04ae7b3c88234d1321d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 10 Jan 2019 16:47:20 +0100 Subject: [PATCH] Sceditor auto-expanding on post create form. --- assets/css/common/global.css | 1 + assets/js/components/posts/edit.js | 2 +- assets/js/components/posts/form.js | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/css/common/global.css b/assets/css/common/global.css index 6e646d38..b14618ba 100644 --- a/assets/css/common/global.css +++ b/assets/css/common/global.css @@ -30,4 +30,5 @@ a { */ .sceditor-iframe-body { padding: 5px; + padding-bottom: 0px; } \ No newline at end of file diff --git a/assets/js/components/posts/edit.js b/assets/js/components/posts/edit.js index 0b4b3c60..56b078c7 100644 --- a/assets/js/components/posts/edit.js +++ b/assets/js/components/posts/edit.js @@ -115,9 +115,9 @@ ComunicWeb.components.posts.edit = { sceditor.create(editorTextarea, { format: 'bbcode', - height: "200px", width: "100%", icons: "material", + height: "200px", toolbarExclude: "youtube,image,size,link,print,mail,emoticon,maximize" }); diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index 90794c4f..91101472 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -57,13 +57,14 @@ ComunicWeb.components.posts.form = { sceditor.create(inputMessageTextarea, { format: 'bbcode', - height: "100px", width: "100%", toolbar: 'bold,italic,underline,subscript,superscript,' + 'left,center,right,justify,color,' + 'bulletlist,orderedlist,table,code,quote,source', emoticonsEnabled: false, icons: "material", + autoExpand: true, + resizeMaxHeight: -1, toolbarContainer: inputMessageToolbarTarget });