From 34f94b75ece7b7b95e61d64ff77362ffc519068e Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Wed, 11 Nov 2009 05:26:34 +0000 Subject: [PATCH] "MDL-20592, improve advimage plugin in editor" --- .../patches/tinymce_plugin_advimage.patch | 83 +++++++++++++++++++ .../tinymce/plugins/advimage/css/advimage.css | 6 +- lib/editor/tinymce/plugins/advimage/image.htm | 24 +++--- lib/editor/tinymce/readme_moodle.txt | 2 +- 4 files changed, 100 insertions(+), 15 deletions(-) create mode 100644 lib/editor/tinymce/extra/patches/tinymce_plugin_advimage.patch diff --git a/lib/editor/tinymce/extra/patches/tinymce_plugin_advimage.patch b/lib/editor/tinymce/extra/patches/tinymce_plugin_advimage.patch new file mode 100644 index 0000000000000..0c6bb6cc5eacd --- /dev/null +++ b/lib/editor/tinymce/extra/patches/tinymce_plugin_advimage.patch @@ -0,0 +1,83 @@ +Index: lib/editor/tinymce/plugins/advimage/image.htm +=================================================================== +RCS file: /cvsroot/moodle/moodle/lib/editor/tinymce/plugins/advimage/image.htm,v +retrieving revision 1.1 +diff -u -r1.1 image.htm +--- lib/editor/tinymce/plugins/advimage/image.htm 16 May 2009 20:53:41 -0000 1.1 ++++ lib/editor/tinymce/plugins/advimage/image.htm 11 Nov 2009 05:18:39 -0000 +@@ -26,14 +26,15 @@ + {#advimage_dlg.general} + + ++ ++ ++ ++ + + +- ++ + + + +@@ -41,12 +42,8 @@ + + + +- ++ + +- +- +- +- +
  
+- +- +- +- +-
 
++ ++
+ + +@@ -180,10 +177,13 @@ + + + ++ ++ ++ ++ + + + +- + + +
+Index: lib/editor/tinymce/plugins/advimage/css/advimage.css +=================================================================== +RCS file: /cvsroot/moodle/moodle/lib/editor/tinymce/plugins/advimage/css/advimage.css,v +retrieving revision 1.1 +diff -u -r1.1 advimage.css +--- lib/editor/tinymce/plugins/advimage/css/advimage.css 16 May 2009 20:54:52 -0000 1.1 ++++ lib/editor/tinymce/plugins/advimage/css/advimage.css 11 Nov 2009 05:18:39 -0000 +@@ -1,13 +1,15 @@ + #src_list, #over_list, #out_list {width:280px;} + .mceActionPanel {margin-top:7px;} ++.moodlebutton {font-size: 1.5em;font-weight:bold;padding: 3px;border:1px solid #ccc;text-decoration:none} ++.moodlebutton:hover {background: #ccc} + .alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} + .checkbox {border:0;} + .panel_wrapper div.current {height:305px;} +-#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} ++#prev {margin:0; border:1px solid #000; width:428px; height:180px; overflow:auto;} + #align, #classlist {width:150px;} + #width, #height {vertical-align:middle; width:50px; text-align:center;} + #vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} + #class_list {width:180px;} + input {width: 280px;} + #constrain, #onmousemovecheck {width:auto;} +-#id, #dir, #lang, #usemap, #longdesc {width:200px;} ++#id, #title, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/lib/editor/tinymce/plugins/advimage/css/advimage.css b/lib/editor/tinymce/plugins/advimage/css/advimage.css index 0a6251a696563..89b58cb4a9745 100644 --- a/lib/editor/tinymce/plugins/advimage/css/advimage.css +++ b/lib/editor/tinymce/plugins/advimage/css/advimage.css @@ -1,13 +1,15 @@ #src_list, #over_list, #out_list {width:280px;} .mceActionPanel {margin-top:7px;} +.moodlebutton {font-size: 1.5em;font-weight:bold;padding: 3px;border:1px solid #ccc;text-decoration:none} +.moodlebutton:hover {background: #ccc} .alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} .checkbox {border:0;} .panel_wrapper div.current {height:305px;} -#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} +#prev {margin:0; border:1px solid #000; width:428px; height:180px; overflow:auto;} #align, #classlist {width:150px;} #width, #height {vertical-align:middle; width:50px; text-align:center;} #vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} #class_list {width:180px;} input {width: 280px;} #constrain, #onmousemovecheck {width:auto;} -#id, #dir, #lang, #usemap, #longdesc {width:200px;} +#id, #title, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/lib/editor/tinymce/plugins/advimage/image.htm b/lib/editor/tinymce/plugins/advimage/image.htm index 5d261504674aa..08b3b790ad758 100644 --- a/lib/editor/tinymce/plugins/advimage/image.htm +++ b/lib/editor/tinymce/plugins/advimage/image.htm @@ -26,14 +26,15 @@ {#advimage_dlg.general} + + + + - + @@ -41,12 +42,8 @@ - + - - - -
  
- - - - -
 
+ +
@@ -179,11 +176,14 @@ {#advimage_dlg.misc} + + + + -
diff --git a/lib/editor/tinymce/readme_moodle.txt b/lib/editor/tinymce/readme_moodle.txt index d7a8c57c085b9..6f5c5433d5bfc 100644 --- a/lib/editor/tinymce/readme_moodle.txt +++ b/lib/editor/tinymce/readme_moodle.txt @@ -12,7 +12,7 @@ Upgrade procedure: 2/ replace tiny_mce*.* files, themes/*, utils/* and plugins/* (keep dragmath, moodlenolink, spellchecker) 3/ copy tinymce/jscripts/tiny_mce/classes/Popup.js to Popup.js - 4/ apply strings & form_utils.js patch + 4/ apply strings & form_utils.js & tinymce_plugin_advimage patches 5/ copy yuicompressor.jar from dev package into extra/tools/, use shell script extra/tools/compress.sh to compress modified files 6/ download all TinyMCE lang files (extra/tools/download_langs.sh)