Commit eb227153 authored by Francois Marier's avatar Francois Marier
Browse files

Enable fullscreen button in tinymce (bug #530656)



Thanks to Melissa Newman for the solution!

Change-Id: Icc8f03e7b5a69f653ed37cd00db148e092de8ed3
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 18d861f4
......@@ -110,7 +110,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
$adv_buttons = array(
"undo,redo,separator,bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,code,fullscreen",
"bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,hr,emotions,image,spellchecker,cleanup,separator,link,unlink,separator,code",
"bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,hr,emotions,image,spellchecker,cleanup,separator,link,unlink,separator,code,fullscreen",
"undo,redo,separator,bullist,numlist,separator,tablecontrols,separator,cut,copy,paste,pasteword",
"fontselect,separator,fontsizeselect,separator,formatselect",
);
......@@ -123,7 +123,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
$tinymce_config = <<<EOF
mode: "none",
theme: "advanced",
plugins: "table,emotions,spellchecker,inlinepopups,paste",
plugins: "table,emotions,spellchecker,inlinepopups,paste,fullscreen",
theme_advanced_buttons1 : "{$adv_buttons[1]}",
theme_advanced_buttons2 : "{$adv_buttons[2]}",
theme_advanced_buttons3 : "{$adv_buttons[3]}",
......@@ -146,7 +146,7 @@ EOF;
fullscreen_new_window: true,
fullscreen_settings: {
theme: "advanced",
plugins: "table,emotions,iespell,inlinepopups,paste",
plugins: "table,emotions,iespell,inlinepopups,paste,fullscreen",
theme_advanced_buttons1 : "{$adv_buttons[1]}",
theme_advanced_buttons2 : "{$adv_buttons[2]}",
theme_advanced_buttons3 : "{$adv_buttons[3]}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment