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 43d37a99bf..23f63f8224 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 498cbfbcc4..ceda781eab 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 8d40be3be9..8085a774b3 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 f8cf96f7c3..3a67e8bcc4 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 47b92ddf14..86598bbf6c 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 67e7a85aca..2dbdbcdeb7 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 c4d81f8cc0..f03f496fe2 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", -- 2.39.5