MDL-14741: better default layout for buttons and added new moodlenolink plugin
authorscyrma <scyrma>
Thu, 24 Jul 2008 07:47:44 +0000 (07:47 +0000)
committerscyrma <scyrma>
Thu, 24 Jul 2008 07:47:44 +0000 (07:47 +0000)
lib/editor/tinymce.js.php

index ed771365ec8a7d732718c99f5652ce8ba1c1f5c1..a38737a3bab2ca72a172025ea851065c13b18631 100644 (file)
@@ -175,15 +175,15 @@ echo <<<EOF
         entity_encoding: "raw",
         language: "$editorlanguage",
         directionality: "$directionality",
-        plugins: "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking,contextmenu",
+        plugins: "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,moodlenolink,dragmath,nonbreaking,contextmenu",
         theme_advanced_layout_manager: "SimpleLayout",
         theme_advanced_toolbar_align : "left",
-        theme_advanced_buttons1: "fontselect,fontsizeselect,formatselect,",
-        theme_advanced_buttons1_add: "styleselect,selectall,pastetext,pasteword,cleanup",
-        theme_advanced_buttons2: "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,removeformat,code",
-        theme_advanced_buttons2_add: "styleprops,ltr,rtl,nonbreaking,charmap",
-        theme_advanced_buttons3: "media,advhr,emoticons,dragmath,spellchecker,search,code,fullscreen,bullist,numlist,outdent,indent,forecolor,backcolor,link,unlink,anchor,image,charmap,insertlayer,table",
-        theme_advanced_buttons3_add: "media,emoticons,charmap,dragmath,search,code,fullscreen",
+        theme_advanced_buttons1: "fontselect,fontsizeselect,formatselect,styleselect",
+        theme_advanced_buttons1_add: "|,undo,redo,|,search,spellchecker",
+        theme_advanced_buttons2: "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull",
+        theme_advanced_buttons2_add: "|,selectall,cleanup,removeformat,pastetext,pasteword,|,forecolor,backcolor,|,ltr,rtl",
+        theme_advanced_buttons3: "bullist,numlist,outdent,indent,|,link,unlink,moodlenolink,anchor,|,emoticons,image,media,dragmath,advhr,nonbreaking,charmap",
+        theme_advanced_buttons3_add: "|,code,fullscreen,|,table,insertlayer,styleprops",
         theme_advanced_fonts: "Trebuchet=Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;Wingdings=wingdings", 
         moodleimage_course_id: $courseid,
         theme_advanced_resize_horizontal: true,