Commit 886a7463 authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon

Restore "toggle" button to TinyMCEs with "tinymceconfig" param

Bug 1381738. All the TinyMCE instances that use the "maharaimage" plugin are providing
their own tinymceconfig param which redefines the whole list of plugins in use. So they
didn't get the message when "tooltoggle" became one of the standard plugins.

This fix is a bit of a hack. A more robust fix would provide a way for a TinyMCE to
*add* to the list of plugins, or just specifically say it wants to use maharaimage
instead of image.

Change-Id: Ia8128e5d70bd4be1e5d4b45efae368a88174c4c5
parent 1f779bdd
......@@ -183,7 +183,7 @@ EOF;
$smarty = smarty(array(), array(), array(), array(
'tinymceconfig' => '
plugins: "textcolor,hr,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen",
plugins: "tooltoggle,textcolor,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen,directionality,searchreplace,nonbreaking,charmap",
image_filebrowser: "editpost_filebrowser",
',
'sideblocks' => array(
......
......@@ -144,7 +144,7 @@ $othernotesmsg = '<div class="warning">' . get_string('textusedinothernotes', '
$smarty = smarty(array(), array(), array(), array(
'tinymceconfig' => '
plugins: "textcolor,hr,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen",
plugins: "tooltoggle,textcolor,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen,directionality,searchreplace,nonbreaking,charmap",
image_filebrowser: "editnote_filebrowser",
',
'sideblocks' => array(
......
......@@ -128,7 +128,7 @@ EOF;
$smarty = smarty(array(), array(), array(), array(
'tinymceconfig' => '
plugins: "textcolor,hr,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen",
plugins: "tooltoggle,textcolor,link,maharaimage,table,emoticons,spellchecker,paste,code,fullscreen,directionality,searchreplace,nonbreaking,charmap",
image_filebrowser: "editgoalsandskills_filebrowser",
',
'sideblocks' => array(
......
Markdown is supported
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