From 00c16b387acb3675db1bbccb5dc8dfb598ca91a5 Mon Sep 17 00:00:00 2001 From: Carsten Pfeiffer Date: Sat, 1 Nov 2014 22:18:42 +0100 Subject: [PATCH] Make TinyMCE editors resizable --- js/main.js | 1 + view/templates/contact_head.tpl | 1 + view/templates/event_head.tpl | 1 + view/templates/jot-header.tpl | 1 + view/templates/msg-header.tpl | 1 + view/templates/profed_head.tpl | 1 + view/templates/wallmsg-header.tpl | 1 + 7 files changed, 7 insertions(+) diff --git a/js/main.js b/js/main.js index 43d37a99..23f63f82 100644 --- a/js/main.js +++ b/js/main.js @@ -703,6 +703,7 @@ function setupFieldRichtext(){ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, paste_text_sticky : true, entity_encoding : "raw", add_unload_trigger : false, diff --git a/view/templates/contact_head.tpl b/view/templates/contact_head.tpl index 498cbfbc..ceda781e 100644 --- a/view/templates/contact_head.tpl +++ b/view/templates/contact_head.tpl @@ -14,6 +14,7 @@ tinyMCE.init({ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_styles : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, entity_encoding : "raw", add_unload_trigger : false, diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl index 8d40be3b..8085a774 100644 --- a/view/templates/event_head.tpl +++ b/view/templates/event_head.tpl @@ -90,6 +90,7 @@ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw", diff --git a/view/templates/jot-header.tpl b/view/templates/jot-header.tpl index f8cf96f7..3a67e8bc 100644 --- a/view/templates/jot-header.tpl +++ b/view/templates/jot-header.tpl @@ -34,6 +34,7 @@ function initEditor(cb){ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw", diff --git a/view/templates/msg-header.tpl b/view/templates/msg-header.tpl index 47b92ddf..86598bbf 100644 --- a/view/templates/msg-header.tpl +++ b/view/templates/msg-header.tpl @@ -17,6 +17,7 @@ if(plaintext != 'none') { theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw", diff --git a/view/templates/profed_head.tpl b/view/templates/profed_head.tpl index 67e7a85a..2dbdbcde 100644 --- a/view/templates/profed_head.tpl +++ b/view/templates/profed_head.tpl @@ -16,6 +16,7 @@ tinyMCE.init({ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw", diff --git a/view/templates/wallmsg-header.tpl b/view/templates/wallmsg-header.tpl index c4d81f8c..f03f496f 100644 --- a/view/templates/wallmsg-header.tpl +++ b/view/templates/wallmsg-header.tpl @@ -17,6 +17,7 @@ if(plaintext != 'none') { theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", theme_advanced_blockformats : "blockquote,code", + theme_advanced_resizing : true, gecko_spellcheck : true, paste_text_sticky : true, entity_encoding : "raw",