diff --git a/www/extras/tinymce/changelog b/www/extras/tinymce/changelog index 90ead8547..90235860a 100644 --- a/www/extras/tinymce/changelog +++ b/www/extras/tinymce/changelog @@ -1,3 +1,22 @@ +Version 1.41 (2005-01-31) + Added new table plugin, all table code is moved into this plugin [BREAKS COMPATIBLITY]. + Added new external_link_list_url/external_image_list_url options for better backend integration. + Added new file_browser_callback option for better backend integration. + Added new layout manager code into the advanced theme, contributed by SlyD. + Added new nowrap option, enables so users may change the word wraping behavior. + Added new Thai language pack contributed by Innozent. + Added obfuscated version of all plugins and themes to reduce over all startup/download time. + Added Simplified Chinese language pack contributed by cube316. + Added a updated Czech language pack thanks to Josef Klimosz. + Fixed issue where anchor elements where closed. This results in browser problems with the outputed HTML. + Fixed bug where the first return key press didn't produce a paragraph in Firefox/Mozilla. + Fixed bug in the searchreplace plugin where replace content sometimes fails in Firefox/Mozilla. + Fixed so all language packs now uses the ISO-639-2 code instead of ISO 3166-1 [BREAKS COMPATIBLITY]. + Fixed some issues with the force_br_newlines option in MSIE. + Fixed bug where the backspace or delete key produced BR elements in Firefox/Mozilla. + Fixed bug issue with link and image dialogs of the default theme/simple example. + Fixed some bugs when having the editor hidden in a tab/div, contributed by Ernst de Moor. + Fixed some character issues with the Danish language packs, contributed by someone unknown. Version 1.40 (2005-01-09) Added a new default value for the font size drop down, if no font size where found this gets selected. Added a auto resize window feature, this is enabled by default but can be disabled with a window argument. diff --git a/www/extras/tinymce/docs/langs.htm b/www/extras/tinymce/docs/langs.htm index f4ce34b10..52dd4e70b 100755 --- a/www/extras/tinymce/docs/langs.htm +++ b/www/extras/tinymce/docs/langs.htm @@ -15,7 +15,7 @@

-Language packs are simply JavaScript name/value arrays placed in the "<FN Code>.js" +Language packs are simply JavaScript name/value arrays placed in the "<ISO-639-2 code>.js" files in the "lang" direcotry. Remember to allways use the "lang_" prefix for these value names so that they don't override other variables in the templates. The example below shows how the cut, copy and paste texts are lang packed. Notice there are two kinds of language packs one is the general one shared by all themes these are located in the "jscripts/tiny_mce/langs" directory the other optional one is theme specific language packs these are contained in "jscripts/tiny_mce/themes/<some theme>/langs".
@@ -31,12 +31,20 @@ templates. The example below shows how the cut, copy and paste texts are lang pa

When translating TinyMCE, these are the files that currently needs to be translated:

- tinymce/jscripts/tiny_mce/langs/uk.js
- tinymce/jscripts/tiny_mce/plugins/emotions/langs/uk.js
- tinymce/jscripts/tiny_mce/plugins/iespell/langs/uk.js
- tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/uk.js
- tinymce/jscripts/tiny_mce/plugins/preview/langs/uk.js
- tinymce/jscripts/tiny_mce/themes/advanced/langs/uk.js
+tinymce/jscripts/tiny_mce/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/advhr/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/advimage/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/advlink/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/emotions/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/flash/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/iespell/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/preview/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/print/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/save/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en.js
+tinymce/jscripts/tiny_mce/plugins/zoom/langs/en.js
+tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js

Notice some language variables may include a name/url of a gif image or simmilar, for example the button for bold has a "F" character in the Swedish diff --git a/www/extras/tinymce/docs/using.htm b/www/extras/tinymce/docs/using.htm index 3ac3174ca..e3545bb13 100755 --- a/www/extras/tinymce/docs/using.htm +++ b/www/extras/tinymce/docs/using.htm @@ -83,9 +83,7 @@ optional and is not a requierd setting.
[language] - Language pack to use with TinyMCE, this should be the FN codes like se, - uk, us and so forth and it's used to retrive the language packs located - in "langs". This setting defaults to "uk". + Language pack to use with TinyMCE, this should be a ISO-639-2 code and it's used to retrive the language packs located in "langs". This setting defaults to "en". [elements] @@ -375,6 +373,22 @@ optional and is not a requierd setting.
[cleanup_callback] Custom cleanup callback function, this enabled users to add custom cleanup logic to extend the build in one. This callback is called separatly from the default one, it doesn't replace the old one it just extends it. Check the plugin cleanup function for more details. + + [nowrap] + Sets the how content is to be word wrapped. This option is a true/false option and is disabled by default. + + + [external_link_list_url] + URL to a backend page (PHP,ASP,ASPX,JSP) that is to populate a array with links called tinyMCELinkList check the example_link_list.js for a example format. This option enables you to better integrate TinyMCE with a backend system. + + + [external_image_list_url] + URL to a backend page (PHP,ASP,ASPX,JSP) that is to populate a array with links called tinyMCEImageList check the example_image_list.js for a example format. This option enables you to better integrate TinyMCE with a backend system. + + + [file_browser_callback] + String containting the callback function to execute on all "browse" buttons. These buttons will apaear when this option is enabled. The callback function format is: fileBrowserCallBack(field_name, url, type). Where field_name is the form field to place browse result in and the url is the url that is to be changed and type is link/image or flash. + Advanced theme specific settings @@ -525,34 +539,6 @@ Mozilla Midas spec. But there are a some tinyMCE specific commands.
mceHelp Opens the manual pages. - - mceInsertTable - Inserts a new table at cursor location the default size is 2x2. If the value parameter is specified it should contain a name/value array, this array has the following options cols, rows, border, cellspacing, cellpadding. The default border is set to: 0. - - - mceTableInsertRowBefore - Inserts a row before/above the current cursor location. - - - mceTableInsertRowAfter - Inserts a row after/under the current cursor location. - - - mceTableDeleteRow - Deletes the row at the current cursor location. - - - mceTableInsertColBefore - Inserts a column before the current cursor location. - - - mceTableInsertColAfter - Inserts a column after the current cursor location. - - - mceTableDeleteCol - Deletes the column at the current cursor location. - mceAddControl Adds a editor control to the element id/name specified as value. diff --git a/www/extras/tinymce/docs/zh_cn/about.htm b/www/extras/tinymce/docs/zh_cn/about.htm new file mode 100644 index 000000000..eca209f4e --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/about.htm @@ -0,0 +1,39 @@ + + +¹ØÓÚTinyMCE + + + + + + + + + + + + +


+
+¸ÅÊö
+TinyMCEÊÇÒ»ÖÖÊÊÓÃÓÚMSIEºÍMozillaµÈä¯ÀÀÆ÷µÄÇáÁ¿¼¶Ëù¼û¼´ËùµÃ±à¼­Æ÷£¬ÒÔ¸ü¼ÓÓѺõķ½Ê½¹©Óû§±à¼­HTMLÄÚÈÝ¡£ËüС¶øÁé»î£¬Îª¼¯³É¶ø¹¹½¨£¬ÒÑÔÚIntranets, CMS, LMSÖ®ÀàµÄϵͳÖÐÓÐʹÓÃÏÈÀý.
+
+TinyMCEÓÉMoxieCode Systems AB¿ª·¢£¬¸ù¾Ý"LGPL"°æÈ¨Ð­Òé·¢ÐУ¬Çë²é¿´°æÈ¨Ðí¿ÉÒÔ»ñÈ¡¸ü¶àϸ½Ú¡£
+
+ÌØÕ÷
+- Ò×ÓÚ¼¯³É£¬Ö»ÐèÁ½ÐдúÂë.
+- Ö§³ÖÄ£°åºÍ×Ô¶¨ÒåÖ÷Ìâ.
+- ±ãÓÚʹÓÃ×Ô¶¨Òå´úÂëÀ©Õ¹.
+- ¿É¶¨ÖƵÄHTMLÊä³ö.ÆÁ±Î×é¼þ£¬Ç¿¼ÓÊôÐÔ.
+- ¹ú¼ÊÓïÑÔ£¨ÓïÑÔ°ü£©Ö§³Ö£¬Ä¿Ç°°üÀ¨£ºÓ¢¹úÓ¢ÓÈðµäÓ¢ÓÒâ´óÀûÓµÂÓºÉÀ¼£¬µ±È»»¹ÓÐÖÐÎÄ.
+- ¶àä¯ÀÀÆ÷Ö§³Ö£¬Ä¿Ç°ÓУºMozilla, MSIE ¼° FireFox.
+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/docs/zh_cn/compatiblity.htm b/www/extras/tinymce/docs/zh_cn/compatiblity.htm new file mode 100644 index 000000000..fb76232da --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/compatiblity.htm @@ -0,0 +1,355 @@ + + + ¼æÈÝÐÔͼ + + + + + + + + + + + + +
+ÒѾ­²âÊÔ¹ýµÄä¯ÀÀÆ÷¼°Æ½Ì¨ÉèÖþØÕó£º
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+
Windows XP
+
Linux(Debian)
+
MacOS X 10.3
+
MacOS 9
+
MSIE 6 OK
+

+

+
MSIE 5.5 SP2
+
OK
+

+

+
MSIE 5.2
+

+

+
TextArea
+
MSIE 5.01 SP2 OK (1)
+

+

+
MSIE 5.0
+

+

+
TextArea
Netscape 7.2
+

+

+
OK
+
Netscape 7.1
+
OK
+

+

+
Netscape 7.0.2
+

+

+

+
TextArea
Mozilla 1.8
+

+
OK
+

+
Mozilla 1.7.3
+

+

+
OK
+
Mozilla 1.7.2
+

+

+

+

+
Mozilla 1.7
+
OKOKOK
+
Mozilla 1.6
+
OKOK
+

+
Mozilla 1.5
+
OK (2)OK + (2)OK + (2)
+
Mozilla 1.4.1
+

+
OK
+

+
Mozilla 1.4
+
OK
+

+

+
Mozilla 1.3.1
+

+
OK
+
OK + (3)
Mozilla 1.3OK
+

+

+
Firefox 1.0
+
OK
+
OK
+
Firefox 0.9
+
OKOK
+

+
Firefox 0.8
+
OKOK
+

+
Firebird 0.7
+
OK + (2)OK + (2)
+

+
Firebird 0.6
+

+
NO
+

+

+
Safari 1.2.4
+

+

+
TextArea
+
+
+OK £º Õý³£¹¤×÷
+NO £º ÍêÈ«²»Äܹ¤×÷
+TextArea £º ·ÇHTML±à¼­Æ÷£¬½öÎı¾Óò
+
+
×¢Ò⣺
+(1) £º ÓÉÓÚCSSÖÐȱÉÙ²»Í¸Ã÷Ö§³Ö£¬±»½ûÓð´Å¥½«ÎÞ·¨±ä÷öµ­¡£
+(2) £º ÖØÐ¶¨Òå±í¸ñ³ß´çÈÔÓв¿·Öbug£¬¿´ÆðÀ´ËƺõÊÇä¯ÀÀÆ÷µÄÎÊÌâ¡£
+(3) £º ²»ÄÜÖØÐ¶¨Òå±í¸ñ³ß´ç£¬±í¸ñ¶Ô»°¿ò¸ù±¾²»ÄÜÆð×÷Óã¡
+
+×¢£º²âÊÔÖÐÖ»°üº¬ÁËÖ÷Á÷µÄ¡¢Îȶ¨µÄ²¢ÇÒÖ§³ÖMidasÌØÐÔµÄä¯ÀÀÆ÷¡£²¢ÇÒÇë¼Çס£¬Èç¹ûÄúµÄä¯ÀÀÆ÷ûÓб»ÁоÙÔÚÉÏ·½£¬²¢²»±íʾTinyMCEÔÚÄǸöä¯ÀÀÆ÷Öв»Äܹ¤×÷£¬½ö½öÒâζ×ÅûÓкËʵ¹ýÊÇ·ñÄÜÕý³£¹¤×÷¡£
+
+ + + + + + + + +
+
+ + diff --git a/www/extras/tinymce/docs/zh_cn/faq.htm b/www/extras/tinymce/docs/zh_cn/faq.htm new file mode 100644 index 000000000..132367ae6 --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/faq.htm @@ -0,0 +1,47 @@ + + + ³£¼ûÎÊÌ⣨FAQ£© + + + + + + + + + + + + +
+
+Ϊʲô"¼ôÇÐ/¸´ÖÆ/Õ³Ìù"µÄͼ±ê¿´²»µ½£¬ËüÃÇÈ¥ÄĶùÁË£¿
+
+1.20°æ±¾ÖÐÒòΪÔÚMozillaºÍFirefoxÉϵݲȫÐÔÎÊÌ⣬"¼ôÇÐ/¸´ÖÆ/Õ³Ìù"µÄͼ±ê±»ÒÆ×ßÁË¡£Èç¹ûÒ»¸ö¹¦ÄÜÔÚ2/3µÄÄ¿±êƽ̨ÉÏÎÞ·¨¹¤×÷£¬Ëü½«²»Äܱ»°üº¬½øÀ´¡£»»¾ä»°Ëµ£¬Ëü²»ÊÇ¿çÆ½Ì¨µÄ¡£ÏñCtrl-X/C/VÕâÑùµÄ¿ì½Ý¼ü»¹ÊÇÄܼÌÐøÊ¹Óã¬ÔÚä¯ÀÀÆ÷µÄ"±à¼­"²Ëµ¥ÖÐÒ²¿ÉÒÔÕÒµ½ÕâЩ¹¦ÄܵÄ×Ӳ˵¥¡£Êµ¼ÊÉÏÖ»ÓÐͼ±ê¿ì½Ý¼ü±»ÒƳýÁË¡£ÓûÁ˽âÕâ¸ö°²È«ÐÔÎÊÌâµÄ¸üÏêϸÐÅÏ¢£¬Çëµã»÷MozillaÍøÕ¾ÉϵĠbugzilla.
+
+ΪʲôMCEÔÚOpera/Konqueror/Safariä¯ÀÀÆ÷Éϲ»ÄÜÕý³£¹¤×÷£¿
+
+Ö»ÒªÕâЩä¯ÀÀÆ÷²»ÄÜÏñMozillaºÍMSIEÒ»ÑùÖ§³ÖexecCommand¼°designMode£¬ÓÃJavaScriptÀ´´´½¨Ëù¼û¼´ËùµÃ±à¼­Æ÷¾ÍÊDz»¿ÉÄܵġ£µ«Èç¹ûÕâЩä¯ÀÀÆ÷¿ªÊ¼Ö§³ÖÉÏÊöÌØÐÔ£¬ÎÒÃǽ«¾¡¿ìʹtinyMCEÄܼæÈÝÖ®¡£
+
+ΪʲôÓÐʱºòÄÚÈÝÊÇÖØ¸´µÄ£¬ÀýÈçÎÒ´ÓwordÖи´ÖÆÕ³ÌùµÄʱºò£¿
+
+µ±HTMLÄÚÈÝûÓÐÕýÈ·¸ñʽ»¯µÄʱºò¾Í»á·¢ÉúÕâ¸ö´íÎó£¬ÕâÊÇMSIEµÄbug¡£µ±HTML´úÂë°üº¬"<b/>"»òÕßǶÌ׵ĶÎÂä±êÇ©"<p><p>x</p></p>"µÄʱºò¾Í»á³ö´í£¬Ëü²úÉúÒ»¸ö´íÎóµÄDOM tree£¬¼°innerHTMLÉϵĴíÎóÊä³ö¡£Èç¹ûÓÐÈËÖªµÀÈçºÎ½â¾öÕâ¸öÎÊÌ⣬Çë¸æËßÎÒ¡£
+
+ΪʲôûÓÐÑÕɫѡÔñ¸ú×ÖÌåÑ¡Ôñ£¿

+
+ÒòΪÑÕÉ«¸ú×ÖÌåÑ¡Ôñ½«ÆÆ»µÕ¾µã»òϵͳµÄ²¼¾Ö±ê×¼£¬ÀýÈ磺»áÌ«ÏÔ¿íËÉ£¬ËùÒÔûÓбØÒªÔÚTinyMCEÖмÓÉÏÕâЩ¡£×ÖÌå¸úÑÕÉ«¿ÉÒÔͨ¹ýCSSÀàÀ´ÉèÖá£
+
+Ϊʲô"³·Ïû/»Ö¸´"¹¦ÄÜÔÚMozillaÖв»Æð×÷Óã¿
+
+ÕâÊÇÒòΪ"custom_undo_redo"Ñ¡Ïî±»´ò¿ª£¬´ËÑ¡Ï¸ÇÁ˼üÅÌ¿ì½Ý¼ü¼°ÃüÁ¾ßÀ¸ÉϵĿÉÓð´Å¥¡£µ«Ä¿Ç°Ã»Óз½·¨¿ÉÒÔ¸²¸ÇÄÚÖõÄ"³·Ïû/»Ö¸´"²Ëµ¥×ÓÏî¡£
+
+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/docs/zh_cn/index.htm b/www/extras/tinymce/docs/zh_cn/index.htm new file mode 100644 index 000000000..434263666 --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/index.htm @@ -0,0 +1,39 @@ + + + °ïÖúË÷Òý + + + + + + + + + + + + +
+
+Çëµã»÷ÒÔÏÂÁ´½ÓÀ´²é¿´°ïÖúÄÚÈÝÖеIJ»Í¬Õ½Ú. + +
+

¼òÌåÖÐÎÄ·­Òë by£ºcube316
+
+ ×¢Ò⣺ijЩµØ·½ÓÉÓÚÓ¢ÎÄÎĵµËµµÄÏ൱º¬ºý£¬»òÕßÒëÕß±¾ÉíˮƽԵ¹Ê£¬ +·­ÒëµÄ²»ÊǷdz£ÀíÏ룬²»×ãÖ®´¦Çë¶à¶à°üº­¡£
+²»ÄÜÀí½âµÄµØ·½¿É²ÎÔÄÓ¢ÎÄÎĵµ£¬ÓиüºÃµÄ·­ÒëÒ²Çë
ÈÃÎÒÖªµÀ ¡£

+ + diff --git a/www/extras/tinymce/docs/zh_cn/langs.htm b/www/extras/tinymce/docs/zh_cn/langs.htm new file mode 100644 index 000000000..035343552 --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/langs.htm @@ -0,0 +1,49 @@ + + +´´½¨ÓïÑÔ°ü + + + + + + + + + + + + +
+
+ÓïÑÔ°üÖ»ÊǼòµ¥µÄ½«"lang"Ŀ¼ÏÂ"<FN Code>.js"ÎļþÖеÄJavaScriptÃû³Æ£­ÖµÊý×é¶ÔÌæ»»¶øÒÑ¡£¼ÇµÃÔÚÕâЩÃû³ÆÖÐÒ»¶¨ÒªÊ¹ÓÃ"lang_"ǰ׺£¬ÒÔÃâÆä¸úÄ£°åÖÐµÄÆäËû±äÁ¿³åÍ»¡£
+ÒÔÏÂÀý×Ó±íÃ÷ÁËcut, copyºÍpasteµÄÎÄ×ÖÓïÑÔÊÇÈçºÎ±»´¦ÀíµÄ£º
+
+ + + + + +
tinyMCELang['lang_cut_desc'] + = 'Cut (Ctrl+X)';
+ tinyMCELang['lang_copy_desc'] = 'Copy (Ctrl+C)';
+ tinyMCELang['lang_paste_desc'] = 'Paste (Ctrl+P)';
+
×¢ÒâÓÐÁ½ÖÖÀàÐ͵ÄÓïÑÔ°ü£¬Ò»ÖÖÊDZ»È«²¿Ö÷ÌâËù¹²ÏíµÄÈ«¾ÖÓïÑÔ£¬ËüÔÚ"jscripts/tiny_mce/langs"Ŀ¼ÖУ»
ÁíÍâÒ»ÖÖÊÇijÖ÷ÌâÌØ¶¨ÓïÑÔ£¬Ò»°ã·ÅÔÚ"jscripts/tiny_mce/themes/<some theme>/langs"Ŀ¼ÖС£
+

µ±·­ÒëTinyMCEʱ£¬ÒÔÏÂÊÇĿǰËùÐèÒª·­ÒëµÄÎļþ£º
+
+ tinymce/jscripts/tiny_mce/langs/uk.js
+ tinymce/jscripts/tiny_mce/plugins/emotions/langs/uk.js
+ tinymce/jscripts/tiny_mce/plugins/iespell/langs/uk.js
+ tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/uk.js
+ tinymce/jscripts/tiny_mce/plugins/preview/langs/uk.js
+ tinymce/jscripts/tiny_mce/themes/advanced/langs/uk.js
+
×¢ÒâijЩÓïÑÔ±äÁ¿¿ÉÄÜ»á°üº¬gifͼƬµÄname/url»òÀàËÆ£¬ÀýÈçÔÚÈðµäÓïÑÔ°üÖдÖÌåµÄ°´Å¥ÓÐÒ»¸ö"F"×Ö·û¡£

+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/docs/zh_cn/license.htm b/www/extras/tinymce/docs/zh_cn/license.htm new file mode 100644 index 000000000..600e9cb00 --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/license.htm @@ -0,0 +1,388 @@ + + + +License + + + + + + + + + + + +
+
+Copyright © 2004 Moxiecode Systems AB
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License
as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+
+GNU Lesser General Public License
+Version 2.1, February 1999
+

Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.

+

[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]

+

Preamble
+ The licenses for most software are designed to take away your freedom to share + and change it. By contrast, the GNU General Public Licenses are intended to + guarantee your freedom to share and change free software--to make sure the software + is free for all its users.

+

This license, the Lesser General Public License, applies to some specially + designated software packages--typically libraries--of the Free Software Foundation + and other authors who decide to use it. You can use it too, but we suggest you + first think carefully about whether this license or the ordinary General Public + License is the better strategy to use in any particular case, based on the explanations + below.

+

When we speak of free software, we are referring to freedom of use, not price. + Our General Public Licenses are designed to make sure that you have the freedom + to distribute copies of free software (and charge for this service if you wish); + that you receive source code or can get it if you want it; that you can change + the software and use pieces of it in new free programs; and that you are informed + that you can do these things.

+

To protect your rights, we need to make restrictions that forbid distributors + to deny you these rights or to ask you to surrender these rights. These restrictions + translate to certain responsibilities for you if you distribute copies of the + library or if you modify it.

+

For example, if you distribute copies of the library, whether gratis or for + a fee, you must give the recipients all the rights that we gave you. You must + make sure that they, too, receive or can get the source code. If you link other + code with the library, you must provide complete object files to the recipients, + so that they can relink them with the library after making changes to the library + and recompiling it. And you must show them these terms so they know their rights. +

+

We protect your rights with a two-step method: (1) we copyright the library, + and (2) we offer you this license, which gives you legal permission to copy, + distribute and/or modify the library.

+

To protect each distributor, we want to make it very clear that there is no + warranty for the free library. Also, if the library is modified by someone else + and passed on, the recipients should know that what they have is not the original + version, so that the original author's reputation will not be affected by problems + that might be introduced by others.

+

Finally, software patents pose a constant threat to the existence of any free + program. We wish to make sure that a company cannot effectively restrict the + users of a free program by obtaining a restrictive license from a patent holder. + Therefore, we insist that any patent license obtained for a version of the library + must be consistent with the full freedom of use specified in this license.

+

Most GNU software, including some libraries, is covered by the ordinary GNU + General Public License. This license, the GNU Lesser General Public License, + applies to certain designated libraries, and is quite different from the ordinary + General Public License. We use this license for certain libraries in order to + permit linking those libraries into non-free programs.

+

When a program is linked with a library, whether statically or using a shared + library, the combination of the two is legally speaking a combined work, a derivative + of the original library. The ordinary General Public License therefore permits + such linking only if the entire combination fits its criteria of freedom. The + Lesser General Public License permits more lax criteria for linking other code + with the library.

+

We call this license the "Lesser" General Public License because + it does Less to protect the user's freedom than the ordinary General Public + License. It also provides other free software developers Less of an advantage + over competing non-free programs. These disadvantages are the reason we use + the ordinary General Public License for many libraries. However, the Lesser + license provides advantages in certain special circumstances.

+

For example, on rare occasions, there may be a special need to encourage the + widest possible use of a certain library, so that it becomes a de-facto standard. + To achieve this, non-free programs must be allowed to use the library. A more + frequent case is that a free library does the same job as widely used non-free + libraries. In this case, there is little to gain by limiting the free library + to free software only, so we use the Lesser General Public License.

+

In other cases, permission to use a particular library in non-free programs + enables a greater number of people to use a large body of free software. For + example, permission to use the GNU C Library in non-free programs enables many + more people to use the whole GNU operating system, as well as its variant, the + GNU/Linux operating system.

+

Although the Lesser General Public License is Less protective of the users' + freedom, it does ensure that the user of a program that is linked with the Library + has the freedom and the wherewithal to run that program using a modified version + of the Library.

+

The precise terms and conditions for copying, distribution and modification + follow. Pay close attention to the difference between a "work based on + the library" and a "work that uses the library". The former contains + code derived from the library, whereas the latter must be combined with the + library in order to run.

+

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ 0. This License Agreement applies to any software library or other program which + contains a notice placed by the copyright holder or other authorized party saying + it may be distributed under the terms of this Lesser General Public License + (also called "this License"). Each licensee is addressed as "you".

+

A "library" means a collection of software functions and/or data + prepared so as to be conveniently linked with application programs (which use + some of those functions and data) to form executables.

+

The "Library", below, refers to any such software library or work + which has been distributed under these terms. A "work based on the Library" + means either the Library or any derivative work under copyright law: that is + to say, a work containing the Library or a portion of it, either verbatim or + with modifications and/or translated straightforwardly into another language. + (Hereinafter, translation is included without limitation in the term "modification".) +

+

"Source code" for a work means the preferred form of the work for + making modifications to it. For a library, complete source code means all the + source code for all modules it contains, plus any associated interface definition + files, plus the scripts used to control compilation and installation of the + library.

+

Activities other than copying, distribution and modification are not covered + by this License; they are outside its scope. The act of running a program using + the Library is not restricted, and output from such a program is covered only + if its contents constitute a work based on the Library (independent of the use + of the Library in a tool for writing it). Whether that is true depends on what + the Library does and what the program that uses the Library does.

+

1. You may copy and distribute verbatim copies of the Library's complete source + code as you receive it, in any medium, provided that you conspicuously and appropriately + publish on each copy an appropriate copyright notice and disclaimer of warranty; + keep intact all the notices that refer to this License and to the absence of + any warranty; and distribute a copy of this License along with the Library. +

+

You may charge a fee for the physical act of transferring a copy, and you may + at your option offer warranty protection in exchange for a fee.

+

2. You may modify your copy or copies of the Library or any portion of it, + thus forming a work based on the Library, and copy and distribute such modifications + or work under the terms of Section 1 above, provided that you also meet all + of these conditions:

+

a) The modified work must itself be a software library.

+

b) You must cause the files modified to carry prominent notices stating that + you changed the files and the date of any change.

+

c) You must cause the whole of the work to be licensed at no charge to all + third parties under the terms of this License.

+

d) If a facility in the modified Library refers to a function or a table of + data to be supplied by an application program that uses the facility, other + than as an argument passed when the facility is invoked, then you must make + a good faith effort to ensure that, in the event an application does not supply + such function or table, the facility still operates, and performs whatever part + of its purpose remains meaningful.

+

(For example, a function in a library to compute square roots has a purpose + that is entirely well-defined independent of the application. Therefore, Subsection + 2d requires that any application-supplied function or table used by this function + must be optional: if the application does not supply it, the square root function + must still compute square roots.)

+

These requirements apply to the modified work as a whole. If identifiable sections + of that work are not derived from the Library, and can be reasonably considered + independent and separate works in themselves, then this License, and its terms, + do not apply to those sections when you distribute them as separate works. But + when you distribute the same sections as part of a whole which is a work based + on the Library, the distribution of the whole must be on the terms of this License, + whose permissions for other licensees extend to the entire whole, and thus to + each and every part regardless of who wrote it.

+

Thus, it is not the intent of this section to claim rights or contest your + rights to work written entirely by you; rather, the intent is to exercise the + right to control the distribution of derivative or collective works based on + the Library.

+

In addition, mere aggregation of another work not based on the Library with + the Library (or with a work based on the Library) on a volume of a storage or + distribution medium does not bring the other work under the scope of this License. +

+

3. You may opt to apply the terms of the ordinary GNU General Public License + instead of this License to a given copy of the Library. To do this, you must + alter all the notices that refer to this License, so that they refer to the + ordinary GNU General Public License, version 2, instead of to this License. + (If a newer version than version 2 of the ordinary GNU General Public License + has appeared, then you can specify that version instead if you wish.) Do not + make any other change in these notices.

+

Once this change is made in a given copy, it is irreversible for that copy, + so the ordinary GNU General Public License applies to all subsequent copies + and derivative works made from that copy.

+

This option is useful when you wish to copy part of the code of the Library + into a program that is not a library.

+

4. You may copy and distribute the Library (or a portion or derivative of it, + under Section 2) in object code or executable form under the terms of Sections + 1 and 2 above provided that you accompany it with the complete corresponding + machine-readable source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange.

+

If distribution of object code is made by offering access to copy from a designated + place, then offering equivalent access to copy the source code from the same + place satisfies the requirement to distribute the source code, even though third + parties are not compelled to copy the source along with the object code.

+

5. A program that contains no derivative of any portion of the Library, but + is designed to work with the Library by being compiled or linked with it, is + called a "work that uses the Library". Such a work, in isolation, + is not a derivative work of the Library, and therefore falls outside the scope + of this License.

+

However, linking a "work that uses the Library" with the Library + creates an executable that is a derivative of the Library (because it contains + portions of the Library), rather than a "work that uses the library". + The executable is therefore covered by this License. Section 6 states terms + for distribution of such executables.

+

When a "work that uses the Library" uses material from a header file + that is part of the Library, the object code for the work may be a derivative + work of the Library even though the source code is not. Whether this is true + is especially significant if the work can be linked without the Library, or + if the work is itself a library. The threshold for this to be true is not precisely + defined by law.

+

If such an object file uses only numerical parameters, data structure layouts + and accessors, and small macros and small inline functions (ten lines or less + in length), then the use of the object file is unrestricted, regardless of whether + it is legally a derivative work. (Executables containing this object code plus + portions of the Library will still fall under Section 6.)

+

Otherwise, if the work is a derivative of the Library, you may distribute the + object code for the work under the terms of Section 6. Any executables containing + that work also fall under Section 6, whether or not they are linked directly + with the Library itself.

+

6. As an exception to the Sections above, you may also combine or link a "work + that uses the Library" with the Library to produce a work containing portions + of the Library, and distribute that work under terms of your choice, provided + that the terms permit modification of the work for the customer's own use and + reverse engineering for debugging such modifications.

+

You must give prominent notice with each copy of the work that the Library + is used in it and that the Library and its use are covered by this License. + You must supply a copy of this License. If the work during execution displays + copyright notices, you must include the copyright notice for the Library among + them, as well as a reference directing the user to the copy of this License. + Also, you must do one of these things:

+

a) Accompany the work with the complete corresponding machine-readable source + code for the Library including whatever changes were used in the work (which + must be distributed under Sections 1 and 2 above); and, if the work is an executable + linked with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the user + can modify the Library and then relink to produce a modified executable containing + the modified Library. (It is understood that the user who changes the contents + of definitions files in the Library will not necessarily be able to recompile + the application to use the modified definitions.)

+

b) Use a suitable shared library mechanism for linking with the Library. A + suitable mechanism is one that (1) uses at run time a copy of the library already + present on the user's computer system, rather than copying library functions + into the executable, and (2) will operate properly with a modified version of + the library, if the user installs one, as long as the modified version is interface-compatible + with the version that the work was made with.

+

c) Accompany the work with a written offer, valid for at least three years, + to give the same user the materials specified in Subsection 6a, above, for a + charge no more than the cost of performing this distribution.

+

d) If distribution of the work is made by offering access to copy from a designated + place, offer equivalent access to copy the above specified materials from the + same place.

+

e) Verify that the user has already received a copy of these materials or that + you have already sent this user a copy.

+

For an executable, the required form of the "work that uses the Library" + must include any data and utility programs needed for reproducing the executable + from it. However, as a special exception, the materials to be distributed need + not include anything that is normally distributed (in either source or binary + form) with the major components (compiler, kernel, and so on) of the operating + system on which the executable runs, unless that component itself accompanies + the executable.

+

It may happen that this requirement contradicts the license restrictions of + other proprietary libraries that do not normally accompany the operating system. + Such a contradiction means you cannot use both them and the Library together + in an executable that you distribute.

+

7. You may place library facilities that are a work based on the Library side-by-side + in a single library together with other library facilities not covered by this + License, and distribute such a combined library, provided that the separate + distribution of the work based on the Library and of the other library facilities + is otherwise permitted, and provided that you do these two things:

+

a) Accompany the combined library with a copy of the same work based on the + Library, uncombined with any other library facilities. This must be distributed + under the terms of the Sections above.

+

b) Give prominent notice with the combined library of the fact that part of + it is a work based on the Library, and explaining where to find the accompanying + uncombined form of the same work.

+

8. You may not copy, modify, sublicense, link with, or distribute the Library + except as expressly provided under this License. Any attempt otherwise to copy, + modify, sublicense, link with, or distribute the Library is void, and will automatically + terminate your rights under this License. However, parties who have received + copies, or rights, from you under this License will not have their licenses + terminated so long as such parties remain in full compliance.

+

9. You are not required to accept this License, since you have not signed it. + However, nothing else grants you permission to modify or distribute the Library + or its derivative works. These actions are prohibited by law if you do not accept + this License. Therefore, by modifying or distributing the Library (or any work + based on the Library), you indicate your acceptance of this License to do so, + and all its terms and conditions for copying, distributing or modifying the + Library or works based on it.

+

10. Each time you redistribute the Library (or any work based on the Library), + the recipient automatically receives a license from the original licensor to + copy, distribute, link with or modify the Library subject to these terms and + conditions. You may not impose any further restrictions on the recipients' exercise + of the rights granted herein. You are not responsible for enforcing compliance + by third parties with this License.

+

11. If, as a consequence of a court judgment or allegation of patent infringement + or for any other reason (not limited to patent issues), conditions are imposed + on you (whether by court order, agreement or otherwise) that contradict the + conditions of this License, they do not excuse you from the conditions of this + License. If you cannot distribute so as to satisfy simultaneously your obligations + under this License and any other pertinent obligations, then as a consequence + you may not distribute the Library at all. For example, if a patent license + would not permit royalty-free redistribution of the Library by all those who + receive copies directly or indirectly through you, then the only way you could + satisfy both it and this License would be to refrain entirely from distribution + of the Library.

+

If any portion of this section is held invalid or unenforceable under any particular + circumstance, the balance of the section is intended to apply, and the section + as a whole is intended to apply in other circumstances.

+

It is not the purpose of this section to induce you to infringe any patents + or other property right claims or to contest validity of any such claims; this + section has the sole purpose of protecting the integrity of the free software + distribution system which is implemented by public license practices. Many people + have made generous contributions to the wide range of software distributed through + that system in reliance on consistent application of that system; it is up to + the author/donor to decide if he or she is willing to distribute software through + any other system and a licensee cannot impose that choice.

+

This section is intended to make thoroughly clear what is believed to be a + consequence of the rest of this License.

+

12. If the distribution and/or use of the Library is restricted in certain + countries either by patents or by copyrighted interfaces, the original copyright + holder who places the Library under this License may add an explicit geographical + distribution limitation excluding those countries, so that distribution is permitted + only in or among countries not thus excluded. In such case, this License incorporates + the limitation as if written in the body of this License.

+

13. The Free Software Foundation may publish revised and/or new versions of + the Lesser General Public License from time to time. Such new versions will + be similar in spirit to the present version, but may differ in detail to address + new problems or concerns.

+

Each version is given a distinguishing version number. If the Library specifies + a version number of this License which applies to it and "any later version", + you have the option of following the terms and conditions either of that version + or of any later version published by the Free Software Foundation. If the Library + does not specify a license version number, you may choose any version ever published + by the Free Software Foundation.

+

14. If you wish to incorporate parts of the Library into other free programs + whose distribution conditions are incompatible with these, write to the author + to ask for permission. For software which is copyrighted by the Free Software + Foundation, write to the Free Software Foundation; we sometimes make exceptions + for this. Our decision will be guided by the two goals of preserving the free + status of all derivatives of our free software and of promoting the sharing + and reuse of software generally.

+

NO WARRANTY

+

15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR + THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE + STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY + "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE + OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE + COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+

16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL + ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE + THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE + OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR + DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR + A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER + OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+

+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/docs/zh_cn/themes.htm b/www/extras/tinymce/docs/zh_cn/themes.htm new file mode 100644 index 000000000..c6774c160 --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/themes.htm @@ -0,0 +1,439 @@ + + +´´½¨Ö÷Ìâ + + + + + + + + + + + + +
+
+´´½¨Äã×Ô¼ºµÄÖ÷ÌâÓë²å¼þ
+
Èç¹ûÄã¶®µÃHTML,CSSºÍJavascriptµÄ»ù´¡ÖªÊ¶£¬ÎªTinyMCE´´½¨×Ô¼ºµÄÖ÷ÌâÊÇÏ൱ÈÝÒ×µÄÊÂÇé¡£
×î¼òµ¥µÄ·½·¨Äª¹ýÓÚ½«"default"»òÕß"advanced"Ä£°å¿½±´£¬²¢½«ËüÖØÃüÃûΪÄã×Ô¼ºµÄÖ÷ÌâÃû³Æ£¬ÀýÈ磺"mytheme"¡£
È»ºóÄãÐèÒª°ÑÒÔÏÂÆ¬¶ÏÖеĺìÉ«±ê¼Ç¸ü¸ÄΪ"mytheme"£¬ÕâÑù¸÷ÖÖÖ÷Ìâ¾Í²»»á³åÍ»¡£»»¾ä»°Ëµ£¬¸øÕâ¸öÖ÷ÌâÖ¸¶¨ÁËΨһµÄÃû×Ö¡£
¸ü¸ÄÀïÃæµÄHTML´úÂëʹ֮ÊʺÏÄãµÄÖ÷Ì⣬µ«ÐèҪעÒ⣬ijЩ×é¼þÊDZØÐëµÄ£¬ËùÒÔ¸ü¸ÄÒÔϵÄÿ¸öº¯Êýʱ¶¼Çë²é¿´ÏàÓ¦Îĵµ¡£
´ËÍ⣬×Ô¶¨ÒåÖ÷Ìâ±ØÐë×öΪ×ÓĿ¼·ÅÔÚtiny_mceµÄ"themes"Ŀ¼Ï¡£
Èç¹ûÐèÒª£¬ÄãÍêÈ«¿ÉÒÔΪ×Ô¼ºµÄÖ÷ÌâÔö¼ÓÌØ¶¨µÄÑ¡ÏîºÍÉèÖ㬲»¹ý¼ÇµÃÒªÓÃÒÔϵÄÃüÃû¹æÔò£º"theme_<your theme>_<option>"¡£
+
ÒÔÏÂʾÀýÓÐÈý¸öº¯Êý£¬ÏÂÃæ»áÏêϸ½éÉÜ¡£
+
+ + + + + + +
function TinyMCE_default_getEditorTemplate(settings) + {
+    var template = new Array();
+
   template['html'] = '<Some HTML>';
+    template['delta_width'] = 0;
+    template['delta_height'] = -40;
+
+    return template;
+ } +

function TinyMCE_default_getInsertLinkTemplate(settings) + {
+    var template = new Array();
+
+    template['file'] = 'link.htm';
+    template['width'] = 320;
+    template['height'] = 130;
+
+    return template;
+ }
+
+ function TinyMCE_default_getInsertImageTemplate(settings) + {
+    var template = new Array();
+
+    template['file'] = 'image.htm';
+    template['width'] = 320;
+    template['height'] = 130;
+
+    return template;
+ }
+
+ function TinyMCE_default_handleNodeChange(editor_id, + node) {
+    // Check what happend
+ }
+
+ function TinyMCE_default_execCommand(editor_id, element, command, user_interface, value) + {
+    // + Your custom command logic
+   return false;
+ } +
+

+
+
+
+

ʹÓÃÍⲿģ°åÎļþ

+

µ±ÓÃÏÂÃæËùÃèÊöµÄ"file"²ÎÊýʹÓÃÍⲿģ°åÎļþʱ£¬ÐèÒª°Ñ"tiny_mce_popup.js"°üº¬½øÀ´¡£
ΪÁ˸úTinyMCEͨѶ£¬´ËÎļþÊDZØÐëµÄ¡£ËùÓеıäÁ¿ºÍÓïÑÔ¶¨ÒåÔÚ"html"ÊôÐÔÖб»Ìæ»»¡£ +

Íⲿģ°åÎļþʾÀý£º +
+
+ + + + +
<html>
+ <head>
+ <title>{$lang_theme_sample_title}</title>
+ <script language="javascript" src="../../tiny_mce_popup.js"></script>
+ <script language="javascript">
+      alert(tinyMCE.getWindowArg('some_arg'));
+ </script> +
+ <body>
+ {$lang_theme_sample_desc}
+ </body> +

+
+
+º¯Êý TinyMCE_<theme or plugin>_getEditorTemplate(settings)

+

´Ëº¯Êý¸ºÔð±à¼­Æ÷ʵÀýÔÚÒ³ÃæÖеIJ¼¾Ö£¬Ëü·µ»Ø°üº¬Ìض¨Ãû³ÆµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£½âÊÍÈçÏ£¬×¢ÒâÓÃ[]À¨ÆðÀ´µÄÃû³ÆÊÇ¿ÉÑ¡µÄ¡£
´Ëº¯ÊýµÄsettings²ÎÊýÊÇÒ»¸ö°üº¬ÁËtinyMCEÉèÖúÍÑ¡ÏîµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£

+Ä£°åÊý¾Ý£º
+
+
+ + + + + + + + + + + + + +
htmlHTMLÄ£°åÊý¾Ý£¬ËüµÄÖµÊÇʵÏֱ༭Æ÷ËùÐèµÄÈ«²¿HTML´úÂë¡£×¢Ò⣺ÔÚʹÓÃʱ{$<variable>}»á±»Êµ¼ÊµÄÖµÌæ»»¡£¹ØÓÚÕâÐ©ÌØ¶¨ÖµµÄ¸üÏêϸ˵Ã÷¼ûºóÃæ¡£
[delta_width]Delta¿í¶È£¬´ËÖµ°üº¬Óû§½çÃæËùÐèµÄÏà¹Ø¿í¶È¡£ÀýÈ磬¹¤¾ßÀ¸ÐèÒª20ÏóËØ£¬Ôò´ËֵΪ-20¡£
+ ÕâÒ²ÊÇΪʲô±à¼­Æ÷µÄ³ß´ç¸úËüËùÌæ»»µÄ×é¼þ¿í¶ÈÒ»ÖµÄÔ­Òò¡£
[delta_height]Delta¸ß¶È£¬´ËÖµ°üº¬Óû§½çÃæËùÐèµÄÏà¹Ø¸ß¶È¡£ÀýÈ磬¹¤¾ßÀ¸ÐèÒª40ÏóËØ£¬Ôò´ËֵΪ-40¡£
+ ÕâÒ²ÊÇΪʲô±à¼­Æ÷µÄ³ß´ç¸úËüËùÌæ»»µÄ×é¼þ¿í¶ÈÒ»ÖµÄÔ­Òò¡£
+

ÉÏÊö"html"ÖеıäÁ¿±»TinyMCEµÄÄÚ²¿ÖµËùÌæ»»¡£ÓÐÁ½ÖÖ²»Í¬ÀàÐ͵ıäÁ¿£¬Ò»ÖÖÊÇÒÔ"lang_"Ϊǰ׺µÄ£¬ËüÃǻᱻÏàÓ¦Ãû³ÆµÄÓïÑÔ°üÌæ»»¡£ÀýÈ磬<b>{$lang_test}</b>±»ÓïÑÔ±äÁ¿"tinyMCELang['lang_test']"ËùÌæ»»£¬Êä³ö¾Í³ÉÁË<b>Test</b>¡£
ÁíÍâµÄ±äÁ¿ÊÇËùÓÃÄ£°åÖ±½Ó´«µÝµÄ£¬ÁоÙÈçÏ¡£ ×¢ÒâÓÃ[]À¨ÆðÀ´µÄ±äÁ¿ÊÇ¿ÉÑ¡µÄ¡£
+
+ ±äÁ¿£º

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
editor_id´ËΪ±à¼­Æ÷ʵÀýµÄID£¬ËüÓ¦µ±±»·ÅÔÚÄ£°å±ØÐë°üº¬µÄIFRAME×é¼þµÄIDÊôÐÔÖС£
[default_document]ΪÁ˽â¾öMSIEµÄ°²È«ÎÊÌ⣬Ôö¼ÓÁË´ËÉèÖã¬Ëü»á±»Ìæ»»³É¿Õ°×HTMLÒ³Ãæ¡£°ÑËü·ÅÔÚÄ£°åIFRAME×é¼þµÄSRCÊôÐÔÖС£
[area_width]IFRAMEÇøÓòµÄ¿í¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
[area_height]IFRAMEÇøÓòµÄ¸ß¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
[width]Õû¸ö±à¼­Æ÷ÇøÓòµÄ¿í¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
[height]Õû¸ö±à¼­Æ÷ÇøÓòµÄ¸ß¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
[themeurl]Ö÷ÌâËùÔÚλÖõÄURL¡£
+

×¢Ò⣺´ÓÕâ¸öÄ£°å¿ÉÒÔµ÷ÓÃÁ½¸öJavaScriptº¯Êý£¬ËüÃÇÊÇ£ºÔÚµ±Ç°Ñ¡¶¨±à¼­Æ÷ÇøÓòÖÐÖ´ÐÐÃüÁîµÄtinyMCE.execCommand¼°Çл»Ìض¨×é¼þCSSÀàµÄtinyMCE.switchClass¡£
+ÓûÁ˽âexecCommandÖпÉÒÔÖ´Ðеĸü¶àÃüÁîϸ½Ú£¬Çë²é¿´ Mozilla midas specification ºÍ TinyMCE specific commands.
+

+
+
+º¯Êý TinyMCE_<theme or plugin>_getInsertLinkTemplate(settings) +

´Ëº¯Êý¸ºÔð²åÈëÁ´½Óµ¯³ö´°¿ÚµÄ²¼¾Ö£¬Ëü·µ»Ø°üº¬Ìض¨Ãû³ÆµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£½âÊÍÈçÏ£¬×¢ÒâÓÃ[]À¨ÆðÀ´µÄÃû³ÆÊÇ¿ÉÑ¡µÄ¡£
´Ëº¯ÊýµÄsettings²ÎÊýÊÇÒ»¸ö°üº¬ÁËtinyMCEÉèÖúÍÑ¡ÏîµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£

+Ä£°åÊý¾Ý£º
+
+
+ + + + + + + + + + + + + + + + + +
htmlHTMLÄ£°åÊý¾Ý£¬ËüµÄÖµÊÇʵÏÖÁ´½Ó¶Ô»°¿òËùÐèµÄÈ«²¿HTML´úÂë¡£×¢Ò⣺ÔÚʹÓÃʱ{$<variable>}»á±»Êµ¼ÊµÄÖµÌæ»»¡£¹ØÓÚÕâÐ©ÌØ¶¨ÖµµÄ¸üÏêϸ˵Ã÷¼ûºóÃæ¡£Èç¹û"file"²ÎÊýÓи³Öµ£¬´Ë²ÎÊý²»ÊDZØÐëµÄ¡£
fileҪʹÓõÄÍⲿģ°åÎļþµÄÃû³Æ£¬Ëü¿ÉÒÔÊÇÏñ.php,.asp,.jspÕâÑùµÄ¶¯Ì¬Ò³¡£
[width]µ¯³ö´°¿ÚµÄ¿í¶È£¬ÒÔÏóËØÎªµ¥Î»£¬Ä¬ÈÏΪ320.
[height]µ¯³ö´°¿ÚµÄ¸ß¶È£¬ÒÔÏóËØÎªµ¥Î»£¬Ä¬ÈÏΪ200.
+

ÉÏÊö"html"ÖеıäÁ¿±»TinyMCEµÄÄÚ²¿ÖµËùÌæ»»¡£ÓÐÁ½ÖÖ²»Í¬ÀàÐ͵ıäÁ¿£¬Ò»ÖÖÊÇÒÔ"lang_"Ϊǰ׺µÄ£¬ËüÃǻᱻÏàÓ¦Ãû³ÆµÄÓïÑÔ°üÌæ»»¡£ÀýÈ磬<b>{$lang_test}</b>±»ÓïÑÔ±äÁ¿"tinyMCELang['lang_test']"ËùÌæ»»£¬Êä³ö¾Í³ÉÁË<b>Test</b>¡£
ÁíÍâµÄ±äÁ¿ÊÇËùÓÃÄ£°åÖ±½Ó´«µÝµÄ£¬ÁоÙÈçÏ¡£ ×¢ÒâÓÃ[]À¨ÆðÀ´µÄ±äÁ¿ÊÇ¿ÉÑ¡µÄ¡£
+
+ ±äÁ¿/´°¿Ú ²ÎÊý£º

+ + + + + + + + + + + + + +
[href]Èç¹ûÓÐÑ¡¶¨Ò»¸öÁ´½Ó£¬´Ë±äÁ¿±»Á´½ÓÖеÄ"href"ÊôÐÔÖµËùÌæ´ú¡£
[target]Èç¹ûÓÐÑ¡¶¨Ò»¸öÁ´½Ó£¬´Ë±äÁ¿±»Á´½ÓÖеÄ"target"ÊôÐÔÖµËùÌæ´ú¡£
[css]Ö÷ÌâÖе¯³ö´°¿ÚCSSµÄλÖá£
+

×¢Ò⣺´ÓÕâ¸öÄ£°åÖпÉÒÔµ÷ÓÃ"window.opener.tinyMCE.insertLink(href, target)"Õâ¸öjavascriptº¯Êý£¬ËüµÄ×÷ÓÃÊÇÊÇÔÚµ±Ç°Ñ¡¶¨µÄ±à¼­Æ÷ÖвåÈëÁ´½Ó£¬²¢ÇÒÓ¦µ±ÔÚ"²åÈë"°´Å¥°´ÏÂʱ±»µ÷Óá£

+
+
+º¯Êý TinyMCE_<theme or plugin>_getInsertImageTemplate(settings) +

´Ëº¯Êý¸ºÔð²åÈëͼÏñµ¯³ö´°¿ÚµÄ²¼¾Ö£¬Ëü·µ»Ø°üº¬Ìض¨Ãû³ÆµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£½âÊÍÈçÏ£¬×¢ÒâÓÃ[]À¨ÆðÀ´µÄÃû³ÆÊÇ¿ÉÑ¡µÄ¡£
´Ëº¯ÊýµÄsettings²ÎÊýÊÇÒ»¸ö°üº¬ÁËtinyMCEÉèÖúÍÑ¡ÏîµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£

+Ä£°åÊý¾Ý£º
+
+
+ + + + + + + + + + + + + + + + + +
htmlHTMLÄ£°åÊý¾Ý£¬ËüµÄÖµÊÇʵÏÖͼÏñ¶Ô»°¿òËùÐèµÄÈ«²¿HTML´úÂë¡£×¢Ò⣺ÔÚʹÓÃʱ{$<variable>}»á±»Êµ¼ÊµÄÖµÌæ»»¡£¹ØÓÚÕâÐ©ÌØ¶¨ÖµµÄ¸üÏêϸ˵Ã÷¼ûºóÃæ¡£Èç¹û"file"²ÎÊýÓи³Öµ£¬´Ë²ÎÊý²»ÊDZØÐëµÄ¡£
fileҪʹÓõÄÍⲿģ°åÎļþµÄÃû³Æ£¬Ëü¿ÉÒÔÊÇÏñ.php,.asp,.jspÕâÑùµÄ¶¯Ì¬Ò³¡£
[width]µ¯³ö´°¿ÚµÄ¿í¶È£¬ÒÔÏóËØÎªµ¥Î»£¬Ä¬ÈÏΪ320.
[height]µ¯³ö´°¿ÚµÄ¸ß¶È£¬ÒÔÏóËØÎªµ¥Î»£¬Ä¬ÈÏΪ200.
+

ÉÏÊö"html"ÖеıäÁ¿±»TinyMCEµÄÄÚ²¿ÖµËùÌæ»»¡£ÓÐÁ½ÖÖ²»Í¬ÀàÐ͵ıäÁ¿£¬Ò»ÖÖÊÇÒÔ"lang_"Ϊǰ׺µÄ£¬ËüÃǻᱻÏàÓ¦Ãû³ÆµÄÓïÑÔ°üÌæ»»¡£ÀýÈ磬<b>{$lang_test}</b>±»ÓïÑÔ±äÁ¿"tinyMCELang['lang_test']"ËùÌæ»»£¬Êä³ö¾Í³ÉÁË<b>Test</b>¡£
ÁíÍâµÄ±äÁ¿ÊÇËùÓÃÄ£°åÖ±½Ó´«µÝµÄ£¬ÁоÙÈçÏ¡£ ×¢ÒâÓÃ[]À¨ÆðÀ´µÄ±äÁ¿ÊÇ¿ÉÑ¡µÄ¡£
+
+ ±äÁ¿/´°¿Ú ²ÎÊý£º

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[src]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"src"ÊôÐÔÖµËùÌæ´ú¡£
[alt]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"alt"ÊôÐÔÖµËùÌæ´ú¡£
[border]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"border"ÊôÐÔÖµËùÌæ´ú¡£
[hspace]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"hspace"ÊôÐÔÖµËùÌæ´ú¡£
[vspace]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"vspace"ÊôÐÔÖµËùÌæ´ú¡£
[width]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"width"ÊôÐÔÖµËùÌæ´ú¡£
[height]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"height"ÊôÐÔÖµËùÌæ´ú¡£
[align]Èç¹ûÓÐÑ¡¶¨Ò»¸öͼÏñ£¬´Ë±äÁ¿±»Í¼ÏñÖеÄ"align"ÊôÐÔÖµËùÌæ´ú¡£
[css]Ö÷ÌâÖе¯³ö´°¿ÚCSSµÄλÖá£
+

×¢Ò⣺´ÓÕâ¸öÄ£°åÖпÉÒÔµ÷ÓÃ"window.opener.tinyMCE.insertImage(src, alt, border, hspace, vspace, width, + height, align)"Õâ¸öjavascriptº¯Êý£¬ËüµÄ×÷ÓÃÊÇÊÇÔÚµ±Ç°Ñ¡¶¨µÄ±à¼­Æ÷ÖвåÈëͼÏñ£¬²¢ÇÒÓ¦µ±ÔÚ"²åÈë"°´Å¥°´ÏÂʱ±»µ÷Óá£

+
+
+º¯Êý TinyMCE_<theme or plugin>_getInsertTableTemplate(settings) +£¨¿ÉÑ¡£© +

´Ëº¯Êý¸ºÔð²åÈë±í¸ñµ¯³ö´°¿ÚµÄ²¼¾Ö£¬Ëü·µ»Ø°üº¬Ìض¨Ãû³ÆµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£½âÊÍÈçÏ£¬×¢ÒâÓÃ[]À¨ÆðÀ´µÄÃû³ÆÊÇ¿ÉÑ¡µÄ¡£
´Ëº¯ÊýµÄsettings²ÎÊýÊÇÒ»¸ö°üº¬ÁËtinyMCEÉèÖúÍÑ¡ÏîµÄÃû³Æ£­Öµ¶ÔµÄÊý×é¡£

+Ä£°åÊý¾Ý£º
+
+
+ + + + + + + + + + + + + + + + + +
htmlHTMLÄ£°åÊý¾Ý£¬ËüµÄÖµÊÇʵÏÖ±í¸ñ¶Ô»°¿òËùÐèµÄÈ«²¿HTML´úÂë¡£×¢Ò⣺ÔÚʹÓÃʱ{$<variable>}»á±»Êµ¼ÊµÄÖµÌæ»»¡£¹ØÓÚÕâÐ©ÌØ¶¨ÖµµÄ¸üÏêϸ˵Ã÷¼ûºóÃæ¡£Èç¹û"file"²ÎÊýÓи³Öµ£¬´Ë²ÎÊý²»ÊDZØÐëµÄ¡£
fileҪʹÓõÄÍⲿģ°åÎļþµÄÃû³Æ£¬Ëü¿ÉÒÔÊÇÏñ.php,.asp,.jspÕâÑùµÄ¶¯Ì¬Ò³¡£
[width]µ¯³ö´°¿ÚµÄ¿í¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
[height]µ¯³ö´°¿ÚµÄ¸ß¶È£¬ÒÔÏóËØÎªµ¥Î»¡£
+

ÉÏÊö"html"ÖеıäÁ¿±»TinyMCEµÄÄÚ²¿ÖµËùÌæ»»¡£ÓÐÁ½ÖÖ²»Í¬ÀàÐ͵ıäÁ¿£¬Ò»ÖÖÊÇÒÔ"lang_"Ϊǰ׺µÄ£¬ËüÃǻᱻÏàÓ¦Ãû³ÆµÄÓïÑÔ°üÌæ»»¡£ÀýÈ磬<b>{$lang_test}</b>±»ÓïÑÔ±äÁ¿"tinyMCELang['lang_test']"ËùÌæ»»£¬Êä³ö¾Í³ÉÁË<b>Test</b>¡£
ÁíÍâµÄ±äÁ¿ÊÇËùÓÃÄ£°åÖ±½Ó´«µÝµÄ£¬ÁоÙÈçÏ¡£ ×¢ÒâÓÃ[]À¨ÆðÀ´µÄ±äÁ¿ÊÇ¿ÉÑ¡µÄ¡£
+
+ ±äÁ¿/´°¿Ú ²ÎÊý£º

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[cols]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄÁÐÊýËùÌæ´ú¡£
[rows]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄÐÐÊýËùÌæ´ú¡£
[border]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"border"ÊôÐÔÖµËùÌæ´ú¡£
[cellpadding]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"cellpadding"ÊôÐÔÖµËùÌæ´ú¡£
[cellspacing]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"cellspacing"ÊôÐÔÖµËùÌæ´ú¡£
[width]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"width"ÊôÐÔÖµËùÌæ´ú¡£
[height]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"height"ÊôÐÔÖµËùÌæ´ú¡£
[align]Èç¹ûÓÐÑ¡¶¨Ò»¸ö±í¸ñ£¬´Ë±äÁ¿»á±»±í¸ñµÄ"align"ÊôÐÔÖµËùÌæ´ú¡£
[action]¸ù¾ÝÓû§ÊÇÑ¡ÔñÁËÒ»¸ö±í¸ñ»¹ÊÇ´´½¨Ò»¸öеıí¸ñÀ´Ñ¡Ôñ²Ù×÷ÀàÐÍÊÇ"update"»¹ÊÇ"insert"¡£
+
+
+º¯Êý TinyMCE_<theme or plugin>_handleNodeChange £¨¿ÉÑ¡£© +

´Ëº¯ÊýÔÚij¸ö±à¼­Æ÷ʵÀýµÄ¾Û½¹×´Ì¬·¢Éú¸Ä±äʱ±»µ÷Ó㬵±Ç°Ð¾۽¹µÄ½Úµã±»×öΪ²ÎÊý´«µÝ¸ø´Ëº¯Êý¡£Õâ¶ÔÓÚÄãÐèÒª¸ù¾ÝÓû§µÄÑ¡ÔñÀ´¸Ä±äÓû§½çÃæ·Ç³£ÓÐÓá£

+²ÎÊý£º
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
editor_id±à¼­Æ÷µÄΨһIDºÅ£¬Õâ¸úgetEditorTemplateÖеÄ$editor_id±äÁ¿Ò»Ö¡£
nodeµ±Ç°Êó±êËùÔÚλÖýڵãµÄÒýÓá£
undo_indexµ±Ç°³·ÏûË÷Òý£¬Èç¹û³·Ïû/ÖØ×ö¹¦Äܱ»½ûÓã¬ÆäֵΪ-1¡£
undo_levelsµ±Ç°³·Ïû²ã´ÎµÄÊýÄ¿£¬Èç¹û³·Ïû/ÖØ×ö¹¦Äܱ»½ûÓã¬ÆäֵΪ-1¡£
visual_aidÊÓ¾õ°ïÖúģʽµÄ״̬£¬True/false¡£
any_selectionÊÇ·ñÑ¡¶¨ÈκÎÎÄ×Ö»òͼÏñ¡£
+
+
+º¯Êý TinyMCE_<theme or plugin>_execCommand £¨¿ÉÑ¡£© +

µ±Ö´ÐÐÏñ"bold"»ò"createlink"ÕâÑùµÄÃüÁîʱ£¬´Ë·½·¨±»µ÷Óá£È»ºó´Ë »Øµ÷/Ö÷Ìâ/²å¼þ º¯Êý»ØÖжÏÖ÷ÌâÌØ¶¨ÃüÁ²¢Ö´Ðпͻ§Âß¼­¡£Èç¹û´ËÃüÁî·µ»Øtrue£¬ÃüÁî´¦Àí±»ÖÕÖ¹£¬Ä¬ÈϵÄtinyMCEÃüÁî´¦ÀíÓÀÔ¶²»»á±»Ö´ÐС£

+²ÎÊý£º
+
+
+ + + + + + + + + + + + + + + + + + + + + +
editor_id±à¼­Æ÷µÄΨһIDºÅ£¬Õâ¸úgetEditorTemplateÖеÄ$editor_id±äÁ¿Ò»Ö¡£
element¶Ô±à¼­Æ÷ʵÀýÖÐÎĵµDOM¸ù×é¼þµÄÒýÓá£
commandÒªÖ´ÐеÄÃüÁÀýÈ磺"myCommand"¡£
user_interfaceÊÇ·ñʹÓÃÓû§½çÃæ£¬true/falseÑ¡Ïî¡£
valueÒª´«¸øÃüÁîµÄ×Ô¶¨ÒåÊý¾ÝÖµ£¬¿ÉÒÔÊÇÈκÎÊý¾ÝÀàÐÍ¡£
+
+·µ»Ø£º true - ÃüÁî±»ÖÕÖ¹£¬ÃüÁî´¦Àí²»ÔÙ¼ÌÐø£»false - ¼ÌÐøexecCommand´¦Àí£¬Ã°Åݵġ£
+
+º¯Êý TinyMCE_<theme or plugin>_getControlHTML(control_name) £¨¿ÉÑ¡£© +

µ±±à¼­Æ÷ÐèҪʵÏÖij¸öÌØ¶¨¿ØÖÆ/°´Å¥µÄʱºò´Ëº¯Êý±»µ÷Óã¬Ëü·µ»ØµÄÊÇÄǸö¿ØÖƵÄHTMLÄ£°å£¬Èç¹û¿ØÖƵÄÃû×Ö²»Äܱ»Ê¶±ðÔò·µ»Ø¿Õ´®¡£
×¢Òâ±äÁ¿{$pluginurl}»á±»µ±Ç°²å¼þĿ¼µÄURLǰ׺ËùÌæ»»¡£

+²ÎÊý£º
+
+
+ + + + + +
control_nameҪƥÅäµÄµÄ¿ØÖƵÄÃû³Æ¡£ÀýÈ磬"iespell"´ú±íµÄÊÇiespell²å¼þ¡£
+
+·µ»Ø£º·µ»ØµÄ¸Ã¿ØÖƵÄHTMLÄ£°å£¬Èç¹û¿ØÖƵÄÃû×Ö²»Äܱ»Ê¶±ðÔò·µ»Ø¿Õ´®¡£ +
+º¯Êý TinyMCE_<plugin>_cleanup(type, content) £¨¿ÉÑ¡£© +

µ±±à¼­Æ÷¶ÔÄÚÈݽøÐÐÇåÀíʱ´Ëº¯Êý±»µ÷Óá£

+²ÎÊý£º
+
+
+ + + + + + + + + +
typeÇåÀíµÄÀàÐÍ£¬insert_to_editor»òÕßget_from_editor¡£
+ µ±Ïò±à¼­Æ÷Öд«µÝÄÚÈÝʱʹÓÃinsert_to_editor£»µ±´Ó±à¼­Æ÷ÖлñÈ¡ÄÚÈÝʱʹÓÃget_from_editor¡£
contentÒªÇåÀíµÄHTMLÄÚÈÝ£¬¸Ã×Ö·û´®°üº¬ÁËHTML´úÂë¡£
+
+·µ»Ø£ºÇåÀíºóµÄHTML´úÂë¡£
+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/docs/zh_cn/using.htm b/www/extras/tinymce/docs/zh_cn/using.htm new file mode 100644 index 000000000..fa51dacbc --- /dev/null +++ b/www/extras/tinymce/docs/zh_cn/using.htm @@ -0,0 +1,706 @@ + + +ʹÓÃ/¼¯³ÉTinyMCE + + + + + + + + + + + + +
+
+ +³õʼ»¯
+
+ÔÚ³õʼ»¯TinyMCEµÄʱºò£¬ÐèÒª°ÑÒÔÏ´úÂë¼ÓÈëµ½Ò³ÃæµÄHEAD±êÇ©ÖС£°´ÒÔÏÂÀý×ÓÖеÄÉèÖã¬ËùÓеÄTEXTAREAÎı¾ÓòÔÚÒ³Ãæ¼ÓÔØÊ±½«±»×ª»»³É±à¼­Æ÷¡£ÁíÍ⻹ÓÐÆäËûÄ£¿é£¬ÎÒÃǽ«ÔÚºóÃæÏêϸ½²Êö¡£
+
+ + + + + +
<!-- tinyMCE -->
+ <script language="javascript" type="text/javascript" + src="jscripts/tiny_mce/tiny_mce.js"></script>
+ <script language="javascript" type="text/javascript">
+    tinyMCE.init({
+       mode : "textareas"
+    });

+ </script>
+ <!-- /tinyMCE -->
+
+×¢ÒâÒÔÉϺìÉ«²¿·ÖÊÇtiny_mce.js½Å±¾ÎļþµÄλÖ㬸ÃÎļþÖаüº¬Á˱༭Æ÷ËùÐèÒªµÄÈ«²¿´úÂ룬Ö÷Ìâ¼°ÓïÑÔ°ü½«ÔÚ³õʼ»¯Ê±±»¼ÓÔØ¡£
+À¶É«²¿·ÖÊdzõʼ»¯µ÷Óã¬ËüÉú³ÉTinyMCEµÄÈ«¾ÖʵÀý£¬ÆäÖеÄÉèÖü°Ãû³Æ£­ÖµÊôÐÔ½«ÔÚÒÔºóÃèÊö¡£
+
+ ÉèÖÃ
+
+ÒÔÃû³Æ£­ÖµÊôÐÔ·½Ê½´«µÝ¸øtinyMCEµÄinit·½·¨µÄÉèÖÿØÖÆ×ųÌÐòµÄÈ«¾ÖÐÐΪ¡£ËùÓеļü¼°¿ÉÄܵļüÖµÈçϱíËùʾ¡£×¢Ò⣬ÓÃ[]À¨ÆðÀ´µÄÃû³ÆÊÇ¿ÉÑ¡µÄ£¬²»ÊDZØÐëµÄÉèÖá£
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
³£¹æÉèÖÃ
modeMode¿ÉÒÔÊÇÒÔϼ¸¸öÖµÖ®Ò»£º
+
textareas + - Ò³Ãæ¼ÓÔØÊ±°ÑËùÓÐTEXTAREA×é¼þת»»³É±à¼­Æ÷.
specific_textareas + - ½«ËùÓÐ"mce_editable"ÊôÐÔֵΪtrueµÄTEXTAREAת»»³É±à¼­Æ÷.
+ exact - ֻת»»ÔÚ"elements"ÉèÖÃÖÐÖ¸¶¨µÄÈ·ÇÐ×é¼þ.
[theme]Ö¸¶¨ÒªÊ¹ÓõÄÖ÷ÌâÃû³Æ£¬Ö÷Ì⽫±»·ÅÔÚTinyMCEµÄthemesĿ¼Ï£¬Ä¬ÈÏΪdefault¡£TinyMCE×Ô´øÈý¸öÄÚÖõÄÖ÷Ì⣬ËüÃÇÊÇsimple£¬defaultºÍadvanced¡£
+ Èç¹ûÄãÏë´´½¨×Ô¼ºµÄÖ÷Ì⣬Çë×ÐϸÔĶÁÎĵµµÄ Ö÷Ìâ ²¿·Ö¡£
[plugins]´ËÑ¡ÏîÊÇһϵÁÐÒÔ¶ººÅ·Ö¸ôµÄÖ÷Ìâ²å¼þÁÐ±í£¨ÀýÈ磬¿ÉÒÔÖ»ÓÃÀ´À©Õ¹Í¼Ïñ¶Ô»°¿ò£©¡£ÕâЩ²å¼þ¸²¸ÇÁËÖ÷ÌâÄ£°åÖж¨ÒåµÄ¹¦ÄÜ¡£²å¼þÂß¼­Ó¦¸Ã°üº¬ÔÚÒ»¸ö½Ð"editor_plugin.js"µÄÎļþÖУ¬ËüÊDzå¼þĿ¼ÖÐΨһ±»°üº¬½øÀ´µÄÎļþ¡£
+ ÀýÈ磺"my_image_dialog,my_link_dialog". +
Èç¹ûÄãÏë´´½¨×Ô¼ºµÄ²å¼þ£¬Çë×ÐϸÔĶÁÎĵµµÄ Ö÷Ìâ ²¿·Ö¡£
[language]TinyMCEÖÐʹÓõÄÓïÑÔ°ü£¬ÕâÓ¦¸ÃÊÇÏñse,uk,usµÈÖîÈç´ËÀàµÄFN´úÂ룬Ëü±»ÓÃÀ´´Ó"langs"Ŀ¼ÖлñÈ¡ÓïÑÔ°ü£¬¸ÃÉèÖõÄĬÈÏֵΪ"uk".
+ ÖÐÎÄÓû§½¨ÒéÄúʹÓÃ"zh-CN"
[elements]ÒÔ¶ººÅ·Ö¸ôµÄÓÃÀ´×ª»»³É±à¼­Æ÷µÄ×é¼þÁÐ±í£¬¸ÃÑ¡Ïî½öÔÚ"mode"Ñ¡Ïî±»ÉèÖóÉ"exact"ʱʹÓ᣸ÃÁбíÖеÄÔªËØ¿ÉÒÔÊÇÈκÎÓÐid»ònameÊôÐÔµÄHTML×é¼þ¡£
[ask]µ±"mode"±»ÉèÖóÉ"textareas"»ò"specific_textareas"µÄʱºò£¬¸ÃÑ¡Ïî±»Ó¦Óã¬Ñ¯ÎÊÓû§ÊäÈë¿òÊÇ·ñ½«±»×ª»»³É±à¼­Æ÷¡£
+ Èç¹ûÄãÏëʹÓÃÕâ¸öÑ¡Ï½«ËüÉèÖÃΪtrue.
[textarea_trigger]textarea£¨Îı¾Óò£©´¥·¢Æ÷µÄÊôÐÔ£¬Ä¬ÈÏֵΪ"mce_editable"¡£
+ ¸ÃÑ¡Ïî½öÔÚ"mode"±»ÉèÖÃΪ"specific_textareas"ʱʹÓá£
[valid_elements]ÒÔ¶ººÅ·Ö¸ô¿ªµÄ×é¼þת»»²¿·ÖµÄÁÐ±í¡£
+
+ ÀýÈ磺 a[href|target=_blank],strong/b,div[align],br.

+ ÒÔÉÏÀý×Ó¸æËßTinyMCEÒÆ³ýËùÓгýÁË"a, strong, div"ºÍ"br"µÄ×é¼þ£¬½«ÔªËØbת»»³Éstrong£¬Ä¬ÈÏtargetÉèΪ"_blank"²¢±£³Öhref¡¢target¡¢alignÊôÐÔ¡£ÔÚÆ¥Åä×é¼þ¼°ÊôÐÔµÄÃû³ÆÊ±¿ÉÒÔʹÓÃÏñ*,+,?ÕâÑùµÄͨÅä·û¡£
+
×Ö·û£º
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 , ¸÷×é¼þ¶¨ÒåÖ®¼äµÄ·Ö¸ô·û¡£
 / Á½¸öͬÒå×é¼þÖ®¼äµÄ·Ö¸ô·û¡£µÚÒ»¸ö×é¼þÊǻᱻÓÃÀ´Êä³öµÄÄǸö£¨¼´µÚ¶þ¸ö×é¼þ±»µÚÒ»¸öÌæ»»£©¡£
 | ¸÷ÊôÐÔ¶¨ÒåÖ®¼äµÄ·Ö¸ô·û¡£
 [ ¶¨Òåij×é¼þµÄÊôÐÔÁбíµÄ¿ªÊ¼·ûºÅ¡£
 ] ¶¨Òåij×é¼þµÄÊôÐÔÁбíµÄ½áÊø·ûºÅ¡£
 = ½«ÊôÐÔµÄĬÈÏÖµÉèÎªÌØ¶¨Öµ¡£ÀýÈ磺"target=_blank"
 : ½«ÊôÐÔµÄֵǿÐÐÉèÎªÌØ¶¨Öµ¡£ÀýÈ磺"border:0"
 < Ð£Ñéij¸öÊôÐÔµÄÖµ¡£ÀýÈ磺"target<_blank?_self"
 ? ÊôÐÔУÑéÖµÖ®¼äµÄ·Ö¸ô·û£¬¼ûÉÏ¡£
+
+ ÌØÊâ±äÁ¿£º
+ {$uid} - ²úÉúÒ»¸öΨһIDºÅ¡£ ÀýÈ磺"p[id:{$uid}]".
+
´ËÑ¡ÏîµÄĬÈÏÖµÊÇÒÔÏÂģʽ£º
"a[href|target],strong/b[class],em/i[class],strike[class],u[class],p[class|align],ol,ul,li,br,
+ img[class|src|border=0|alt|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],
+ table[border=0|cellspacing|cellpadding|width|height|class|align],tr[rowspan],
+ td[colspan|rowspan|width|height],div[class|align],span[class|align],pre[class|align],
+ address[class|align],h1[class|align],h2[class|align],h3[class|align],
+ h4[class|align],h5[class|align],h6[class|align],hr".
+
Òª°üº¬ËùÓÐ×é¼þ¼°ÊôÐÔ£¬ÇëʹÓà *[*] £¬ÕâÔÚʹÓÃinvalid_elementsÑ¡ÏîÊ±ÌØ±ðÓÐÓá£
[extended_valid_elements]Ïò"valid_elements"ÁбíĩβÌí¼Ó¿ÉÓÃ×é¼þ¡£´ËÑ¡ÏîÔÚÄã½ö½öÏëÍùĬÈÏÁбíÖÐÔöÌí²¿·Ö×é¼þʱÏ൱ÓÐÓá£
+ ¸ñʽÓë"valid_elements"Ò»Ö¡£
[invalid_elements]Êä³öʱÐèÒªÅųýÔÚÍâµÄ×é¼þÃû³ÆÁÐ±í£¬ÒÔ¶ººÅ·Ö¸ô¿ª¡£
[trim_span_elements]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖÃΪtrue£¬²»ÐèÒªµÄ×é¼þ½«±»ÒƳý¡£Ä¬ÈÏÖµ¼´Îªtrue¡£
[verify_css_classes]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖÃΪtrue£¬½«»áУÑéCSSµÄclassÊôÐÔ¡£Ä¬ÈÏÖµ¼´Îªtrue¡£
[verify_html]True/FalseÑ¡Ïî¡£´ú±í×ÅHTMLÄÚÈÝÊÇ·ñÐèҪУÑ顣ĬÈÏֵΪtrue¡£
[urlconvertor_callback]µ±ÇåÀí½ø³Ì´¦ÀíURLµÄʱºòµ÷Óõĺ¯ÊýÃû¡£´Ëº¯Êý±ØÐë×ñ´ÓÒÔϵĸñʽ£ºfunc(url, node, on_save) £¬·µ»Ø×ª»»ºóµÄURL¡£´ËÉèÖÃרΪ¼¯³ÉÄ¿µÄ¶øÉè¡£²ÎÊýurl´ú±íҪת»»µÄµØÖ·£¬node´ú±í°üº¬URLµÄÄǸö½Úµã£¬on_saveÊÇÒ»¸ö²¼¶ûÖµ£¨ÔÚÓû§Ìá½»±íµ¥Ê±ÎªÕ棩¡£
[preformatted]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖÃΪtrue£¬±à¼­Æ÷½«°ÑÖÆ±í·û£¨TAB£©×ª»»³ÉËõ½ø£¬³ý´ËÍâ±£³ÖÆäËûwhitespace£¨¿Õ°××Ö·û¡¢»»Ðеȣ©×Ö·û£¬¾ÍÈçͬHTML±êÇ©ÖеÄPREµÄЧ¹û¡£Ä¬ÈÏֵΪfalse¡£
[insertlink_callback]µ±Ö´ÐÐ"insertlink"ÃüÁîʱµ÷Óõĺ¯ÊýÃû¡£´Ëº¯Êý»ñȡѡ¶¨Á´½ÓµÄµØÖ·ºÍÄ¿±ê£¬·µ»ØÒ»¸öÒÔ"href", "target"ºÍ "title"ΪcollectionÃû³ÆµÄÊý×é¡£µ±Ê¹ÓÃд°¿Úʱ£¬ÎªÁ˼æÈÝMozilla£¬»áÔÚwindow.opener£¨µ¯³ö´°¿ÚµÄĸ´°¿Ú£¬ÒëÕß×¢£©Éϵ÷ÓÃtinyMCE.insertLink¡£
[insertimage_callback]µ±Ö´ÐÐ"insertimage"ÃüÁîʱµ÷Óõĺ¯ÊýÃû¡£´Ëº¯Êý»ñȡѡ¶¨Í¼ÏñµÄurl²¢·µ»ØÒ»¸öÒÔsrcºÍaltΪcollectionÃû³ÆµÄÊý×é¡£µ±Ê¹ÓÃд°¿Úʱ£¬ÎªÁ˼æÈÝMozilla£¬»áÔÚwindow.openerÉϵ÷ÓÃtinyMCE.insertImage¡£
+ º¯Êý¸ñʽ£ºinsertimage(src, alt, border, hspace, vspace, width, height, align, title, + onmouseover, onmouseout, action).
[setupcontent_callback]µ±±à¼­Æ÷³õʼ»¯Ê±µ÷Óõĺ¯ÊýÃû¡£º¯Êý¸ñʽ£ºsetupContentCallback(editor_id, node)£¬ÆäÖÐeditor_idÊDZ༭Æ÷µÄid£¬nodeÊDZ༭Æ÷ËùÔÚµÄbody×é¼þ½Úµã¡£
[save_callback]µ±Ö´ÐÐtriggerSave£¨´¥·¢±£´æ£©ÃüÁî±»µ÷ÓÃʱµ÷Óõĺ¯ÊýÃû¡£º¯Êý¸ñʽ£ºsave(id, content, node)£¬Èç¹ûÓÐÌØ¶¨·µ»ØÖµ£¬ÆäÖµ½«»á±»¼Óµ½HTML±íµ¥×é¼þÉÏ¡£ËùÒÔ¿ÉÒÔͨ¹ý´Ëº¯ÊýÀ´×Ô¶¨ÒåÓû§×ª»»Âß¼­¡£
[docs_language]TinyMCEÎĵµÖÐʹÓõÄÓïÑÔ£¬ÕâÓ¦¸ÃÊÇÏñse,uk,usµÈÖîÈç´ËÀàµÄFN´úÂ룬Ëü±»ÓÃÀ´´Ó"<theme>/docs/<lang>"Ŀ¼ÖлñÈ¡Îĵµ¡£ + ¸ÃÑ¡ÏîµÄĬÈÏÖµ¸úlanguageÑ¡ÏîÒ»Ö¡£
[width]±à¼­Æ÷µÄ¿í¶È£¬ËüĬÈϵĿí¶ÈÊÇÔ­Ïȱ»Ìæ»»µÄ×é¼þ¿í¶È¡£
[height]±à¼­Æ÷µÄ¸ß¶È£¬ËüĬÈϵĸ߶ÈÊÇÔ­Ïȱ»Ìæ»»µÄ×é¼þ¸ß¶È¡£
[content_css]±à¼­´°¿ÚÖÐҪʹÓõÄCSSÎļþ£¬Æä·¾¶Ó¦¸Ã¸úÒ³ÃæÏà¹Ø¡£
[popups_css]Ïñ²åÈëÁ´½ÓºÍͼƬʱµÄµ¯³ö´°¿ÚÖÐʹÓõÄCSSÎļþ£¬Æä·¾¶Ó¦¸Ã¸úÒ³ÃæÏà¹Ø¡£
[editor_css]±à¼­Æ÷ʹÓõÄCSSÎļþ£¬Æä·¾¶Ó¦¸Ã¸úÒ³ÃæÏà¹Ø¡£
[encoding]±à¼­Æ÷µÄÊä³ö±àÂ룬´ËÑ¡ÏîĿǰֻÄÜΪ"html"»òÕ߿ա£Èç¹ûÉèÖÃΪ"html"£¬±à¼­Æ÷µÄÊä³ö½«¾­¹ýHTML±àÂë´¦Àí¡£
+ ÀýÈ磺<½«»á±ä³É&lt;£¬ÒÀ´ËÀàÍÆ¡£Ä¬ÈÏÖµÊǿա£
[debug]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬ÏñcssÎļþ·¾¶µÈµ÷ÊÔÐÅÏ¢½«»á±»ÏÔʾ¡£
[visual]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬µ±±ß¿òÉèÖóÉ0µÄʱºò£¬Îª´ïµ½¸üºÃµÄÊÓ¾õЧ¹ûÔڱ༭Æ÷Öбí¸ñ»áÓÐÐéÏß³öÏÖ¡£
+ ĬÈÏֵΪtrue¡£
[visual_table_style]Óû§¿É×Ô¶¨Òå±í¸ñµÄÑùʽ£¬Ä¬ÈÏֵΪ£º"border: 1px dashed #BBBBBB"¡£
[add_form_submit_trigger]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬½«Ç¿ÖƽøÐÐËùÓÐ±íµ¥µÄ"onsubmit"ʼþ´¦Àí²¢Òý·¢±£´æ¡£´ËÑ¡ÏîĬÈÏֵΪtrue¡£
[add_unload_trigger]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬ÔÚ"onunload"ʼþ·¢Éúʱ£¬µ±Ç°´°¿Ú»áÒý·¢Ò»¸ötriggerSaveµ÷ÓᣴËtriggerSaveµ÷Óò»»á×öÈκÎÇåÀí¹¤×÷£¬ÒòΪËüÊÇÓÃÀ´´¦Àí ǰ½ø/ºóÍË °´Å¥µÄ¡£´ËÑ¡ÏîĬÈÏֵΪtrue¡£
[force_br_newlines]True/FalseÑ¡Ïî¡£´ËÑ¡ÏîÇ¿ÖÆ±à¼­Æ÷½«¶ÎÂä·ûºÅ(P)Ìæ»»³É»»Ðзû(BR)¡£´ËÑ¡ÏîĬÈÏֵΪfalse¡££¨ÊµÑé½×¶Î£©
[force_p_newlines]True/FalseÑ¡Ïî¡£Èç¹û´ò¿ª´ËÑ¡ÏÔÚ°´Ï»سµ¼ü£¨Enter£©Ê±Mozilla/Firefoxä¯ÀÀÆ÷»áÉú³É¶ÎÂä·ûºÅ(P)£¬ÔÚ°´ÏÂShift+Enterʱ»áÉú³É»»Ðзû(BR)¡£´ËÑ¡ÏîĬÈÏΪtrue¡£
[relative_urls]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬¾ø¶Ô·¾¶½«±»×ª»»³ÉÏà¶Ô·¾¶¡£Ä¬ÈÏֵΪtrue¡£
[remove_script_host]True/FalseÑ¡Ïî¡£ÔÚÉèÖóÉtrueµÄÇé¿öÏ£¬Èç¹ûURLÖеÄÖ÷»úÃû¡¢¶Ë¿ÚºÅ¸ú±à¼­Æ÷µ±Ç°ËùÔÚÒ»Ö£¬ËüÃÇ»á±»ÒÆ³ý¡£
+ ÀýÈ磺±à¼­Æ÷ËùÔÚÕ¾µãΪ http://www.somesite.com £¬ÄÇôÒÔÏÂÁ´½Ó http://www.somesite.com/somedir/somepage.html ½«»á±»×ª»»³É /somedir/somepage.html ¡£
Èç¹ûrelative_urls±»ÉèÖóÉfalse£¬´ËÑ¡ÏîĬÈÏΪtrue¡£
[focus_alert]True/FalseÑ¡Ïî¡£Èç¹ûÉèÖóÉtrue£¬±à¼­Æ÷ÔÚʧȥ½¹µãµÄʱºò¾Í»á³öÏÖÒ»¸ö·³È˵ľ¯¸æ¿ò¡£Ä¬ÈÏֵΪtrue¡£
[document_base_url]ÔÚ½«¾ø¶Ô·¾¶×ª»»³ÉÏà¶Ô·¾¶µÄʱºò»áÓõ½´ËÎĵµµÄURL¡£Õâ¸öÑ¡ÏîÖ¸¶¨Á˱༭Æ÷µ±Ç°µÄĬÈÏÎĵµ¡£
+ ×¢ÒâÈç¹û´ËÑ¡ÏîÖ¸¶¨µ½Ò»¸öÓòÃû£¬ÇëÌí¼ÓЭÒéǰ׺£¬²¢ÒÔб¸Ü½áβ¡£ÀýÈ磺http://www.somehost.com/mydir/
[custom_undo_redo]True/FalseÑ¡Ïî¡£´ËÑ¡Ïî¿ÉÒÔʹ ³·Ïû/ÖØ×ö ¹¦Äܸü¼ÓÍêÉÆ¡£Ä¬ÈÏֵΪtrue¡£
[custom_undo_redo_levels]×Ô¶¨Òå×î¶à¿É³·Ïû²Ù×÷µÄ´ÎÊý£¬Ä¬ÈÏÊÇÎÞÏÞÖÆ¡£
[custom_undo_redo_keyboard_shortcuts]Èç¹ûʹÓ㬱༭Æ÷¿ÉÒÔʹÓÃCtrl+ZºÍCtrl+Y¿ì½Ý¼üÀ´ÊµÏÖ³·ÏûºÍÖØ×ö¡£Ä¬ÈÏÔÊÐí¡£
[fix_content_duplication]True/FalseÑ¡Ïî¡£´ËÑ¡ÏîÐÞÕýÁËMSIEÖÐÒ»¸öÄÚÈÝÖØ¸´µÄbug¡£Ä¬ÈÏÆôÓ㬵«ÊÇΪÁ˼æÈÝÐÔÒ²¿ÉÒÔ½ûÓÃ(false)¡£
[directionality]´ËÑ¡Ïî¿ÉÒÔÉèÖÃÏñ°¢À­²®ÓïµÈÓïÑÔµÄÎÄ×Ö·½Ïò¡£¿ÉÄܵÄֵΪ£ºltr, rtl¡£Ä¬ÈÏÖµ: ltr£¨´Ó×óµ½ÓÒ£©¡£
[auto_cleanup_word]Èç¹ûÆôÓ㬴ÓMS office/WordÕ³ÌùµÄHTML½«»á×Ô¶¯±»ÇåÀí¡£´ËÑ¡ÏîĬÈÏֵΪfalse¡£
+ ×¢Ò⣺´Ë²Ù×÷µ±Ç°½öÖ§³ÖMSIE¡£
[cleanup_on_startup]Èç¹ûÆôÓã¬Ôڱ༭Æ÷³õʼ»¯Ê±Îı¾Óò¼°×é¼þ½«»á±»ÇåÀí¡£Ä¬ÈÏֵΪfalse¡£
[inline_styles]Èç¹ûÆôÓã¬Ïñwidth,height,vspace,hspaceºÍalignµÈÊôÐÔ½«»á±»·ç¸ñÊôÐÔÌæ´ú¡£Ä¬ÈÏֵΪfalse¡£
+ ÔÚʹÓôËÑ¡Ïîʱ¼ÇµÃÒª°Ñ·ç¸ñÊôÐÔÓ¦ÓÃÔÚÕýÈ·µÄ×é¼þÉÏ¡£
[convert_newlines_to_brs]Èç¹ûÆôÓã¬ËùÓеÄ\n(ÐÂÐÐ)½«»áÔڱ༭Æ÷Æô¶¯Ê±±»×ª»»³É<br />×é¼þ¡£´ËÑ¡ÏîĬÈÏֵΪfalse¡£
[auto_reset_designmode]ÒòΪÔÚµ÷ÓÃstyle.displayµÄnone/block·½·¨À´ÏÔʾ/Òþ²ØÄ³¸öTinyMCE±à¼­Æ÷µÄʱºòÓÐbug£¬Éè¼ÆÄ£Ê½ÐèÒª±»ÖØÖᣴËÑ¡ÏîÒ»µ©ÆôÓ㬵±±à¼­Æ÷¾Û½¹Ê±£¬½«×Ô¶¯ÖØÖá£Ä¬ÈÏֵΪfalse¡£
[entities]Ò»ÕÅÒÔ×Ö·û´úÂëÀ´²éÕÒÃû³ÆµÄ±í£¬¸Ã±íÖÐÔªËØÊÇÒÔ¶ººÅ·Ö¸ô¿ªµÄʵÌåÁÐ±í¡£¸ÃÁбíÒÔÆæÊýÏżÊýÏîÇø·Ö£¬ÆäÖÐÆæÊýÏîÊDZ»ÓÃÀ´×ª»»µÄ×Ö·û´úÂ룬żÊýÏîÊÇ´ú±íÄǸö×Ö·û´úÂëµÄʵÌåÃû³Æ¡£ÀýÈ磺"8205,zwj,8206,lrm,8207,rlm,173,shy"¡£
[cleanup_callback]×Ô¶¨ÒåÇåÀíº¯Êý¡£´ËÑ¡ÏîÄÜÈÃÓû§ÔÚĬÈϵÄÇåÀí»ù´¡ÉÏÓÐËùÀ©Õ¹¡£´Ëº¯Êýµ÷ÓøúĬÈϵĵ÷ÓÃÊÇ·Ö¿ªµÄ£¬Ëü²¢²»Ì滻ĬÈϵÄÇåÀíº¯Êý£¬¶ø½ö½öÊÇÀ©Õ¹¡£µã»÷ ²å¼þÇåÀí ²é¿´¸ü¶àϸ½Ú¡£
Ö÷ÌâµÄ¸ß¼¶Ìض¨ÉèÖÃ
[theme_advanced_toolbar_location]´ËÑ¡ÏîÓÃÀ´¸Ä±ä¹¤¾ßÀ¸µÄĬÈÏλÖ᣿ÉÄܵÄֵΪ£º"top"ºÍ"bottom"¡£Ä¬ÈÏÖµÊÇ"bottom"¡£
[theme_advanced_toolbar_align]´ËÑ¡ÏîÓÃÀ´ÉèÖù¤¾ßÀ¸µÄ¶ÔÆë·½Ê½ÊÇleft, center»¹ÊÇright¡£Ä¬ÈÏÖµÊÇcenter¡£
[theme_advanced_styles]´ËÑ¡Ïî¿ÉÒÔÓÃÀ´Ôö¼Ó·ç¸ñÏÂÀ­¿òÖеÄCSSÀàºÍÃû³Æ¡£¸ñʽÈçÏ£º"<title>=<class>;.."¡£
+ Èç¹ûûÓÐÖ¸¶¨´ËÑ¡ÏÖ÷ÄÚÈݲ¿·ÖµÄCSSÀཫ»á±»×Ô¶¯µ¼Èë¡£
+ ÀýÈ磺"Header 1=header1;Header 2=header2;Header 3=header3"
[theme_advanced_buttons1]¹¤¾ßÀ¸ÉϵÚÒ»ÐÐÒª°üº¬µÄ°´Å¥ÁÐ±í£¬ÒÔ¶ººÅ·Ö¸ô¿ª¡£ÀýÈ磺"bold,italic,underline"¡£
+
+ ÔÊÐíµÄ°´Å¥Ãû³ÆÈçÏ£º
+ bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, + justifyfull, styleselect, bullist, numlist, outdent, indent, undo,redo, + link, unlink, image, cleanup, help, code, table, row_before, row_after, + delete_row, separator, rowseparator, col_before, col_after, delete_col, hr, removeformat, + sub, sup, formatselect, fontselect, fontsizeselect, forecolor,charmap,visualaid,spacer,cut,copy,paste
[theme_advanced_buttons2]ͬÉÏ£¬²î±ðÔÚÓÚÖ¸¶¨µÄÊǹ¤¾ßÀ¸µÚ¶þÐС£
[theme_advanced_buttons3]ͬÉÏ£¬²î±ðÔÚÓÚÖ¸¶¨µÄÊǹ¤¾ßÀ¸µÚÈýÐС£
[theme_advanced_buttons<N>_add]Ïò¹¤¾ßÀ¸ÉÏÌØ¶¨µÄµÚNÐÐÖÐÔö¼Ó¶îÍâµÄ¿ØÖÆ/°´Å¥¡£ÀýÈ磺theme_advaned_buttons3_add : "iespell".
[theme_advanced_buttons<N>_add_before]Ïò¹¤¾ßÀ¸ÉÏÌØ¶¨µÄµÚNÐеÄĬÈϰ´Å¥Ç°ÃæÔö¼Ó¶îÍâµÄ¿ØÖÆ/°´Å¥¡£ÀýÈ磺theme_advaned_buttons3_add_before : "iespell"¡£
[theme_advanced_disable]Òª½ûÓõİ´Å¥/×é¼þµÄÁÐ±í£¬ÒÔ¶ººÅ·Ö¸ô¡£ÀýÈ磺"formatselect".
[theme_advanced_source_editor_width]Ô´Îļþ±à¼­Æ÷´°¿ÚµÄ¿í¶È¡£
[theme_advanced_source_editor_height]Ô´Îļþ±à¼­Æ÷´°¿ÚµÄ¸ß¶È¡£
[theme_advanced_path_location]×é¼þ·¾¶ÁбíµÄλÖ㬿ÉÄܵÄֵΪ£º"top"»ò"bottom"¡£Ä¬ÈÏֵΪ£º"none"
[theme_advanced_blockformats]formatselectÁбíÒªÆÁ±ÎµÄ¸ñʽÁÐ±í£¬ÒÔ¶ººÅ·Ö¸ô¿ª¡£Ä¬ÈÏÖµ£ºp,address,pre,h1,h2,h3,h4,h5,h6¡£
+
+ÒÔÏÂÊÇÒ»¸ö½ÏΪ¸´Ôӵijõʼ»¯Àý×Ó£º
+
+ + + + +
<!-- tinyMCE -->
<script language="javascript" + type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
+ <script language="javascript" type="text/javascript">
+    tinyMCE.init({
+       mode : "exact",
+       theme : "mytheme",
+       language : "se",
+       elements : "elm1,elm2"
+   });

</script>
<!-- /tinyMCE -->
+
+ º¯Êý +£¨¹©¸ß¼¶Ê¹Óã©
+
+TinyMCEÓÐÒ»¸öÈ«¾ÖʵÀý£¬ËüÄÜÌṩһЩ¿É´ÓÒ³Ãæµ÷ÓõĹ«Óú¯Êý¡£
+
+Óï·¨£º tinyMCE.triggerSave([skip_cleanup]);
+
+ÃèÊö£º½øÐÐÇå³ý²Ù×÷£¬²¢½«±à¼­Æ÷ÄÚÈÝÒÆ»Øµ½±íµ¥ÓòÖС£tinyMCEͨ¹ýÏò±íµ¥Ìá½»·½·¨ÖÐÔö¼Ó´¥·¢Æ÷À´×Ô¶¯µ÷Óô˺¯Êý¡£
+
+²ÎÊý£º
+[skip_cleanup] - ½ûÓñ£´æ´¥·¢Æ÷µÄÇå³ý¹¦ÄÜ£¬Ä¬ÈÏΪfalse¡£(¿ÉÑ¡)
+
+·µ»Ø£º ÎÞ
+
+Óï·¨£º tinyMCE.updateContent(form_element_name);
+
+ÃèÊö£º½«±íµ¥×é¼þµÄÄÚÈÝ×ªÒÆµ½±à¼­Æ÷ÖУ¬´Ë²Ù×÷µÄ¹¦ÄܸútriggerSave()ÕýºÃÏà·´¡£µ±ÄãÏ붯̬¸Ä±ä±à¼­Æ÷ÄÚÈÝʱ¿ÉÒÔʹÓô˷½·¨¡£
+
+²ÎÊý£º
+
form_element_name - Òª»ñÈ¡ÄÚÈݵÄ×é¼þËùÔÚ±íµ¥µÄÃû³Æ¡£
+
+·µ»Ø£º ÎÞ +
+Óï·¨£º tinyMCE.execInstanceCommand(editor_id, command, [user_interface], [value]);
+
+ÃèÊö£º´Ë·½·¨Í¨¹ýeditor_id²ÎÊýÕÒµ½Ä³¸ö±à¼­Æ÷ʵÀý£¬Ôڴ˱༭Æ÷ÉÏÖ´ÐÐÒ»¸öÃüÁî¡£
+
+²ÎÊý£º
+editor_id - ±à¼­Æ÷ʵÀýµÄID»òÕß±»Ìæ»»ºóµÄ×é¼þid/Ãû³Æ¡£
+command - ÒªÖ´ÐеÄÃüÁî¡£²é¿´execCommandº¯ÊýÒÔ»ñÈ¡¸ü¶àϸ½Ú¡£
+[user_interface] - ÊÇ·ñʹÓÃÓû§½çÃæ¡£
+[value] - Ö´ÐÐÃüÁîʱҪ´«µÝµÄ²ÎÊý£¬ÀýÈ磺һ¸öURL¡£
+
+·µ»Ø£º ÎÞ +
+Óï·¨£º tinyMCE.execCommand(command, [user_interface], [value]);
+
+ÃèÊö£º´Ë·½·¨ÔÚÑ¡¶¨±à¼­Æ÷ÖÐͨ¹ýÃû³ÆÖ´ÐÐÌØ¶¨ÃüÁî¡£
+
+²ÎÊý£º
+
command - ÒªÖ´ÐеÄÃüÁÀýÈ磺"Bold" or "Italic"¡£Äã¿ÉÒÔͨ¹ý´ËÁ¬½ÓÀ´²é¿´Mozilla Midas spec¡£µ«ÊÇtinyMCEÒ²ÓÐ×ÔÉíÒ»Ð©ÌØÊâµÄÃüÁîÈçϱíËùʾ£º
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
mceLink´ò¿ª²åÈëÁ´½Ó¶Ô»°¿ò²¢²åÈëÁ´½Ó¡£
mceImage´ò¿ª²åÈëͼÏñ¶Ô»°¿ò²¢²åÈëͼÏñ¡£
mceCleanup´ÓHTML´úÂëÖÐÒÆ³ý²»ÐèÒªµÄ×é¼þºÍÊôÐÔ¡£
mceHelp´ò¿ªÎĵµÒ³Ãæ¡£
mceInsertTableÔÚÊó±êλÖòåÈë±í¸ñ£¬Ä¬ÈϳߴçΪ£º2¡Á2¡£Èç¹ûexecCommandº¯ÊýÖÐÓÐÖ¸¶¨value²ÎÊý£¬ËüµÄ¸ñʽ±ØÐëΪname/valueÐÎʽµÄÊý×飬ÆäÖÐnameÓÐÒÔÏÂÑ¡Ïcols, rows, border, cellspacing, cellpadding¡£border£¨±ß¿ò£©µÄĬÈÏ´óСΪ£º0¡£
mceTableInsertRowBeforeÔÚµ±Ç°Êó±êËùÔÚλÖÃ֮ǰ²åÈëÒ»ÐС£
mceTableInsertRowAfterÔÚµ±Ç°Êó±êËùÔÚλÖÃÖ®ºó²åÈëÒ»ÐС£
mceTableDeleteRow½«µ±Ç°Êó±êËùÔÚÐÐɾ³ý¡£
mceTableInsertColBeforeÔÚµ±Ç°Êó±êËùÔÚλÖÃ֮ǰ²åÈëÒ»ÁС£
mceTableInsertColAfterÔÚµ±Ç°Êó±êËùÔÚλÖÃÖ®ºó²åÈëÒ»ÁС£
mceTableDeleteCol½«µ±Ç°Êó±êËùÔÚÁÐɾ³ý¡£
mceAddControlÏò±à¼­Æ÷Ìí¼Ó×é¼þ¿ØÖÆ£¬´Ë±à¼­Æ÷µÄid/nameÓÉvalueÖ¸¶¨¡£
mceRemoveControlͨ¹ýeditor_idÃû³ÆÀ´ÒƳýÌØ¶¨¿ØÖÆ¡£valueÊÇÒªÒÆ³ýµÄeditor_id£¨±à¼­Æ÷ID£©£¬±à¼­Æ÷ID¸ñʽÈçÏ£º"mce_editor_<index>"¡£
+ Ò²¿ÉÒÔʹÓÃDOM×é¼þµÄIDºÍ±íµ¥Ãû¡£
mceFocusʹÒÔvalueµÄֵΪIDµÄ±à¼­Æ÷»ñµÃ½¹µã¡£±à¼­Æ÷ID¸ñʽÈçÏ£º"mce_editor_<index>"¡£Ò²¿ÉÒÔʹÓÃDOM×é¼þµÄIDºÍ±íµ¥Ãû¡£
mceSetCSSClassÉèÖÃCSSÀàÊôÐÔ£¬»òÕßÔÚÑ¡Ôñ¿òÖд´½¨ÐµÄspan¡£valueµÄÖµÊÇÒª¸øÑ¡¶¨×é¼þÖ¸ÅɵÄcssÀàÃû»òÕßҪд´½¨µÄspan×é¼þÃû³Æ¡£
mceInsertContentÔÚµ±Ç°Êó±êËùÔÚλÖòåÈëvalueµÄÄÚÈÝ¡£
mceReplaceContent½«µ±Ç°Ñ¡¶¨²¿·ÖÌæ»»ÎªvalueÖеÄHTML´úÂë¡£{$selection}±äÁ¿Óɵ±Ç°Ñ¡¶¨²¿·ÖµÄÎÄ×ÖÄÚÈÝÌæ»»¡£
mceSetAttribute

Ϊµ±Ç°Ñ¡¶¨×é¼þÉèÖÃÊôÐÔ¡£´ËÃüÁîµÄvalueÓ¦¸ÃÊÇname/valueÊý×飬Æä²ÎÊýÈçÏ£º
+
+ name - ÒªÉèÖõÄÊôÐÔÃû¡£
+ value - ÒªÉèÖõÄÊôÐÔÖµ¡£
+ [targets] - ÒªÔö¼ÓÊôÐÔµÄÄ¿±ê×é¼þ£¬Ä¬ÈÏΪ£ºp,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address¡£
+
+ ʹÓÃʾÀý£º
+ tinyMCE.execCommand('mceSetAttribute',false,{name:'align',value:'right'});

mceToggleVisualAid

ÊÇ·ñ¿ªÆôÊÓ¾õ°ïÖúģʽ

mceAnchor

²åÈëÃû³ÆÃªµã¡£valueÊÇêµãµÄÃû³Æ¡£

mceResetDesignMode

ÖØÖÃËùÓб༭Æ÷ʵÀýµÄÉè¼ÆÄ£Ê½×´Ì¬¡£ÔÚFirefoxÖУ¬µ±±à¼­Æ÷±»·ÅÔÚÖÆ±í·ûÖлòÕßÓÃstyle.display="none/block"À´¿ØÖÆÒþÏÔµÄʱºò£¬´ËÃüÁî·Ç³£ÓÐÓá£Ôڱ༭Æ÷ÖØÐÂÏÔʾʱµ÷ÓôËÃüÁî¡£

mceSelectNode

Ñ¡¶¨valueÖ¸¶¨µÄ½Úµã/×é¼þ¡£Í¬Ê±´ËÃüÁî»áʹ±à¼­Æ÷¹ö¶¯µ½´Ë×é¼þËùÔÚλÖá£

mceSelectNodeDepth

´Óµ±Ç°½ÚµãÒÔÉî¶È¹ØÏµÑ¡ÔñÖ¸¶¨µÄ½Úµã/×é¼þ¡£ËùÒÔ0Öµ»áÑ¡¶¨µ±Ç°¾Û½¹µÄ½Úµã¡£Í¬Ê±´ËÃüÁî»áʹ±à¼­Æ÷¹ö¶¯µ½´Ë×é¼þËùÔÚλÖá£

+
+
+user_interface - ÉêÃ÷ijÃüÁîÊÇ·ñ»áÏÔʾÓû§½çÃæ¡£True/FalseÑ¡Ïî¡£
+value - Òª´«µÝ¸øÃüÁîµÄÖµ¡£ÀýÈ磬²åÈëÁ´½Óʱ£¬Ëü¾ÍÊÇÁ´½ÓµÄURL¡£
+
+·µ»Ø£º ÎÞ
+
+ʾÀý£º
+ + + + +
<a href="javascript:tinymce.execCommand('Bold');">[Do + bold]</a>
+
+Óï·¨£º tinyMCE.insertLink(href, target);
+
+ÃèÊö£º´Ë·½·¨ÔÚµ±Ç°Ñ¡¶¨±à¼­Æ÷ʵÀýµÄÊó±êλÖòåÈëÒ»¸öÁ´½Ó£¬»òÕßÓÃеÄÊý¾ÝÀ´¸üÐÂÒÑÓÐÁ´½Ó¡£µ±Äã´´½¨×Ô¼ºµÄÖ÷Ìâʱ£¬´Ë·½·¨Ó¦ÔÚ²åÈëÁ´½ÓµÄµ¯³ö´°¿ÚÖеÄOK°´Å¥°´ÏÂʱ±»µ÷Óá£
+
+²ÎÊý£º
+
href - Á´½ÓµÄµØÖ·/URL¡£
+target - Á´½ÓµÄÄ¿±ê¡£
+
+·µ»Ø£º ÎÞ +
+Óï·¨£º tinyMCE.insertImage(src, alt, border, hspace, vspace, +width, height, align, title, onmouseover, onmouseout);
+
+ÃèÊö£º´Ë·½·¨ÔÚµ±Ç°Ñ¡¶¨±à¼­Æ÷ʵÀýµÄÊó±êλÖòåÈëͼÏñ£¬»òÕßÓÃеÄÊý¾ÝÀ´¸üÐÂÒÑÓÐͼÏñ¡£µ±Äã´´½¨×Ô¼ºµÄÖ÷Ìâʱ£¬´Ë·½·¨Ó¦ÔÚ²åÈëͼÏñµÄµ¯³ö´°¿ÚÖеÄOK°´Å¥°´ÏÂʱ±»µ÷Óá£
+
+²ÎÊý£º
+
src - ͼÏñµØÖ·¡£
+alt - ͼƬµÄÌæ´úÎÄ×Ö¡£
+border - ͼÏñ±ß¿ò¡£
+hspace - ͼÏñˮƽ¼ä¾à¡£
+vspace - ͼÏñ´¹Ö±¼ä¾à¡£
+width - ͼÏñ¿í¡£
+height - ͼÏñ¸ß¡£
+align - ͼÏñ¶ÔÆë·½Ê½¡£
+title - ͼÏñÁ´½ÓµÄ±êÌâ¡£
+onmouseover - ͼÏñÔÚÊó±ê·ÅÉÏȥʱµÄʼþ´¦Àí¡£
+onmouseout - ͼÏñÔÚÊó±êÒÆ¿ªÊ±µÄʼþ´¦Àí¡£
+
+·µ»Ø£º ÎÞ +
+Óï·¨£º tinyMCE.triggerNodeChange();
+
+ÃèÊö£ºµ±±à¼­Æ÷·¢ÉúÍⲿ±ä»¯Ê±´Ë·½·¨±»µ÷Óá£È»ºó´Ë·½·¨»Øµ÷Ö÷ÌâµÄ"handleNodeChangeCallback"·½·¨¡£
+
+²ÎÊý£º None
+
+·µ»Ø£º ÎÞ +
+Óï·¨£º tinyMCE.getContent();
+
+ÃèÊö£º´Ë·½·¨·µ»Øµ±Ç°Ñ¡¶¨±à¼­Æ÷ÖеÄHTMLÄÚÈÝ¡£Èç¹ûûÓÐÈκÎÑ¡¶¨±à¼­Æ÷£¬¸Ã·½·¨·µ»Ønull¡£
+
+²ÎÊý£º None
+
+·µ»Ø£ºµ±Ç°Ñ¡¶¨±à¼­Æ÷ÖеÄHTMLÄÚÈÝ»òÕßnull¡£ +
+Óï·¨£º tinyMCE.setContent(html);
+
+ÃèÊö£º´Ë·½·¨É趨µ±Ç°Ñ¡¶¨±à¼­Æ÷µÄHTMLÄÚÈÝ¡£
+
+²ÎÊý£º
+
html - ÒªÉ趨µÄHTMLÔ´´úÂë¡£
+
+·µ»Ø£º None. +
+Óï·¨£º tinyMCE.getEditorInstance(editor_id);
+
+ÃèÊö£º´Ë·½·¨Í¨¹ýeditor_id·µ»ØÄ³¸ö±à¼­Æ÷ʵÀý¡£
+
+²ÎÊý£º
+
editor_id - Òª»ñÈ¡µÄ±à¼­Æ÷ʵÀý¡£
+
+·µ»Ø£º±à¼­Æ÷ʵÀý(TinyMCEControl)¡£ +
+Óï·¨£º tinyMCE.importThemeLanguagePack([theme]);
+
+ÃèÊö£º´Ë·½·¨µ¼ÈëÖ÷ÌâÖÐÌØ¶¨µÄÓïÑÔ°ü¡£×Ô¶¨ÒåÖ÷ÌâÖпÉÒÔµ÷Óô˷½·¨¡£
+
+²ÎÊý£º
+[theme] - µ±Ç°Ö÷ÌâÃû³Æ¡£´ËÑ¡Ïî¿ÉÑ¡£¬Ä¬ÈÏΪȫ¾ÖµÄ"theme"É趨¡£´Ë²ÎÊýÔÚÖ÷Ìâ²å¼þÖзdz£ÓÐÓá£
+
+·µ»Ø£º None. +
+Óï·¨£º tinyMCE.importPluginLanguagePack(plugin, valid_languages);
+
+ÃèÊö£º´Ë·½·¨µ¼Èë²å¼þÖÐÌØ¶¨µÄÓïÑÔ°ü¡£×Ô¶¨Òå²å¼þÖпÉÒÔµ÷Óô˷½·¨¡£
+
+²ÎÊý£º
+plugin - µ±Ç°²å¼þµÄÃû³Æ¡£
+valid_languages - ÒÔ¶ººÅ·Ö¸ôµÄËùÖ§³ÖÓïÑÔ°üÁÐ±í¡£
+
+·µ»Ø£º None. +
+Óï·¨£º tinyMCE.applyTemplate(html);
+
+ÃèÊö£º´Ë·½·¨Ìæ»»Ö÷ÌâÖеÄÉèÖü°ÓïÑÔ±äÁ¿¡£
+
+²ÎÊý£º +
+html - ÒªÌæ»»Ö÷Ìâ±äÁ¿µÄHTML´úÂë¡£
+
+·µ»Ø£º ת»»ºóµÄHTML´úÂë¡£ +
+Óï·¨£º tinyMCE.openWindow(template, [args]);
+
+ÃèÊö£º´Ë·½·¨Í¨¹ý´ÓÖ¸¶¨µÄtemplate²ÎÊýÖлñÈ¡width, height¼°htmlÊý¾ÝÀ´´ò¿ªÐ´°¿Ú¡£Êý×é²ÎÊýargsÖаüº¬ÒªÌæ»»µÄ±äÁ¿Ãû¡£
+
+»¹ÓÐһЩ×Ô¶¨ÒåµÄ´°¿Ú²ÎÊý£º
+mce_replacevariables +- ÆôÓÃ/½ûÓÃHTMLÎĵµÖеÄÓïÑÔ/±äÁ¿Ìæ»»¡£Ä¬ÈÏÆôÓá£
+mce_windowresize - ÆôÓÃ/½ûÓõ¯³ö´°¿ÚµÄ×Ô¶¯resizeÌØÕ÷£¬Ä¬ÈÏÆôÓá£
+
+²ÎÊý£º
+template - Name/ValueÊý×飬ÒÔwidth, height, htmlºÍfileΪ¼ü¡£
+[args] - °üº¬ÒªÌæ»»±äÁ¿ÃûµÄName/ValueÊý×顣ģ°åÎļþÖеļüÖµ±äÁ¿±»²ÎÊýÁбíËùÌæ»»¡£
+ÀýÈ磺image.php?src={$src}±»Ì滻Ϊ£ºimage.php?src=image.gif¡£
+
+·µ»Ø£º None. +
+Óï·¨£º tinyMCE.getWindowArg(name, [default_value]);
+
+ÃèÊö£º´Ë·½·¨¸ù¾Ýname·µ»Ø´°¿Ú²ÎÊý£¬Ëü¿ÉÒÔÓÃÔÚÖ÷ÌâÖеĵ¯³ö´°¿ÚÖУ¬ÒÔ»ñÈ¡¶Ô»°¿òÖеIJÎÊý¡£
+
+²ÎÊý£º
+name - Òª»ñÈ¡µÄ´°¿Ú²ÎÊýµÄÃû³Æ¡£
+[default_value] - ´°¿Ú²ÎÊý¶ªÊ§Ê±·µ»ØµÄĬÈÏÖµ¡£
+
+·µ»Ø£º ´°¿Ú²ÎÊýµÄÖµ¡£ +
+Óï·¨£º tinyMCE.setWindowArg(name, value);
+
+ÃèÊö£º´Ë·½·¨¸ù¾ÝnameÉ趨´°¿Ú²ÎÊý£¬ÀýÈçËüÔÚij²å¼þµ÷ÓÃÆäËû²å¼þʱ·Ç³£ÓÐÓá£
+
+²ÎÊý£º
+name - ÒªÉèÖõĴ°¿Ú²ÎÊý¡£
+value - ´°¿Ú²ÎÊýÖÐÒªÉèÖõÄÖµ¡£
+
+·µ»Ø£º ´°¿Ú²ÎÊýÖµ¡£ +
+Óï·¨£º tinyMCE.getParam(name, [default_value], [strip_whitespace]);
+
+ÃèÊö£º´Ë·½·¨·µ»ØTinyMCEµÄÅäÖòÎÊý¡£
+
+²ÎÊý£º
+name - Òª»ñÈ¡µÄ´°¿Ú²ÎÊýÃû¡£
+[default_value] - ´°¿Ú²ÎÊý¶ªÊ§Ê±·µ»ØµÄĬÈÏÖµ¡£
+[strip_whitespace] - Èç¹ûÎªÕæ£¬ËùÓзµ»ØÖµÖеĿհ××Ö·û½«»á±»³ýÈ¥¡£Ä¬ÈÏ£ºfalse¡£
+
+·µ»Ø£ºTinyMCEÅäÖòÎÊý¡£
+
+ + + + + + +
+ + diff --git a/www/extras/tinymce/examples/example_advanced.css b/www/extras/tinymce/examples/example_advanced.css index e4e44b76b..28b1d1c62 100644 --- a/www/extras/tinymce/examples/example_advanced.css +++ b/www/extras/tinymce/examples/example_advanced.css @@ -30,6 +30,10 @@ body { color: #0000FF } +.tablerow1 { + background-color: #BBBBBB; +} + td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; diff --git a/www/extras/tinymce/examples/example_advanced.htm b/www/extras/tinymce/examples/example_advanced.htm index 4f0880e24..0fcaef0bb 100644 --- a/www/extras/tinymce/examples/example_advanced.htm +++ b/www/extras/tinymce/examples/example_advanced.htm @@ -7,7 +7,7 @@ diff --git a/www/extras/tinymce/examples/example_image_list.js b/www/extras/tinymce/examples/example_image_list.js new file mode 100644 index 000000000..551910556 --- /dev/null +++ b/www/extras/tinymce/examples/example_image_list.js @@ -0,0 +1,9 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There images will be displayed as a dropdown in all image dialogs if the "external_link_image_url" +// option is defined in TinyMCE init. + +var tinyMCEImageList = new Array( + // Name, URL + ["Logo 1", "logo.jpg"], + ["Lgog 2", "logo_over.jpg"] +); diff --git a/www/extras/tinymce/examples/example_link_list.js b/www/extras/tinymce/examples/example_link_list.js new file mode 100644 index 000000000..0d464331f --- /dev/null +++ b/www/extras/tinymce/examples/example_link_list.js @@ -0,0 +1,10 @@ +// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system. +// There links will be displayed as a dropdown in all link dialogs if the "external_link_list_url" +// option is defined in TinyMCE init. + +var tinyMCELinkList = new Array( + // Name, URL + ["Moxiecode", "http://www.moxiecode.com"], + ["Freshmeat", "http://www.freshmeat.com"], + ["Sourceforge", "http://www.sourceforge.com"] +); diff --git a/www/extras/tinymce/examples/example_mail.htm b/www/extras/tinymce/examples/example_mail.htm index fa49dfc4e..3378db0a9 100644 --- a/www/extras/tinymce/examples/example_mail.htm +++ b/www/extras/tinymce/examples/example_mail.htm @@ -9,7 +9,9 @@ theme : "advanced", mode : "textareas", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,formatselect,fontselect,fontsizeselect,forecolor", - extended_valid_elements : "font[face|size|color]" + extended_valid_elements : "font[face|size|color]", + plugins : "table", + theme_advanced_buttons3_add_before : "tablecontrols,separator" }); diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/langs/cs.js new file mode 100644 index 000000000..b504680b6 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/cs.js @@ -0,0 +1,38 @@ +// CZ lang variables thanks to "Pavel Novák" - repaired by Josef Klimosz + +tinyMCELang['lang_bold_desc'] = 'Tuènì'; +tinyMCELang['lang_italic_desc'] = 'Kurzíva'; +tinyMCELang['lang_underline_desc'] = 'Podtržení'; +tinyMCELang['lang_striketrough_desc'] = 'Pøeškrtnutí'; +tinyMCELang['lang_justifyleft_desc'] = 'Zarovnání vlevo'; +tinyMCELang['lang_justifycenter_desc'] = 'Zarovnání na støed'; +tinyMCELang['lang_justifyright_desc'] = 'Zarovnání vpravo'; +tinyMCELang['lang_justifyfull_desc'] = 'Zarovnání do bloku'; +tinyMCELang['lang_bullist_desc'] = 'Seznam s odrážkami'; +tinyMCELang['lang_numlist_desc'] = 'Èíslovaný seznam'; +tinyMCELang['lang_outdent_desc'] = 'Snížit odsazení'; +tinyMCELang['lang_indent_desc'] = 'Zvýšit odsazení'; +tinyMCELang['lang_undo_desc'] = 'Zpìt'; +tinyMCELang['lang_redo_desc'] = 'Znovu'; +tinyMCELang['lang_link_desc'] = 'Vložit odkaz'; +tinyMCELang['lang_unlink_desc'] = 'Zrušit odkaz'; +tinyMCELang['lang_image_desc'] = 'Vložit obrázek'; +tinyMCELang['lang_cleanup_desc'] = 'Vyèistit kód'; +tinyMCELang['lang_focus_alert'] = 'Pøed použitím tohoto pøíkazu musí být kurzor v oknì editoru.'; +tinyMCELang['lang_edit_confirm'] = 'Chcete použít WYSIWYG editaci pro tento text?'; +tinyMCELang['lang_insert_link_title'] = 'Vložit/upravit odkaz'; +tinyMCELang['lang_insert'] = 'Vložit'; +tinyMCELang['lang_update'] = 'Zmìnit'; +tinyMCELang['lang_cancel'] = 'Zrušit'; +tinyMCELang['lang_insert_link_url'] = 'URL odkazu'; +tinyMCELang['lang_insert_link_target'] = 'Cíl'; +tinyMCELang['lang_insert_link_target_same'] = 'Otevøít odkaz ve stejném oknì'; +tinyMCELang['lang_insert_link_target_blank'] = 'Otevøít odkaz v novém oknì'; +tinyMCELang['lang_insert_image_title'] = 'Vložit/upravit obrázek'; +tinyMCELang['lang_insert_image_src'] = 'URL obrázku'; +tinyMCELang['lang_insert_image_alt'] = 'Popis obrázku'; +tinyMCELang['lang_help_desc'] = 'Nápovìda'; +tinyMCELang['lang_bold_img'] = 'bold.gif'; +tinyMCELang['lang_italic_img'] = 'italic.gif'; +tinyMCELang['lang_underline_img'] = "underline.gif"; +tinyMCELang['lang_clipboard_msg'] = 'Copy/Cut/Paste není použitelné v Mozille a Firefoxu.\nChcete více informací o tomto problému?'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/da.js b/www/extras/tinymce/jscripts/tiny_mce/langs/da.js new file mode 100644 index 000000000..4dfa69649 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/da.js @@ -0,0 +1,38 @@ +// DK lang variables contributed by Jan Moelgaard + +tinyMCELang['lang_bold_desc'] = 'Fed'; +tinyMCELang['lang_italic_desc'] = 'Kursiv'; +tinyMCELang['lang_underline_desc'] = 'Understreg'; +tinyMCELang['lang_striketrough_desc'] = 'Gennemstreg'; +tinyMCELang['lang_justifyleft_desc'] = 'Venstrestil'; +tinyMCELang['lang_justifycenter_desc'] = 'Centrer'; +tinyMCELang['lang_justifyright_desc'] = 'Højrestil'; +tinyMCELang['lang_justifyfull_desc'] = 'Lige margin'; +tinyMCELang['lang_bullist_desc'] = 'Bulletliste'; +tinyMCELang['lang_numlist_desc'] = 'Nummerliste'; +tinyMCELang['lang_outdent_desc'] = 'Ryk til venstre'; +tinyMCELang['lang_indent_desc'] = 'Ryk til højre'; +tinyMCELang['lang_undo_desc'] = 'Fortryd'; +tinyMCELang['lang_redo_desc'] = 'Gør igen'; +tinyMCELang['lang_link_desc'] = 'Indsæt link'; +tinyMCELang['lang_unlink_desc'] = 'Fjern link'; +tinyMCELang['lang_image_desc'] = 'Indsæt billede'; +tinyMCELang['lang_cleanup_desc'] = 'Ryd op i koden'; +tinyMCELang['lang_focus_alert'] = 'Der skal sættes fokus på sessionen, før man kan bruge denne kommando'; +tinyMCELang['lang_edit_confirm'] = 'Vil du bruge WYSIWYG mode til dette textområde?'; +tinyMCELang['lang_insert_link_title'] = 'Indsæt eller rediger link'; +tinyMCELang['lang_insert'] = 'Indsæt'; +tinyMCELang['lang_update'] = 'Opdater'; +tinyMCELang['lang_cancel'] = 'Fortryd'; +tinyMCELang['lang_insert_link_url'] = 'Linkadresse'; +tinyMCELang['lang_insert_link_target'] = 'Target'; +tinyMCELang['lang_insert_link_target_same'] = 'Luk linket op i samme vindue'; +tinyMCELang['lang_insert_link_target_blank'] = 'Luk linket op i et nyt vindue'; +tinyMCELang['lang_insert_image_title'] = 'Indsæt / rediger billede'; +tinyMCELang['lang_insert_image_src'] = 'Billedets adresse'; +tinyMCELang['lang_insert_image_alt'] = 'Alternativ tekst'; +tinyMCELang['lang_help_desc'] = 'Hjælp'; +tinyMCELang['lang_bold_img'] = "bold.gif"; +tinyMCELang['lang_italic_img'] = "italic.gif"; +tinyMCELang['lang_underline_img'] = "underline.gif"; +tinyMCELang['lang_clipboard_msg'] = 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/de.js b/www/extras/tinymce/jscripts/tiny_mce/langs/de.js index 948ed1450..d967c42fa 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/langs/de.js +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/de.js @@ -1,73 +1,73 @@ -// DE lang variables -// Translated 2004 by Crazy Chrissi -// Edited 2004 by Krokogras - -tinyMCELang['lang_theme_style_select'] = 'Styles'; -tinyMCELang['lang_theme_code_desc'] = 'HTML-Modus'; -tinyMCELang['lang_theme_code_title'] = 'HTML-Code Editor'; -tinyMCELang['lang_theme_code_wordwrap'] = 'Zeilenumbruch'; -tinyMCELang['lang_theme_code_save'] = 'Speichern'; -tinyMCELang['lang_theme_sub_desc'] = 'Tiefergestellt'; -tinyMCELang['lang_theme_sup_desc'] = 'Höhergestellt'; -tinyMCELang['lang_theme_hr_desc'] = 'Horizontale Linie einfügen'; -tinyMCELang['lang_theme_removeformat_desc'] = 'Formatierung löschen'; -tinyMCELang['lang_theme_table_desc'] = 'Neue Tabelle einfügen / Tabelle bearbeiten'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Zeile vor aktueller einfügen'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Zeile nach aktueller einfügen'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Aktuelle Zeile löschen'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Spalte vor aktueller einfügen'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Spalte nach aktueller einfügen'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Aktuelle Spalte löschen'; -tinyMCELang['lang_theme_custom1_desc'] = 'Beschreibung eingeben'; -tinyMCELang['lang_insert_image_border'] = 'Rahmen'; -tinyMCELang['lang_insert_image_dimensions'] = 'Größe'; -tinyMCELang['lang_insert_image_vspace'] = 'Vertikal einrücken'; -tinyMCELang['lang_insert_image_hspace'] = 'Horizontal einrücken'; -tinyMCELang['lang_insert_image_align'] = 'Ausrichten'; -tinyMCELang['lang_insert_image_align_default'] = 'Normal'; -tinyMCELang['lang_insert_image_align_baseline'] = 'Grundlinie'; -tinyMCELang['lang_insert_image_align_top'] = 'Oben'; -tinyMCELang['lang_insert_image_align_middle'] = 'Mitte'; -tinyMCELang['lang_insert_image_align_bottom'] = 'Unten'; -tinyMCELang['lang_insert_image_align_texttop'] = 'Textoberkante'; -tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absolute Mitte'; -tinyMCELang['lang_insert_image_align_absbottom'] = 'Absolut unten'; -tinyMCELang['lang_insert_image_align_left'] = 'Links'; -tinyMCELang['lang_insert_image_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_title'] = 'Tabelle einfügen / bearbeiten'; -tinyMCELang['lang_insert_table_width'] = 'Breite'; -tinyMCELang['lang_insert_table_height'] = 'Höhe'; -tinyMCELang['lang_insert_table_cols'] = 'Spalten'; -tinyMCELang['lang_insert_table_rows'] = 'Zeilen'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Zellabstand'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Zellauffüllung'; -tinyMCELang['lang_insert_table_border'] = 'Rahmen'; -tinyMCELang['lang_insert_table_align'] = 'Ausrichten'; -tinyMCELang['lang_insert_table_align_default'] = 'Normal'; -tinyMCELang['lang_insert_table_align_left'] = 'Links'; -tinyMCELang['lang_insert_table_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_align_middle'] = 'Zentriert'; -tinyMCELang['lang_insert_table_class'] = 'Klasse'; -tinyMCELang['lang_insert_table_delta_width'] = 30; -tinyMCELang['lang_theme_fontdefault'] = 'Normal'; -tinyMCELang['lang_theme_paragraph'] = 'Standard-Text'; -tinyMCELang['lang_theme_div'] = 'Div'; -tinyMCELang['lang_theme_address'] = 'Addresse'; -tinyMCELang['lang_theme_pre'] = 'Vorformatiert (pre)'; -tinyMCELang['lang_theme_h1'] = 'Überschrift 1'; -tinyMCELang['lang_theme_h2'] = 'Überschrift 2'; -tinyMCELang['lang_theme_h3'] = 'Überschrift 3'; -tinyMCELang['lang_theme_h4'] = 'Überschrift 4'; -tinyMCELang['lang_theme_h5'] = 'Überschrift 5'; -tinyMCELang['lang_theme_h6'] = 'Überschrift 6'; -tinyMCELang['lang_theme_colorpicker_title'] = 'Farbe auswählen'; -tinyMCELang['lang_theme_colorpicker_apply'] = 'Übernehmen'; -tinyMCELang['lang_theme_forecolor_desc'] = 'Schriftfarbe ausw„hlen'; -tinyMCELang['lang_theme_charmap_title'] = 'Sonderzeichen einfügen'; -tinyMCELang['lang_theme_charmap_desc'] = 'Sonderzeichen einfügen'; -tinyMCELang['lang_theme_visualaid_desc'] = 'Anzeige von Hilfslinien / unsichtbaren Elementen an/aus'; -tinyMCELang['lang_insert_anchor_title'] = 'Anker einfügen / bearbeiten'; -tinyMCELang['lang_insert_anchor_name'] = 'Ankername'; -tinyMCELang['lang_theme_anchor_desc'] = 'Anker einfügen / bearbeiten'; -tinyMCELang['lang_theme_insert_link_titlefield'] = 'Title'; - +// DE lang variables +// Translated 2004 by Crazy Chrissi +// Edited 2004 by Krokogras + +tinyMCELang['lang_theme_style_select'] = 'Styles'; +tinyMCELang['lang_theme_code_desc'] = 'HTML-Modus'; +tinyMCELang['lang_theme_code_title'] = 'HTML-Code Editor'; +tinyMCELang['lang_theme_code_wordwrap'] = 'Zeilenumbruch'; +tinyMCELang['lang_theme_code_save'] = 'Speichern'; +tinyMCELang['lang_theme_sub_desc'] = 'Tiefergestellt'; +tinyMCELang['lang_theme_sup_desc'] = 'Höhergestellt'; +tinyMCELang['lang_theme_hr_desc'] = 'Horizontale Linie einfügen'; +tinyMCELang['lang_theme_removeformat_desc'] = 'Formatierung löschen'; +tinyMCELang['lang_theme_table_desc'] = 'Neue Tabelle einfügen / Tabelle bearbeiten'; +tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Zeile vor aktueller einfügen'; +tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Zeile nach aktueller einfügen'; +tinyMCELang['lang_theme_table_delete_row_desc'] = 'Aktuelle Zeile löschen'; +tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Spalte vor aktueller einfügen'; +tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Spalte nach aktueller einfügen'; +tinyMCELang['lang_theme_table_delete_col_desc'] = 'Aktuelle Spalte löschen'; +tinyMCELang['lang_theme_custom1_desc'] = 'Beschreibung eingeben'; +tinyMCELang['lang_insert_image_border'] = 'Rahmen'; +tinyMCELang['lang_insert_image_dimensions'] = 'Größe'; +tinyMCELang['lang_insert_image_vspace'] = 'Vertikal einrücken'; +tinyMCELang['lang_insert_image_hspace'] = 'Horizontal einrücken'; +tinyMCELang['lang_insert_image_align'] = 'Ausrichten'; +tinyMCELang['lang_insert_image_align_default'] = 'Normal'; +tinyMCELang['lang_insert_image_align_baseline'] = 'Grundlinie'; +tinyMCELang['lang_insert_image_align_top'] = 'Oben'; +tinyMCELang['lang_insert_image_align_middle'] = 'Mitte'; +tinyMCELang['lang_insert_image_align_bottom'] = 'Unten'; +tinyMCELang['lang_insert_image_align_texttop'] = 'Textoberkante'; +tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absolute Mitte'; +tinyMCELang['lang_insert_image_align_absbottom'] = 'Absolut unten'; +tinyMCELang['lang_insert_image_align_left'] = 'Links'; +tinyMCELang['lang_insert_image_align_right'] = 'Rechts'; +tinyMCELang['lang_insert_table_title'] = 'Tabelle einfügen / bearbeiten'; +tinyMCELang['lang_insert_table_width'] = 'Breite'; +tinyMCELang['lang_insert_table_height'] = 'Höhe'; +tinyMCELang['lang_insert_table_cols'] = 'Spalten'; +tinyMCELang['lang_insert_table_rows'] = 'Zeilen'; +tinyMCELang['lang_insert_table_cellspacing'] = 'Zellabstand'; +tinyMCELang['lang_insert_table_cellpadding'] = 'Zellauffüllung'; +tinyMCELang['lang_insert_table_border'] = 'Rahmen'; +tinyMCELang['lang_insert_table_align'] = 'Ausrichten'; +tinyMCELang['lang_insert_table_align_default'] = 'Normal'; +tinyMCELang['lang_insert_table_align_left'] = 'Links'; +tinyMCELang['lang_insert_table_align_right'] = 'Rechts'; +tinyMCELang['lang_insert_table_align_middle'] = 'Zentriert'; +tinyMCELang['lang_insert_table_class'] = 'Klasse'; +tinyMCELang['lang_insert_table_delta_width'] = 30; +tinyMCELang['lang_theme_fontdefault'] = 'Normal'; +tinyMCELang['lang_theme_paragraph'] = 'Standard-Text'; +tinyMCELang['lang_theme_div'] = 'Div'; +tinyMCELang['lang_theme_address'] = 'Addresse'; +tinyMCELang['lang_theme_pre'] = 'Vorformatiert (pre)'; +tinyMCELang['lang_theme_h1'] = 'Überschrift 1'; +tinyMCELang['lang_theme_h2'] = 'Überschrift 2'; +tinyMCELang['lang_theme_h3'] = 'Überschrift 3'; +tinyMCELang['lang_theme_h4'] = 'Überschrift 4'; +tinyMCELang['lang_theme_h5'] = 'Überschrift 5'; +tinyMCELang['lang_theme_h6'] = 'Überschrift 6'; +tinyMCELang['lang_theme_colorpicker_title'] = 'Farbe auswählen'; +tinyMCELang['lang_theme_colorpicker_apply'] = 'Übernehmen'; +tinyMCELang['lang_theme_forecolor_desc'] = 'Schriftfarbe ausw„hlen'; +tinyMCELang['lang_theme_charmap_title'] = 'Sonderzeichen einfügen'; +tinyMCELang['lang_theme_charmap_desc'] = 'Sonderzeichen einfügen'; +tinyMCELang['lang_theme_visualaid_desc'] = 'Anzeige von Hilfslinien / unsichtbaren Elementen an/aus'; +tinyMCELang['lang_insert_anchor_title'] = 'Anker einfügen / bearbeiten'; +tinyMCELang['lang_insert_anchor_name'] = 'Ankername'; +tinyMCELang['lang_theme_anchor_desc'] = 'Anker einfügen / bearbeiten'; +tinyMCELang['lang_theme_insert_link_titlefield'] = 'Title'; + diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/langs/en.js new file mode 100644 index 000000000..501fc4372 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/en.js @@ -0,0 +1,38 @@ +// UK lang variables + +tinyMCELang['lang_bold_desc'] = 'Bold'; +tinyMCELang['lang_italic_desc'] = 'Italic'; +tinyMCELang['lang_underline_desc'] = 'Underline'; +tinyMCELang['lang_striketrough_desc'] = 'Striketrough'; +tinyMCELang['lang_justifyleft_desc'] = 'Align left'; +tinyMCELang['lang_justifycenter_desc'] = 'Align center'; +tinyMCELang['lang_justifyright_desc'] = 'Align right'; +tinyMCELang['lang_justifyfull_desc'] = 'Align full'; +tinyMCELang['lang_bullist_desc'] = 'Unordered list'; +tinyMCELang['lang_numlist_desc'] = 'Ordered list'; +tinyMCELang['lang_outdent_desc'] = 'Outdent'; +tinyMCELang['lang_indent_desc'] = 'Indent'; +tinyMCELang['lang_undo_desc'] = 'Undo'; +tinyMCELang['lang_redo_desc'] = 'Redo'; +tinyMCELang['lang_link_desc'] = 'Insert/edit link'; +tinyMCELang['lang_unlink_desc'] = 'Unlink'; +tinyMCELang['lang_image_desc'] = 'Insert/edit image'; +tinyMCELang['lang_cleanup_desc'] = 'Cleanup messy code'; +tinyMCELang['lang_focus_alert'] = 'A editor instance must be focused before using this command.'; +tinyMCELang['lang_edit_confirm'] = 'Do you want to use the WYSIWYG mode for this textarea?'; +tinyMCELang['lang_insert_link_title'] = 'Insert/edit link'; +tinyMCELang['lang_insert'] = 'Insert'; +tinyMCELang['lang_update'] = 'Update'; +tinyMCELang['lang_cancel'] = 'Cancel'; +tinyMCELang['lang_insert_link_url'] = 'Link URL'; +tinyMCELang['lang_insert_link_target'] = 'Target'; +tinyMCELang['lang_insert_link_target_same'] = 'Open link in the same window'; +tinyMCELang['lang_insert_link_target_blank'] = 'Open link in a new window'; +tinyMCELang['lang_insert_image_title'] = 'Insert/edit image'; +tinyMCELang['lang_insert_image_src'] = 'Image URL'; +tinyMCELang['lang_insert_image_alt'] = 'Image description'; +tinyMCELang['lang_help_desc'] = 'Help'; +tinyMCELang['lang_bold_img'] = "bold.gif"; +tinyMCELang['lang_italic_img'] = "italic.gif"; +tinyMCELang['lang_underline_img'] = "underline.gif"; +tinyMCELang['lang_clipboard_msg'] = 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/fr_ca.js b/www/extras/tinymce/jscripts/tiny_mce/langs/fr_ca.js new file mode 100644 index 000000000..a5517d601 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/fr_ca.js @@ -0,0 +1,38 @@ +// Canadian French lang variables by Virtuelcom + +tinyMCELang['lang_bold_desc'] = 'Gras'; +tinyMCELang['lang_italic_desc'] = 'Italique'; +tinyMCELang['lang_underline_desc'] = 'Souligner'; +tinyMCELang['lang_striketrough_desc'] = 'Barrer'; +tinyMCELang['lang_justifyleft_desc'] = 'Aligner à gauche'; +tinyMCELang['lang_justifycenter_desc'] = 'Aligner au centre'; +tinyMCELang['lang_justifyright_desc'] = 'Aligner à droite'; +tinyMCELang['lang_justifyfull_desc'] = 'Justifier'; +tinyMCELang['lang_bullist_desc'] = 'Puces'; +tinyMCELang['lang_numlist_desc'] = 'Numérotation'; +tinyMCELang['lang_outdent_desc'] = 'Réduire le retrait'; +tinyMCELang['lang_indent_desc'] = 'Augmenter le retrait'; +tinyMCELang['lang_undo_desc'] = 'Annuler la dernière action'; +tinyMCELang['lang_redo_desc'] = 'Refaire la dernière action annulée'; +tinyMCELang['lang_link_desc'] = 'Insérer un hyperlien'; +tinyMCELang['lang_unlink_desc'] = 'Supprimer un hyperlien'; +tinyMCELang['lang_image_desc'] = 'Insérer une image'; +tinyMCELang['lang_cleanup_desc'] = 'Nettoyer le code'; +tinyMCELang['lang_focus_alert'] = 'Un éditeur doit être sélectionné pour utiliser cette fonction.'; +tinyMCELang['lang_edit_confirm'] = 'Désirez-vous utiliser l\'éditeur pour modifier cette zone?'; +tinyMCELang['lang_insert_link_title'] = 'Insérer/modifier un hyperlien'; +tinyMCELang['lang_insert'] = 'Insérer'; +tinyMCELang['lang_update'] = 'Insérer'; +tinyMCELang['lang_cancel'] = 'Annuler'; +tinyMCELang['lang_insert_link_url'] = 'Adresse URL'; +tinyMCELang['lang_insert_link_target'] = 'Destination'; +tinyMCELang['lang_insert_link_target_same'] = 'Ouvrir dans la même fenêtre'; +tinyMCELang['lang_insert_link_target_blank'] = 'Ouvrir dans une nouvelle fenêtre'; +tinyMCELang['lang_insert_image_title'] = 'Insérer/modifier une image'; +tinyMCELang['lang_insert_image_src'] = 'Adresse de l\'image'; +tinyMCELang['lang_insert_image_alt'] = 'Description de l\'image'; +tinyMCELang['lang_help_desc'] = 'Aide'; +tinyMCELang['lang_bold_img'] = "bold_fr.gif"; +tinyMCELang['lang_italic_img'] = "italic.gif"; +tinyMCELang['lang_underline_img'] = "underline.gif"; +tinyMCELang['lang_clipboard_msg'] = 'Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/langs/ja.js b/www/extras/tinymce/jscripts/tiny_mce/langs/ja.js new file mode 100644 index 000000000..3795c5b05 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/langs/ja.js @@ -0,0 +1,38 @@ +// JP lang variables + +tinyMCELang['lang_bold_desc'] = '$BB@;z(B'; +tinyMCELang['lang_italic_desc'] = '$B'; - } - return ""; -} - -/** - * Executes the mceAdvanceHr command. - */ -function TinyMCE_advhr_execCommand(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceAdvancedHr": - var template = new Array(); - template['file'] = '../../plugins/advhr/rule.htm'; // Relative to theme - template['width'] = 270; - template['height'] = 180; - var size = "", width = "", noshade = ""; - if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "hr"){ - tinyMCE.hrElement = tinyMCE.selectedElement; - if (tinyMCE.hrElement) { - size = tinyMCE.hrElement.getAttribute('size') ? tinyMCE.hrElement.getAttribute('size') : ""; - width = tinyMCE.hrElement.getAttribute('width') ? tinyMCE.hrElement.getAttribute('width') : ""; - noshade = tinyMCE.hrElement.getAttribute('noshade') ? tinyMCE.hrElement.getAttribute('noshade') : ""; - } - tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'update'}); - } else { - if (tinyMCE.isMSIE) { - tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false,'
'); - } else { - tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'insert'}); - } - } - - return true; - } - // Pass to next handler in chain - return false; -} - -function TinyMCE_advhr_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonNormal'); - - do { - if (node.nodeName.toLowerCase() == "hr") - tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonSelected'); - } while ((node = node.parentNode)); - - return true; -} \ No newline at end of file +/* Import theme specific language pack */ + tinyMCE.importPluginLanguagePack('advhr','en,de,sv,zh_cn,cs');function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":return '';}return "";}function TinyMCE_advhr_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=270;template['height']=180;var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):"";}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'});}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'
');}else{tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'insert'});}}return true;}return false;}function TinyMCE_advhr_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonNormal');do{if(node.nodeName.toLowerCase()=="hr")tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonSelected');}while((node=node.parentNode));return true;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js new file mode 100644 index 000000000..c25287751 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin_src.js @@ -0,0 +1,55 @@ +/* Import theme specific language pack */ +tinyMCE.importPluginLanguagePack('advhr', 'en,de,sv,zh_cn,cs'); + +function TinyMCE_advhr_getControlHTML(control_name) { + switch (control_name) { + case "advhr": + return ''; + } + return ""; +} + +/** + * Executes the mceAdvanceHr command. + */ +function TinyMCE_advhr_execCommand(editor_id, element, command, user_interface, value) { + // Handle commands + switch (command) { + case "mceAdvancedHr": + var template = new Array(); + template['file'] = '../../plugins/advhr/rule.htm'; // Relative to theme + template['width'] = 270; + template['height'] = 180; + var size = "", width = "", noshade = ""; + if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "hr"){ + tinyMCE.hrElement = tinyMCE.selectedElement; + if (tinyMCE.hrElement) { + size = tinyMCE.hrElement.getAttribute('size') ? tinyMCE.hrElement.getAttribute('size') : ""; + width = tinyMCE.hrElement.getAttribute('width') ? tinyMCE.hrElement.getAttribute('width') : ""; + noshade = tinyMCE.hrElement.getAttribute('noshade') ? tinyMCE.hrElement.getAttribute('noshade') : ""; + } + tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'update'}); + } else { + if (tinyMCE.isMSIE) { + tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false,'
'); + } else { + tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'insert'}); + } + } + + return true; + } + // Pass to next handler in chain + return false; +} + +function TinyMCE_advhr_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { + tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonNormal'); + + do { + if (node.nodeName.toLowerCase() == "hr") + tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonSelected'); + } while ((node = node.parentNode)); + + return true; +} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/cs.js new file mode 100644 index 000000000..5227b63e8 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/cs.js @@ -0,0 +1,6 @@ +// UK lang variables + +tinyMCELang['lang_insert_advhr_desc'] = 'Vložit/editovat vodorovný oddìlovaè' +tinyMCELang['lang_insert_advhr_width'] = 'Šíøka'; +tinyMCELang['lang_insert_advhr_size'] = 'Výška'; +tinyMCELang['lang_insert_advhr_noshade'] = 'Nestínovat'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de.js index 0558377af..beefec8fd 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/de.js @@ -1,6 +1,6 @@ -// DE lang variables - -tinyMCELang['lang_insert_advhr_desc'] = 'Horizontale Linie einfügen / bearbeiten' -tinyMCELang['lang_insert_advhr_width'] = 'Breite'; -tinyMCELang['lang_insert_advhr_size'] = 'Höhe'; -tinyMCELang['lang_insert_advhr_noshade'] = 'Keinen Schatten'; +// DE lang variables + +tinyMCELang['lang_insert_advhr_desc'] = 'Horizontale Linie einfügen / bearbeiten' +tinyMCELang['lang_insert_advhr_width'] = 'Breite'; +tinyMCELang['lang_insert_advhr_size'] = 'Höhe'; +tinyMCELang['lang_insert_advhr_noshade'] = 'Keinen Schatten'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en.js new file mode 100644 index 000000000..8daf26e1b --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en.js @@ -0,0 +1,6 @@ +// UK lang variables + +tinyMCELang['lang_insert_advhr_desc'] = 'Insert / edit Horizontale Rule' +tinyMCELang['lang_insert_advhr_width'] = 'Width'; +tinyMCELang['lang_insert_advhr_size'] = 'Height'; +tinyMCELang['lang_insert_advhr_noshade'] = 'No shadow'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/sv.js new file mode 100644 index 000000000..9a04982df --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/sv.js @@ -0,0 +1,6 @@ +// SE lang variables + +tinyMCELang['lang_insert_advhr_desc'] = 'Skapa / uppdatera Horizontell linie' +tinyMCELang['lang_insert_advhr_width'] = 'Bredd'; +tinyMCELang['lang_insert_advhr_size'] = 'Höjd'; +tinyMCELang['lang_insert_advhr_noshade'] = 'Ingen skugga'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/zh_cn.js new file mode 100644 index 000000000..b12d1648c --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/zh_cn.js @@ -0,0 +1,6 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_insert_advhr_desc'] = '²åÈë/±à¼­ ˮƽ±ê³ß' +tinyMCELang['lang_insert_advhr_width'] = '¿í¶È'; +tinyMCELang['lang_insert_advhr_size'] = '¸ß¶È'; +tinyMCELang['lang_insert_advhr_noshade'] = 'ÎÞÒõÓ°'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/readme.txt b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/readme.txt index be6dec383..f39e3b471 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/readme.txt +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/readme.txt @@ -1,20 +1,20 @@ - Advhr plugin for TinyMCE ------------------------------ - -About: - This is a more advanced hr dialog contributed by Michael Keck. - This one supports noshade, width and size. - -Installation instructions: - * Copy the advhr directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). - * Add plugin to TinyMCE plugin option list example: plugins : "advhr". - * Add this "hr[class|width|size|noshade]" to extended_valid_elements option. - -Initialization example: - tinyMCE.init({ - theme : "advanced", - mode : "textareas", - plugins : "advhr", - theme_advanced_buttons1_add : "advhr", - extended_valid_elements : "hr[class|width|size|noshade]" - }); + Advhr plugin for TinyMCE +----------------------------- + +About: + This is a more advanced hr dialog contributed by Michael Keck. + This one supports noshade, width and size. + +Installation instructions: + * Copy the advhr directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). + * Add plugin to TinyMCE plugin option list example: plugins : "advhr". + * Add this "hr[class|width|size|noshade]" to extended_valid_elements option. + +Initialization example: + tinyMCE.init({ + theme : "advanced", + mode : "textareas", + plugins : "advhr", + theme_advanced_buttons1_add : "advhr", + extended_valid_elements : "hr[class|width|size|noshade]" + }); diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm index c3cda336a..77616dba8 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm @@ -1,108 +1,108 @@ - - - - -{$lang_insert_link_title} - - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - -
{$lang_insert_advhr_desc}
{$lang_insert_advhr_width}: - - -
{$lang_insert_advhr_size}:
-
- - + + + + +{$lang_insert_link_title} + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
{$lang_insert_advhr_desc}
{$lang_insert_advhr_width}: + + +
{$lang_insert_advhr_size}:
+
+ + diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js index bf9e3fd2b..05b14bbd8 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js @@ -1,19 +1,2 @@ /* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('advimage', 'uk,se,de'); - -/** - * Insert image template function. - */ -function TinyMCE_advimage_getInsertImageTemplate() { - var template = new Array(); - - template['file'] = '../../plugins/advimage/image.htm'; - template['width'] = 380; - template['height'] = 380; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0); - - return template; -} + tinyMCE.importPluginLanguagePack('advimage','en,de,sv,zh_cn,cs');function TinyMCE_advimage_getInsertImageTemplate(){var template=new Array();template['file']='../../plugins/advimage/image.htm';template['width']=380;template['height']=380;template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);return template;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js new file mode 100644 index 000000000..5be698584 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js @@ -0,0 +1,19 @@ +/* Import theme specific language pack */ +tinyMCE.importPluginLanguagePack('advimage', 'en,de,sv,zh_cn,cs'); + +/** + * Insert image template function. + */ +function TinyMCE_advimage_getInsertImageTemplate() { + var template = new Array(); + + template['file'] = '../../plugins/advimage/image.htm'; + template['width'] = 380; + template['height'] = 380; + + // Language specific width and height addons + template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0); + template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0); + + return template; +} diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm index 72d5d9886..21cafd09f 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm @@ -4,6 +4,11 @@ {$lang_insert_image_title} + + {$lang_insert_image_alt}: @@ -196,10 +240,46 @@ {$lang_insert_image_mouseover}: + + + {$lang_insert_image_mouseout}: + + + diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/cs.js new file mode 100644 index 000000000..dde44c688 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/cs.js @@ -0,0 +1,6 @@ +// UK lang variables + +tinyMCELang['lang_insert_image_alt2'] = 'Název obrázku'; +tinyMCELang['lang_insert_image_onmousemove'] = 'Alternativní obrázek' +tinyMCELang['lang_insert_image_mouseover'] = 'pøi najetí myši'; +tinyMCELang['lang_insert_image_mouseout'] = 'pøi odjetí myši'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en.js new file mode 100644 index 000000000..c4098afcd --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en.js @@ -0,0 +1,6 @@ +// UK lang variables + +tinyMCELang['lang_insert_image_alt2'] = 'Image title'; +tinyMCELang['lang_insert_image_onmousemove'] = 'Alternative image' +tinyMCELang['lang_insert_image_mouseover'] = 'for mouse over'; +tinyMCELang['lang_insert_image_mouseout'] = 'for mouse out'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/sv.js new file mode 100644 index 000000000..a2c62bbfe --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/sv.js @@ -0,0 +1,6 @@ +// SE lang variables + +tinyMCELang['lang_insert_image_alt2'] = 'Bildens titel'; +tinyMCELang['lang_insert_image_onmousemove'] = 'Alternativ bild' +tinyMCELang['lang_insert_image_mouseover'] = 'när pekaren är över'; +tinyMCELang['lang_insert_image_mouseout'] = 'när pekaren är utanför'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_cn.js new file mode 100644 index 000000000..24360d01e --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_cn.js @@ -0,0 +1,6 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_insert_image_alt2'] = 'ͼƬ±êÌâ'; +tinyMCELang['lang_insert_image_onmousemove'] = 'Ìæ´úͼÏñ' +tinyMCELang['lang_insert_image_mouseover'] = 'Êó±êÒÆÉÏʱ'; +tinyMCELang['lang_insert_image_mouseout'] = 'Êó±êÒÆ¿ªÊ±'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js index 352610b3b..dee396450 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js @@ -1,18 +1,2 @@ /* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('advlink', 'uk,se,de'); - -/** - * Insert link template function. - */ -function TinyMCE_advlink_getInsertLinkTemplate() { - var template = new Array(); - template['file'] = '../../plugins/advlink/link.htm'; - template['width'] = 440; - template['height'] = 420; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_link_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_link_delta_height', 0); - - return template; -} \ No newline at end of file + tinyMCE.importPluginLanguagePack('advlink','en,de,sv,zh_cn,cs');function TinyMCE_advlink_getInsertLinkTemplate(){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=440;template['height']=420;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js new file mode 100644 index 000000000..1173e37e7 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js @@ -0,0 +1,18 @@ +/* Import theme specific language pack */ +tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs'); + +/** + * Insert link template function. + */ +function TinyMCE_advlink_getInsertLinkTemplate() { + var template = new Array(); + template['file'] = '../../plugins/advlink/link.htm'; + template['width'] = 440; + template['height'] = 420; + + // Language specific width and height addons + template['width'] += tinyMCE.getLang('lang_insert_link_delta_width', 0); + template['height'] += tinyMCE.getLang('lang_insert_link_delta_height', 0); + + return template; +} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/cs.js new file mode 100644 index 000000000..fb758caa1 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/cs.js @@ -0,0 +1,20 @@ +// CZ lang variables + +tinyMCELang['lang_insert_link_target_same'] = 'Otevøít ve stejném oknì/rámu'; +tinyMCELang['lang_insert_link_target_parent'] = 'Otevøít v rodièovském oknì/rámu'; +tinyMCELang['lang_insert_link_target_top'] = 'Otevøít v nejvyšším rámu (pøepíše všechny rámy)'; +tinyMCELang['lang_insert_link_target_blank'] = 'Otevøít v novém oknì'; +tinyMCELang['lang_insert_link_target_named'] = 'Otevøít v oknì'; +tinyMCELang['lang_insert_link_popup'] = 'JS-Popup'; +tinyMCELang['lang_insert_link_popup_url'] = 'Popup URL'; +tinyMCELang['lang_insert_link_popup_name'] = 'Název okna'; +tinyMCELang['lang_insert_link_popup_return'] = 'insert \'return false\''; +tinyMCELang['lang_insert_link_popup_scrollbars'] = 'Ukázat posuvníky'; +tinyMCELang['lang_insert_link_popup_statusbar'] = 'Ukázat stavový øádek'; +tinyMCELang['lang_insert_link_popup_toolbar'] = 'Ukázat ovl. lištu'; +tinyMCELang['lang_insert_link_popup_menubar'] = 'Ukázat menu'; +tinyMCELang['lang_insert_link_popup_location'] = 'Ukázat lištu umístìní'; +tinyMCELang['lang_insert_link_popup_resizable'] = 'Promìnná velikost okna'; +tinyMCELang['lang_insert_link_popup_size'] = 'Velikost'; +tinyMCELang['lang_insert_link_popup_position'] = 'Umístìní (X/Y)'; +tinyMCELang['lang_insert_link_popup_missingtarget'] = 'Vložte název cíle nebo vyberte jinou volbu.'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en.js new file mode 100644 index 000000000..9384f3917 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en.js @@ -0,0 +1,20 @@ +// UK lang variables + +tinyMCELang['lang_insert_link_target_same'] = 'Open in this window / frame'; +tinyMCELang['lang_insert_link_target_parent'] = 'Open in parent window / frame'; +tinyMCELang['lang_insert_link_target_top'] = 'Open in top frame (replaces all frames)'; +tinyMCELang['lang_insert_link_target_blank'] = 'Open in new window'; +tinyMCELang['lang_insert_link_target_named'] = 'Open in the window'; +tinyMCELang['lang_insert_link_popup'] = 'JS-Popup'; +tinyMCELang['lang_insert_link_popup_url'] = 'Popup URL'; +tinyMCELang['lang_insert_link_popup_name'] = 'Window name'; +tinyMCELang['lang_insert_link_popup_return'] = 'insert \'return false\''; +tinyMCELang['lang_insert_link_popup_scrollbars'] = 'Show scrollbars'; +tinyMCELang['lang_insert_link_popup_statusbar'] = 'Show statusbar'; +tinyMCELang['lang_insert_link_popup_toolbar'] = 'Show toolbars'; +tinyMCELang['lang_insert_link_popup_menubar'] = 'Show menubar'; +tinyMCELang['lang_insert_link_popup_location'] = 'Show locationbar'; +tinyMCELang['lang_insert_link_popup_resizable'] = 'Make window resizable'; +tinyMCELang['lang_insert_link_popup_size'] = 'Size'; +tinyMCELang['lang_insert_link_popup_position'] = 'Position (X/Y)'; +tinyMCELang['lang_insert_link_popup_missingtarget'] = 'Please insert a name for the target or choose another option.'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/sv.js new file mode 100644 index 000000000..cc5ab725d --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/sv.js @@ -0,0 +1,20 @@ +// SE lang variables + +tinyMCELang['lang_insert_link_target_same'] = 'Öppna i samma fönster / ram'; +tinyMCELang['lang_insert_link_target_parent'] = 'Öppna i underliggande fönster / ram'; +tinyMCELang['lang_insert_link_target_top'] = 'Öppna i topp ramen (ersätter alla ramar)'; +tinyMCELang['lang_insert_link_target_blank'] = 'Öppna i ett nytt fönster'; +tinyMCELang['lang_insert_link_target_named'] = 'Öppna i ett specifikt fönster'; +tinyMCELang['lang_insert_link_popup'] = 'JS-Popup'; +tinyMCELang['lang_insert_link_popup_url'] = 'Popup URL'; +tinyMCELang['lang_insert_link_popup_name'] = 'Fönstrets namn'; +tinyMCELang['lang_insert_link_popup_return'] = 'Sättin \'return false\''; +tinyMCELang['lang_insert_link_popup_scrollbars'] = 'Visa scrollbars'; +tinyMCELang['lang_insert_link_popup_statusbar'] = 'Visa statusbar'; +tinyMCELang['lang_insert_link_popup_toolbar'] = 'Visa toolbars'; +tinyMCELang['lang_insert_link_popup_menubar'] = 'Visa menubar'; +tinyMCELang['lang_insert_link_popup_location'] = 'Visa locationbar'; +tinyMCELang['lang_insert_link_popup_resizable'] = 'Gör fönstret skalbart'; +tinyMCELang['lang_insert_link_popup_size'] = 'Storlek'; +tinyMCELang['lang_insert_link_popup_position'] = 'Position (X/Y)'; +tinyMCELang['lang_insert_link_popup_missingtarget'] = 'Var god skriv ett namn för målet eller välj ett annat val.'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/zh_cn.js new file mode 100644 index 000000000..bb402cae3 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/langs/zh_cn.js @@ -0,0 +1,20 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_insert_link_target_same'] = 'ÔÚ±¾´°¿Ú/¿ò¼ÜÖдò¿ª'; +tinyMCELang['lang_insert_link_target_parent'] = 'ÔÚ¸¸´°¿Ú/¿ò¼ÜÖдò¿ª'; +tinyMCELang['lang_insert_link_target_top'] = 'ÔÚ¸ù¿ò¼ÜÖдò¿ª£¨Ìæ»»ËùÓпò¼Ü£©'; +tinyMCELang['lang_insert_link_target_blank'] = 'ÔÚд°¿ÚÖдò¿ª'; +tinyMCELang['lang_insert_link_target_named'] = 'ÔÚ´Ë´°¿ÚÖдò¿ª'; +tinyMCELang['lang_insert_link_popup'] = 'JS-Popup'; +tinyMCELang['lang_insert_link_popup_url'] = 'µ¯³ö´°¿ÚµØÖ·'; +tinyMCELang['lang_insert_link_popup_name'] = '´°¿ÚÃû³Æ'; +tinyMCELang['lang_insert_link_popup_return'] = '²åÈë \'return false\''; +tinyMCELang['lang_insert_link_popup_scrollbars'] = 'ÏÔʾ¹ö¶¯Ìõ'; +tinyMCELang['lang_insert_link_popup_statusbar'] = 'ÏÔʾ״̬À¸'; +tinyMCELang['lang_insert_link_popup_toolbar'] = 'ÏÔʾ¹¤¾ßÀ¸'; +tinyMCELang['lang_insert_link_popup_menubar'] = 'ÏÔʾ²Ëµ¥À¸'; +tinyMCELang['lang_insert_link_popup_location'] = 'ÏÔʾµØÖ·À¸'; +tinyMCELang['lang_insert_link_popup_resizable'] = '¿ÉÖØ¶¨Òå´°¿Ú´óС'; +tinyMCELang['lang_insert_link_popup_size'] = '³ß´ç'; +tinyMCELang['lang_insert_link_popup_position'] = 'λÖÃ(X/Y)'; +tinyMCELang['lang_insert_link_popup_missingtarget'] = 'Çë²åÈëÄ¿±êÃû³Æ»òÕßÑ¡ÔñÁíÍâµÄÑ¡Ïî¡£'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm index a36c497a7..5b5835dcc 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm @@ -4,6 +4,11 @@ {$lang_insert_link_title} + - - -
- - - - - - - - - - - - - - - -
{$lang_insert_flash}

- - - - - - - - -
{$lang_insert_flash_file}: - -
{$lang_insert_flash_size}: - -  x  - -

- -
-
- - + + + + +{$lang_insert_flash} + + + + + + +
+ + + + + + + + + + + + + + + +
{$lang_insert_flash}

+ + + + + + + + + + + +
{$lang_insert_flash_file}: + + + + + +
+
{$lang_insert_flash_size}: + +  x  + +

+ +
+
+ + diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/cs.js new file mode 100644 index 000000000..c408809d4 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/cs.js @@ -0,0 +1,5 @@ +// UK lang variables + +tinyMCELang['lang_insert_flash'] = 'Vložit/editovat Flash Movie'; +tinyMCELang['lang_insert_flash_file'] = 'Flash soubor (.swf)'; +tinyMCELang['lang_insert_flash_size'] = 'Velikost'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/de.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/de.js index c00eb6387..654d84480 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/de.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/de.js @@ -1,4 +1,5 @@ -// DE lang variables -tinyMCELang['lang_insert_flash'] = 'Flash Movie einfügen / bearbeiten'; -tinyMCELang['lang_insert_flash_file'] = 'Flash-Datei'; -tinyMCELang['lang_insert_flash_size'] = 'Größe'; +// DE lang variables +tinyMCELang['lang_insert_flash'] = 'Flash Movie einfügen / bearbeiten'; +tinyMCELang['lang_insert_flash_file'] = 'Flash-Datei'; +tinyMCELang['lang_insert_flash_size'] = 'Größe'; +tinyMCELang['lang_insert_flash_list'] = 'Flash files'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/en.js new file mode 100644 index 000000000..34fbcd9f8 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/en.js @@ -0,0 +1,6 @@ +// UK lang variables + +tinyMCELang['lang_insert_flash'] = 'Insert / edit Flash Movie'; +tinyMCELang['lang_insert_flash_file'] = 'Flash-File (.swf)'; +tinyMCELang['lang_insert_flash_size'] = 'Size'; +tinyMCELang['lang_insert_flash_list'] = 'Flash files'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/sv.js new file mode 100644 index 000000000..b94933206 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/sv.js @@ -0,0 +1,6 @@ +// SE lang variables + +tinyMCELang['lang_insert_flash'] = 'Skapa / uppdatera flash film'; +tinyMCELang['lang_insert_flash_file'] = 'Flash film (.swf)'; +tinyMCELang['lang_insert_flash_size'] = 'Storlek'; +tinyMCELang['lang_insert_flash_list'] = 'Flash filer'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/zh_cn.js new file mode 100644 index 000000000..cef375513 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/langs/zh_cn.js @@ -0,0 +1,6 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_insert_flash'] = '²åÈë/±à¼­ FlashµçÓ°'; +tinyMCELang['lang_insert_flash_file'] = 'FlashÎļþ(.swf)'; +tinyMCELang['lang_insert_flash_size'] = '³ß´ç'; +tinyMCELang['lang_insert_flash_list'] = 'Flash files'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/readme.txt b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/readme.txt index a031d5603..b868a9fd0 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/readme.txt +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/readme.txt @@ -1,47 +1,48 @@ - FLASH plugin for TinyMCE ------------------------------ - -About: - This is the INSERT FLASH Dialog contributed by Michael Keck. - This one supports popup windows and targets. - -Note: - The placeholder for Flash is called 'mce_plugin_flash' and needs a class 'mce_plugin_flash' in the 'css_-style'. - Do not name another image 'name="mce_plugin_flash"! - -Installation instructions: - * Copy the flash directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). - * Add plugin to TinyMCE plugin option list example: plugins : "flash". - * Add this "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]" to extended_valid_elements option. - -Initialization example: - tinyMCE.init({ - theme : "advanced", - mode : "textareas", - plugins : "flash", - extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]" - }); - - ----------------------------------------------------------------- -ADDITIONAL NOTE: - -The flash plugin has been heavily modified (the original is editor_plugin_original.js) since the original did not play nicely with html content that -already contained existing flash tags and in fact stripped out the object -tags for existing flash html. The rewrite corrects this as well attempts -to preserve the existing flash tags where possible. The tinyMCE.init call -should be be something like: - -Initialization example: - tinyMCE.init({ - theme : "advanced", - mode : "textareas", - plugins : "flash", - extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]" - }); - -Note the extra obj,param,embed attributes for the img tag. These attributes -are used to serialize data from existing flash tags so that they can be -properly restored. Editing a flash tag with the plugin will cause this -information to be lost (sorry !) but still produces a working flash nevertheless. - + FLASH plugin for TinyMCE +----------------------------- + +About: + This is the INSERT FLASH Dialog contributed by Michael Keck. + This one supports popup windows and targets. + +Note: + The placeholder for Flash is called 'mce_plugin_flash' and needs a class 'mce_plugin_flash' in the 'css_-style'. + Do not name another image 'name="mce_plugin_flash"! + +Installation instructions: + * Copy the flash directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). + * Add plugin to TinyMCE plugin option list example: plugins : "flash". + * Add this "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]" to extended_valid_elements option. + +Initialization example: + tinyMCE.init({ + theme : "advanced", + mode : "textareas", + plugins : "flash", + extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]" + flash_external_list_url : "example_flash_list.js" // Optional URL to a list of Flash movies + }); + + +---------------------------------------------------------------- +ADDITIONAL NOTE: + +The flash plugin has been heavily modified (the original is editor_plugin_original.js) since the original did not play nicely with html content that +already contained existing flash tags and in fact stripped out the object +tags for existing flash html. The rewrite corrects this as well attempts +to preserve the existing flash tags where possible. The tinyMCE.init call +should be be something like: + +Initialization example: + tinyMCE.init({ + theme : "advanced", + mode : "textareas", + plugins : "flash", + extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]" + }); + +Note the extra obj,param,embed attributes for the img tag. These attributes +are used to serialize data from existing flash tags so that they can be +properly restored. Editing a flash tag with the plugin will cause this +information to be lost (sorry !) but still produces a working flash nevertheless. + diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js index aa56ed105..5dfe0ce4e 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js @@ -1,37 +1,2 @@ /* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('iespell', 'uk,se'); - -/** - * Returns the HTML contents of the iespell control. - */ -function TinyMCE_iespell_getControlHTML(control_name) { - // Is it the iespell control and is the brower MSIE. - if (control_name == "iespell" && tinyMCE.isMSIE) - return ''; - - return ""; -} - -/** - * Executes the mceIESpell command. - */ -function TinyMCE_iespell_execCommand(editor_id, element, command, user_interface, value) { - // Handle ieSpellCommand - if (command == "mceIESpell") { - try { - var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension"); - ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement); - } catch (e) { - if (e.number == -2146827859) { - if (confirm(tinyMCE.getLang("lang_iespell_download", "", true))) - window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); - } else - alert("Error Loading ieSpell: Exception " + e.number); - } - - return true; - } - - // Pass to next handler in chain - return false; -} \ No newline at end of file + tinyMCE.importPluginLanguagePack('iespell','cs,el,en,fr_ca,it,ko,sv,zh_cn');function TinyMCE_iespell_getControlHTML(control_name){if(control_name=="iespell"&&tinyMCE.isMSIE)return '';return "";}function TinyMCE_iespell_execCommand(editor_id,element,command,user_interface,value){if(command=="mceIESpell"){try{var ieSpell=new ActiveXObject("ieSpell.ieSpellExtension");ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);}catch(e){if(e.number==-2146827859){if(confirm(tinyMCE.getLang("lang_iespell_download","",true)))window.open('http://www.iespell.com/download.php','ieSpellDownload','');}else alert("Error Loading ieSpell: Exception "+e.number);}return true;}return false;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js new file mode 100644 index 000000000..23aa4840e --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js @@ -0,0 +1,37 @@ +/* Import theme specific language pack */ +tinyMCE.importPluginLanguagePack('iespell', 'cs,el,en,fr_ca,it,ko,sv,zh_cn'); + +/** + * Returns the HTML contents of the iespell control. + */ +function TinyMCE_iespell_getControlHTML(control_name) { + // Is it the iespell control and is the brower MSIE. + if (control_name == "iespell" && tinyMCE.isMSIE) + return ''; + + return ""; +} + +/** + * Executes the mceIESpell command. + */ +function TinyMCE_iespell_execCommand(editor_id, element, command, user_interface, value) { + // Handle ieSpellCommand + if (command == "mceIESpell") { + try { + var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension"); + ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement); + } catch (e) { + if (e.number == -2146827859) { + if (confirm(tinyMCE.getLang("lang_iespell_download", "", true))) + window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); + } else + alert("Error Loading ieSpell: Exception " + e.number); + } + + return true; + } + + // Pass to next handler in chain + return false; +} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/cs.js new file mode 100644 index 000000000..c38a4806c --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/cs.js @@ -0,0 +1,4 @@ +// UK lang variables + +tinyMCELang['lang_iespell_desc'] = 'Spustit kontrolu pravopisu'; +tinyMCELang['lang_iespell_download'] = "ieSpell nedetekován. Kliknìte na OK a otevøete stahovací stránku." \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/en.js new file mode 100644 index 000000000..b7cc3a439 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/en.js @@ -0,0 +1,4 @@ +// UK lang variables + +tinyMCELang['lang_iespell_desc'] = 'Run spell checking'; +tinyMCELang['lang_iespell_download'] = "ieSpell not detected. Click OK to go to download page." diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/fr_ca.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/fr_ca.js new file mode 100644 index 000000000..fb99a892f --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/fr_ca.js @@ -0,0 +1,4 @@ +// CAN_FR lang variables + +tinyMCELang['lang_iespell_desc'] = 'Executer le vérificateur d\'orthographe'; +tinyMCELang['lang_iespell_download'] = "ieSpell n\'a pas été trouvé. Cliquez sur OK pour aller au site de téléchargement." diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/sv.js new file mode 100644 index 000000000..2230c1cb9 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/sv.js @@ -0,0 +1,4 @@ +// SE lang variables + +tinyMCELang['lang_iespell_desc'] = 'Kör rättstavningskontroll'; +tinyMCELang['lang_iespell_download'] = "ieSpell verkar inte vara installerad. Klicka OK för att ladda hem." diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/zh_cn.js new file mode 100644 index 000000000..f03f9928c --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/zh_cn.js @@ -0,0 +1,4 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_iespell_desc'] = 'ÔËÐÐÆ´Ð´¼ì²é'; +tinyMCELang['lang_iespell_download'] = "δ¼ì²âµ½ieSpellƴд¼ì²é£¬µã»÷ OK ǰÍùÏÂÔØÒ³Ãæ¡£" diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js index 000ac2fcd..d389f04ad 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js @@ -1,66 +1,2 @@ /* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('insertdatetime', 'uk,se'); - -/** - * Returns the HTML contents of the insertdate, inserttime controls. - */ -function TinyMCE_insertdatetime_getControlHTML(control_name) { - switch (control_name) { - case "insertdate": - return ''; - - case "inserttime": - return ''; - } - - return ""; -} - -/** - * Executes the mceInsertDate command. - */ -function TinyMCE_insertdatetime_execCommand(editor_id, element, command, user_interface, value) { - /* Adds zeros infront of value */ - function addZeros(value, len) { - value = "" + value; - - if (value.length < len) { - for (var i=0; i<(len-value.length); i++) - value = "0" + value; - } - - return value; - } - - /* Returns the date object in the specified format */ - function getDateTime(date, format) { - format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); - format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); - format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); - format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); - format = tinyMCE.regexpReplace(format, "%m", addZeros(date.getMonth()+1, 2)); - format = tinyMCE.regexpReplace(format, "%d", addZeros(date.getDate(), 2)); - format = tinyMCE.regexpReplace(format, "%H", "" + addZeros(date.getHours(), 2)); - format = tinyMCE.regexpReplace(format, "%M", "" + addZeros(date.getMinutes(), 2)); - format = tinyMCE.regexpReplace(format, "%S", "" + addZeros(date.getSeconds(), 2)); - format = tinyMCE.regexpReplace(format, "%I", "" + (date.getHours() < 12 ? (date.getHours()+1) : 24-date.getHours())); - format = tinyMCE.regexpReplace(format, "%p", "" + (date.getHours() < 12 ? "AM" : "PM")); - format = tinyMCE.regexpReplace(format, "%%", "%"); - - return format; - } - - // Handle commands - switch (command) { - case "mceInsertDate": - tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, getDateTime(new Date(), tinyMCE.getParam("plugin_insertdate_dateFormat", "%Y-%m-%d"))); - return true; - - case "mceInsertTime": - tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, getDateTime(new Date(), tinyMCE.getParam("plugin_insertdate_timeFormat", "%H:%M:%S"))); - return true; - } - - // Pass to next handler in chain - return false; -} + tinyMCE.importPluginLanguagePack('insertdatetime','cs,el,en,fr_ca,it,ko,sv,zh_cn');function TinyMCE_insertdatetime_getControlHTML(control_name){switch(control_name){case "insertdate":return '';case "inserttime":return '';}return "";}function TinyMCE_insertdatetime_execCommand(editor_id,element,command,user_interface,value){function addZeros(value,len){value=""+value;if(value.length'; + + case "inserttime": + return ''; + } + + return ""; +} + +/** + * Executes the mceInsertDate command. + */ +function TinyMCE_insertdatetime_execCommand(editor_id, element, command, user_interface, value) { + /* Adds zeros infront of value */ + function addZeros(value, len) { + value = "" + value; + + if (value.length < len) { + for (var i=0; i<(len-value.length); i++) + value = "0" + value; + } + + return value; + } + + /* Returns the date object in the specified format */ + function getDateTime(date, format) { + format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); + format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); + format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); + format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); + format = tinyMCE.regexpReplace(format, "%m", addZeros(date.getMonth()+1, 2)); + format = tinyMCE.regexpReplace(format, "%d", addZeros(date.getDate(), 2)); + format = tinyMCE.regexpReplace(format, "%H", "" + addZeros(date.getHours(), 2)); + format = tinyMCE.regexpReplace(format, "%M", "" + addZeros(date.getMinutes(), 2)); + format = tinyMCE.regexpReplace(format, "%S", "" + addZeros(date.getSeconds(), 2)); + format = tinyMCE.regexpReplace(format, "%I", "" + (date.getHours() < 12 ? (date.getHours()+1) : 24-date.getHours())); + format = tinyMCE.regexpReplace(format, "%p", "" + (date.getHours() < 12 ? "AM" : "PM")); + format = tinyMCE.regexpReplace(format, "%%", "%"); + + return format; + } + + // Handle commands + switch (command) { + case "mceInsertDate": + tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, getDateTime(new Date(), tinyMCE.getParam("plugin_insertdate_dateFormat", "%Y-%m-%d"))); + return true; + + case "mceInsertTime": + tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, getDateTime(new Date(), tinyMCE.getParam("plugin_insertdate_timeFormat", "%H:%M:%S"))); + return true; + } + + // Pass to next handler in chain + return false; +} diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/cs.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/cs.js new file mode 100644 index 000000000..9f73ba40b --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/cs.js @@ -0,0 +1,4 @@ +// UK lang variables + +tinyMCELang['lang_insertdate_desc'] = 'Vložit datum'; +tinyMCELang['lang_inserttime_desc'] = 'Vložit èas'; \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/en.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/en.js new file mode 100644 index 000000000..a354eb976 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/en.js @@ -0,0 +1,4 @@ +// UK lang variables + +tinyMCELang['lang_insertdate_desc'] = 'Insert date'; +tinyMCELang['lang_inserttime_desc'] = 'Insert time'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/fr_ca.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/fr_ca.js new file mode 100644 index 000000000..aa8db952a --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/fr_ca.js @@ -0,0 +1,4 @@ +// CAN_FR lang variables + +tinyMCELang['lang_insertdate_desc'] = 'Insèrer la date'; +tinyMCELang['lang_inserttime_desc'] = 'Insèrer l\'heure'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/sv.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/sv.js new file mode 100644 index 000000000..b956613b7 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/sv.js @@ -0,0 +1,4 @@ +// SE lang variables + +tinyMCELang['lang_insertdate_desc'] = 'Klistra in datum'; +tinyMCELang['lang_inserttime_desc'] = 'Klistra in tid'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/zh_cn.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/zh_cn.js new file mode 100644 index 000000000..34f4bfff5 --- /dev/null +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/insertdatetime/langs/zh_cn.js @@ -0,0 +1,4 @@ +// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com) + +tinyMCELang['lang_insertdate_desc'] = '²åÈ뵱ǰÈÕÆÚ'; +tinyMCELang['lang_inserttime_desc'] = '²åÈ뵱ǰʱ¼ä'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js index 1f5caa556..a3565b157 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js @@ -1,61 +1,2 @@ -/* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('preview', 'uk,se,de,pt'); - -/** - * Returns the HTML contents of the preview control. - */ -function TinyMCE_preview_getControlHTML(control_name) { - switch (control_name) { - case "preview": - return ''; - } - - return ""; -} - -/** - * Executes the mcePreview command. - */ -function TinyMCE_preview_execCommand(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mcePreview": - var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null); - var previewWidth = tinyMCE.getParam("plugin_preview_width", "550"); - var previewHeight = tinyMCE.getParam("plugin_preview_height", "600"); - - // Use a custom preview page - if (previewPage) { - var template = new Array(); - - template['file'] = previewPage; - template['width'] = previewWidth; - template['height'] = previewHeight; - - tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "yes", content : tinyMCE.getContent(), content_css : tinyMCE.getParam("content_css")}); - } else { - var win = window.open("", "mcePreview", "menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width=" + previewWidth + ",height=" + previewHeight); - var html = ""; - - html += ''; - html += ''; - html += ''; - html += '' + tinyMCE.getLang('lang_preview_desc') + ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += tinyMCE.getContent(); - html += ''; - html += ''; - - win.document.write(html); - win.document.close(); - } - - return true; - } - - // Pass to next handler in chain - return false; -} +/* Import theme specific language pack */ + tinyMCE.importPluginLanguagePack('preview','cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn');function TinyMCE_preview_getControlHTML(control_name){switch(control_name){case "preview":return '';}return "";}function TinyMCE_preview_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mcePreview":var previewPage=tinyMCE.getParam("plugin_preview_pageurl",null);var previewWidth=tinyMCE.getParam("plugin_preview_width","550");var previewHeight=tinyMCE.getParam("plugin_preview_height","600");if(previewPage){var template=new Array();template['file']=previewPage;template['width']=previewWidth;template['height']=previewHeight;tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"yes",content:tinyMCE.getContent(),content_css:tinyMCE.getParam("content_css")});}else{var win=window.open("","mcePreview","menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width="+previewWidth+",height="+previewHeight);var html="";html+='';html+='';html+='';html+=''+tinyMCE.getLang('lang_preview_desc')+'';html+='';html+='';html+='';html+='';html+=tinyMCE.getContent();html+='';html+='';win.document.write(html);win.document.close();}return true;}return false;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/de.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/de.js index f6f80bdf5..13aa81e7a 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/de.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/de.js @@ -1,3 +1,3 @@ -// UK lang variables - -tinyMCELang['lang_preview_desc'] = 'Vorschau'; +// UK lang variables + +tinyMCELang['lang_preview_desc'] = 'Vorschau'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js index dba42752a..8509bc86c 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js @@ -1,26 +1,2 @@ -/* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('print', 'uk,se'); - -function TinyMCE_print_getControlHTML(control_name) { - switch (control_name) { - case "print": - return ''; - } - - return ""; -} - -/** - * Executes the search/replace commands. - */ -function TinyMCE_print_execCommand(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mcePrint": - tinyMCE.getInstanceById(editor_id).contentWindow.print(); - return true; - } - - // Pass to next handler in chain - return false; -} +/* Import theme specific language pack */ + tinyMCE.importPluginLanguagePack('print','en,sv,zh_cn');function TinyMCE_print_getControlHTML(control_name){switch(control_name){case "print":return '';}return "";}function TinyMCE_print_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mcePrint":tinyMCE.getInstanceById(editor_id).contentWindow.print();return true;}return false;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/print/readme.txt b/www/extras/tinymce/jscripts/tiny_mce/plugins/print/readme.txt index 28169c53e..66d15d191 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/print/readme.txt +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/print/readme.txt @@ -1,17 +1,17 @@ - Print plugin for TinyMCE ------------------------------ - -About: - This plugin adds a print button to TinyMCE. - -Installation instructions: - * Copy the print directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). - * Add plugin to TinyMCE plugin option list example: plugins : "print". - -Initialization example: - tinyMCE.init({ - theme : "advanced", - mode : "textareas", - plugins : "print", - theme_advanced_buttons1_add : "print", - }); + Print plugin for TinyMCE +----------------------------- + +About: + This plugin adds a print button to TinyMCE. + +Installation instructions: + * Copy the print directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). + * Add plugin to TinyMCE plugin option list example: plugins : "print". + +Initialization example: + tinyMCE.init({ + theme : "advanced", + mode : "textareas", + plugins : "print", + theme_advanced_buttons1_add : "print", + }); diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js index 4a7f9e7f4..2099c853a 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js @@ -1,43 +1,2 @@ /* Import theme specific language pack */ -tinyMCE.importPluginLanguagePack('save', 'uk'); - -/** - * Returns the HTML contents of the save control. - */ -function TinyMCE_save_getControlHTML(control_name) { - switch (control_name) { - case "save": - return ''; - } - return ""; -} - -/** - * Executes the save command. - */ -function TinyMCE_save_execCommand(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceSave": - var formObj = tinyMCE.selectedInstance.formElement.form; - - if (formObj) { - tinyMCE.triggerSave(); - - // Disable all UI form elements that TinyMCE created - for (var i=0; i';}return "";}function TinyMCE_save_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceSave":var formObj=tinyMCE.selectedInstance.formElement.form;if(formObj){tinyMCE.triggerSave();for(var i=0;i'; - - case "replace": - return ''; - } - - return ""; -} - -/** - * Executes the search/replace commands. - */ -function TinyMCE_searchreplace_execCommand(editor_id, element, command, user_interface, value) { - function defValue(key, default_value) { - value[key] = typeof(value[key]) == "undefined" ? default_value : value[key]; - } - - function replaceSel(str) { - // Get current selection - if (!tinyMCE.isMSIE) { - var sel = instance.contentWindow.getSelection(); - var rng = sel.getRangeAt(0); - } else { - var rng = instance.contentWindow.document.selection.createRange(); - } - - // Replace current one - if (!tinyMCE.isMSIE) { - rng.deleteContents(); - rng.insertNode(rng.createContextualFragment(str)); - rng.collapse(false); - } else { - if (rng.item) - rng.item(0).outerHTML = str; - else - rng.pasteHTML(str); - } - } - - var instance = tinyMCE.getInstanceById(editor_id); - - if (!value) - value = new Array(); - - // Setup defualt values - defValue("editor_id", editor_id); - defValue("searchstring", ""); - defValue("replacestring", null); - defValue("replacemode", "none"); - defValue("casesensitive", false); - defValue("backwards", false); - defValue("wrap", false); - defValue("wholeword", false); - - // Handle commands - switch (command) { - case "mceResetSearch": - tinyMCE.lastSearchRng = null; - return true; - - case "mceSearch": - if (user_interface) { - // Open search dialog - var template = new Array(); - - if (value['replacestring'] != null) { - template['file'] = '../../plugins/searchreplace/replace.htm'; // Relative to theme - template['width'] = 310; - template['height'] = 180; - } else { - template['file'] = '../../plugins/searchreplace/search.htm'; // Relative to theme - template['width'] = 280; - template['height'] = 180; - } - - tinyMCE.openWindow(template, value); - } else { - var win = tinyMCE.getInstanceById(editor_id).contentWindow; - var doc = tinyMCE.getInstanceById(editor_id).contentWindow.document; - - // Handle replace current - if (value['replacemode'] == "current") { - replaceSel(value['replacestring']); - - // Search next one - value['replacemode'] = "none"; - tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); - - return true; - } - - if (tinyMCE.isMSIE) { - var rng = tinyMCE.lastSearchRng ? tinyMCE.lastSearchRng : doc.selection.createRange(); - var flags = 0; - - if (value['wholeword']) - flags = flags | 2; - - if (value['casesensitive']) - flags = flags | 4; - - // Handle replace all mode - if (value['replacemode'] == "all") { - while (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { - rng.scrollIntoView(); - rng.select(); - rng.collapse(false); - replaceSel(value['replacestring']); - } - - alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); - return true; - } - - if (rng.findText(value['string'], value['backwards'] ? -1 : 1, flags)) { - rng.scrollIntoView(); - rng.select(); - rng.collapse(value['backwards']); - tinyMCE.lastSearchRng = rng; - } else - alert(tinyMCE.getLang('lang_searchreplace_notfound')); - } else { - if (value['replacemode'] == "all") { - while (win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) - replaceSel(value['replacestring']); - - alert(tinyMCE.getLang('lang_searchreplace_allreplaced')); - return true; - } - - if (!win.find(value['string'], value['casesensitive'], value['backwards'], value['wrap'], value['wholeword'], false, false)) - alert(tinyMCE.getLang('lang_searchreplace_notfound')); - } - } - return true; - - case "mceSearchReplace": - value['replacestring'] = ""; - - tinyMCE.execInstanceCommand(editor_id, 'mceSearch', user_interface, value, false); - return true; - } - - // Pass to next handler in chain - return false; -} - -function TinyMCE_searchreplace_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { - return true; -} +/* Import theme specific language pack */ + tinyMCE.importPluginLanguagePack('searchreplace','en,sv,zh_cn');function TinyMCE_searchreplace_getControlHTML(control_name){switch(control_name){case "search":return '';case "replace":return '';}return "";}function TinyMCE_searchreplace_execCommand(editor_id,element,command,user_interface,value){function defValue(key,default_value){value[key]=typeof(value[key])=="undefined"?default_value:value[key];}function replaceSel(search_str,str){if(!tinyMCE.isMSIE){var sel=instance.contentWindow.getSelection();var rng=sel.getRangeAt(0);}else{var rng=instance.contentWindow.document.selection.createRange();}if(!tinyMCE.isMSIE){var doc=instance.contentWindow.document;if(str.indexOf(search_str)==-1){rng.deleteContents();rng.insertNode(rng.createContextualFragment(str));rng.collapse(false);}else{doc.execCommand("insertimage",false,"#mce_temp_url#");var elm=tinyMCE.getElementByAttributeValue(doc.body,"img","src","#mce_temp_url#");elm.parentNode.replaceChild(doc.createTextNode(str),elm);}}else{if(rng.item)rng.item(0).outerHTML=str;else rng.pasteHTML(str);}}var instance=tinyMCE.getInstanceById(editor_id);if(!value)value=new Array();defValue("editor_id",editor_id);defValue("searchstring","");defValue("replacestring",null);defValue("replacemode","none");defValue("casesensitive",false);defValue("backwards",false);defValue("wrap",false);defValue("wholeword",false);switch(command){case "mceResetSearch":tinyMCE.lastSearchRng=null;return true;case "mceSearch":if(user_interface){var template=new Array();if(value['replacestring']!=null){template['file']='../../plugins/searchreplace/replace.htm';template['width']=310;template['height']=180;}else{template['file']='../../plugins/searchreplace/search.htm';template['width']=280;template['height']=180;}tinyMCE.openWindow(template,value);}else{var win=tinyMCE.getInstanceById(editor_id).contentWindow;var doc=tinyMCE.getInstanceById(editor_id).contentWindow.document;if(value['replacemode']=="current"){replaceSel(value['string'],value['replacestring']);value['replacemode']="none";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true;}if(tinyMCE.isMSIE){var rng=tinyMCE.lastSearchRng?tinyMCE.lastSearchRng:doc.selection.createRange();var flags=0;if(value['wholeword'])flags=flags|2;if(value['casesensitive'])flags=flags|4;if(value['replacemode']=="all"){while(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(false);replaceSel(value['string'],value['replacestring']);}alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true;}if(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(value['backwards']);tinyMCE.lastSearchRng=rng;}else alert(tinyMCE.getLang('lang_searchreplace_notfound'));}else{if(value['replacemode']=="all"){while(win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))replaceSel(value['string'],value['replacestring']);alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true;}if(!win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))alert(tinyMCE.getLang('lang_searchreplace_notfound'));}}return true;case "mceSearchReplace":value['replacestring']="";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true;}return false;}function TinyMCE_searchreplace_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){return true;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/searchreplace/readme.txt b/www/extras/tinymce/jscripts/tiny_mce/plugins/searchreplace/readme.txt index 228387b4e..ca543bf18 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/searchreplace/readme.txt +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/searchreplace/readme.txt @@ -1,18 +1,18 @@ - searchreplace plugin for TinyMCE ------------------------------ - -About: - This plugin adds search/replace dialogs to TinyMCE. - -Installation instructions: - * Copy the searchreplace directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). - * Add plugin to TinyMCE plugin option list example: plugins : "searchreplace". - * Add buttons "search,replace" to the button list. - -Initialization example: - tinyMCE.init({ - theme : "advanced", - mode : "textareas", - plugins : "searchreplace", - theme_advanced_buttons1_add : "search,replace", - }); + searchreplace plugin for TinyMCE +----------------------------- + +About: + This plugin adds search/replace dialogs to TinyMCE. + +Installation instructions: + * Copy the searchreplace directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). + * Add plugin to TinyMCE plugin option list example: plugins : "searchreplace". + * Add buttons "search,replace" to the button list. + +Initialization example: + tinyMCE.init({ + theme : "advanced", + mode : "textareas", + plugins : "searchreplace", + theme_advanced_buttons1_add : "search,replace", + }); diff --git a/www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js b/www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js index 3c26e33be..9e4e5b10f 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js +++ b/www/extras/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js @@ -1,38 +1,7 @@ /* Import theme specific language pack */ -//tinyMCE.importPluginLanguagePack('zoom', 'uk,se,pt'); - -/** - * Returns the HTML contents of the zoom control. - */ -function TinyMCE_zoom_getControlHTML(control_name) { - if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0) - return ""; - - switch (control_name) { - case "zoom": - return '\ \ \ \ \ - '; - } - - return ""; -} - -/** - * Executes the mceZoom command. - */ -function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, value) { - // Handle commands - switch (command) { - case "mceZoom": - tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value; - tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value; - return true; - } - - // Pass to next handler in chain - return false; -} + ';}return "";}function TinyMCE_zoom_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceZoom":tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom=value;tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom=value;return true;}return false;} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm index 8cd213c6f..c5e583b83 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/charmap.htm @@ -1,382 +1,382 @@ - - - - -{$lang_theme_charmap_title} - - - - - - - - - - - - - - - - -
{$lang_theme_charmap_title}
- - - - - - - - - -
 
 
-
- - - - - - - - - - - - - - - - -
HTML-Code
 
 
NUM-Code
 
-
- - - + + + + +{$lang_theme_charmap_title} + + + + + + + + + + + + + + + + +
{$lang_theme_charmap_title}
+ + + + + + + + + +
 
 
+
+ + + + + + + + + + + + + + + + +
HTML-Code
 
 
NUM-Code
 
+
+ + + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm index 55a8acdb3..c9e0cb5bc 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm @@ -1,272 +1,272 @@ - - -{$lang_theme_colorpicker_title} - - - - -
- -
- - + + +{$lang_theme_colorpicker_title} + + + + +
+ +
+ + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/es/common_buttons.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/es/common_buttons.htm index ed20f7993..01e6454e7 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/es/common_buttons.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/es/common_buttons.htm @@ -100,31 +100,31 @@ Pequeña descripción de cada botoón. + Inserta una nueva tabla de 2x2. - + Añade una fila encima. - + Añade una fila debajo. - + Elimina una fila. - + Añade una columna antes de la actual . - + Añade una columna después de la actual. - + Elimina la columna actual. diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/fi/common_buttons.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/fi/common_buttons.htm index e11134aeb..540b70673 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/fi/common_buttons.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/fi/common_buttons.htm @@ -100,31 +100,31 @@ Alla on lyhyt selostus kaikista toimintonapeista. + Lisää tualu. Lue lisää tästä toiminnosta lisää taulu -osiosta. - + Lisää rivi valitun rivin edelle. - + Lisää rivi valitun rivin jälkeen. - + Poista valittu rivi. - + Lisää saraka valitun sarakkeen jälkeen. - + Lisää sarake valitun sarakkeen edelle. - + Poistaa valitun sarakkeen. diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/it/common_buttons.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/it/common_buttons.htm index 97321e7cd..053661941 100755 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/it/common_buttons.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/it/common_buttons.htm @@ -120,31 +120,31 @@ programma office
Apre l'editor del sorgente HTML. - + Inserisce una nuova tabella 2x2 alla posizione corrente. - + Aggiunge una riga sopra quella corrente. - + Aggiunge una roga sotto quella corrente. - + Rimuove la riga corrente. - + Aggiunge una colonna prima di quella corrente. - + Aggiunge una colonna dopo quella corrente. - + Rimuove la colonna corrente. diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/nl/common_buttons.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/nl/common_buttons.htm index f32fb27eb..b77bdeb03 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/nl/common_buttons.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/nl/common_buttons.htm @@ -124,31 +124,31 @@ knoppen een beknopte beschrijving.
- + - + - + - + - + - + - + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/pl/common_buttons.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/pl/common_buttons.htm index 6f65148de..bd80f20b9 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/pl/common_buttons.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/docs/pl/common_buttons.htm @@ -109,31 +109,31 @@ Poni - + - + - + - + - + - + - + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_popup.css b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_popup.css index 301c6fcc6..6d2b69fdd 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_popup.css +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_popup.css @@ -90,3 +90,28 @@ input.checkbox { background-color: transparent; vertical-align: middle; } + +.mceButtonNormal, .mceButtonOver, .mceButtonDown, .mceSeparator, .mceButtonDisabled, .mceButtonSelected { + margin-left: 1px; +} + +.mceButtonNormal { + border-top: 1px solid; + border-left: 1px solid; + border-bottom: 1px solid; + border-right: 1px solid; + border-color: #F0F0EE; + cursor: arrow; +} + +.mceButtonOver { + border: 1px solid #0A246A; + cursor: arrow; + background-color: #B6BDD2; +} + +.mceButtonDown { + cursor: arrow; + border: 1px solid #0A246A; + background-color: #8592B5; +} diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js index 145bfed82..fc3d87747 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js @@ -1,5 +1,5 @@ /* Import theme specific language pack */ - tinyMCE.importThemeLanguagePack();var TinyMCE_advanced_autoImportCSSClasses=true;var TinyMCE_advanced_foreColor="#000000";var TinyMCE_advanced_anchorName="";var TinyMCE_advanced_buttons=[['bold','{$lang_bold_img}','{$lang_bold_desc}','Bold'],['italic','{$lang_italic_img}','{$lang_italic_desc}','Italic'],['underline','{$lang_underline_img}','{$lang_underline_desc}','Underline'],['strikethrough','strikethrough.gif','{$lang_striketrough_desc}','Strikethrough'],['justifyleft','left.gif','{$lang_justifyleft_desc}','JustifyLeft'],['justifycenter','center.gif','{$lang_justifycenter_desc}','JustifyCenter'],['justifyright','right.gif','{$lang_justifyright_desc}','JustifyRight'],['justifyfull','full.gif','{$lang_justifyfull_desc}','JustifyFull'],['bullist','bullist.gif','{$lang_bullist_desc}','InsertUnorderedList'],['numlist','numlist.gif','{$lang_numlist_desc}','InsertOrderedList'],['outdent','outdent.gif','{$lang_outdent_desc}','Outdent'],['indent','indent.gif','{$lang_indent_desc}','Indent'],['cut','cut.gif','{$lang_cut_desc}','Cut'],['copy','copy.gif','{$lang_copy_desc}','Copy'],['paste','paste.gif','{$lang_paste_desc}','Paste'],['undo','undo.gif','{$lang_undo_desc}','Undo'],['redo','redo.gif','{$lang_redo_desc}','Redo'],['link','link.gif','{$lang_link_desc}','mceLink',true],['unlink','unlink.gif','{$lang_unlink_desc}','unlink'],['image','image.gif','{$lang_image_desc}','mceImage',true],['cleanup','cleanup.gif','{$lang_cleanup_desc}','mceCleanup'],['help','help.gif','{$lang_help_desc}','mceHelp'],['code','code.gif','{$lang_theme_code_desc}','mceCodeEditor'],['table','table.gif','{$lang_theme_table_desc}','mceInsertTable',true],['row_before','table_insert_row_before.gif','{$lang_theme_table_insert_row_before_desc}','mceTableInsertRowBefore'],['row_after','table_insert_row_after.gif','{$lang_theme_table_insert_row_after_desc}','mceTableInsertRowAfter'],['delete_row','table_delete_row.gif','{$lang_theme_table_delete_row_desc}','mceTableDeleteRow'],['col_before','table_insert_col_before.gif','{$lang_theme_table_insert_col_before_desc}','mceTableInsertColBefore'],['col_after','table_insert_col_after.gif','{$lang_theme_table_insert_col_after_desc}','mceTableInsertColAfter'],['delete_col','table_delete_col.gif','{$lang_theme_table_delete_col_desc}','mceTableDeleteCol'],['hr','hr.gif','{$lang_theme_hr_desc}','inserthorizontalrule'],['removeformat','removeformat.gif','{$lang_theme_removeformat_desc}','removeformat'],['sub','sub.gif','{$lang_theme_sub_desc}','subscript'],['sup','sup.gif','{$lang_theme_sup_desc}','superscript'],['forecolor','forecolor.gif','{$lang_theme_forecolor_desc}','mceForeColor',true],['backcolor','backcolor.gif','{$lang_theme_backcolor_desc}','mceBackColor',true],['charmap','charmap.gif','{$lang_theme_charmap_desc}','mceCharMap'],['visualaid','visualaid.gif','{$lang_theme_visualaid_desc}','mceToggleVisualAid'],['anchor','anchor.gif','{$lang_theme_anchor_desc}','mceInsertAnchor']];function TinyMCE_advanced_getControlHTML(button_name){var buttonTileMap=new Array('anchor.gif','backcolor.gif','bullist.gif','center.gif','charmap.gif','cleanup.gif','code.gif','copy.gif','custom_1.gif','cut.gif','forecolor.gif','full.gif','help.gif','hr.gif','image.gif','indent.gif','left.gif','link.gif','numlist.gif','outdent.gif','paste.gif','redo.gif','removeformat.gif','right.gif','strikethrough.gif','sub.gif','sup.gif','table.gif','table_delete_col.gif','table_delete_row.gif','table_insert_col_after.gif','table_insert_col_before.gif','table_insert_row_after.gif','table_insert_row_before.gif','undo.gif','unlink.gif','visualaid.gif');for(var i=0;i';}return '';}}switch(button_name){case "formatselect":var html='';return html;case "styleselect":return '';case "fontselect":return '';var formats=tinyMCE.getParam("theme_advanced_blockformats","p,address,pre,h1,h2,h3,h4,h5,h6",true).split(',');var lookup=[['p','{$lang_theme_paragraph}'],['address','{$lang_theme_address}'],['pre','{$lang_theme_pre}'],['h1','{$lang_theme_h1}'],['h2','{$lang_theme_h2}'],['h3','{$lang_theme_h3}'],['h4','{$lang_theme_h4}'],['h5','{$lang_theme_h5}'],['h6','{$lang_theme_h6}']];for(var i=0;i'+lookup[x][1]+'';}}html+='';return html;case "styleselect":return '';case "fontselect":return '';case "|":case "separator":return '';case "spacer":return '';case "rowseparator":return '
';}return "";}function TinyMCE_advanced_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceForeColor":var template=new Array();var inputColor=TinyMCE_advanced_foreColor;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=210;template['height']=200;tinyMCE.openWindow(template,{editor_id:editor_id,command:"forecolor",input_color:inputColor});return true;case "mceBackColor":var template=new Array();var inputColor=TinyMCE_advanced_foreColor;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=210;template['height']=200;tinyMCE.openWindow(template,{editor_id:editor_id,command:"HiliteColor",input_color:inputColor});return true;case "mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=tinyMCE.getParam("theme_advanced_source_editor_width",500);template['height']=tinyMCE.getParam("theme_advanced_source_editor_height",400);tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no"});return true;case "mceCharMap":var template=new Array();template['file']='charmap.htm';template['width']=550;template['height']=280;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case "mceInsertAnchor":var template=new Array();template['file']='anchor.htm';template['width']=320;template['height']=130;tinyMCE.openWindow(template,{editor_id:editor_id,name:TinyMCE_advanced_anchorName,action:(TinyMCE_advanced_anchorName==""?"insert":"update")});return true;}return false;}function TinyMCE_advanced_getEditorTemplate(settings){function removeFromArray(in_array,remove_array){var outArray=new Array();for(var i=0;i ';var buttonNamesRow1=tinyMCE.getParam("theme_advanced_buttons1","bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect",true,',');buttonNamesRow1=removeFromArray(buttonNamesRow1,tinyMCE.getParam("theme_advanced_disable","",true,','));buttonNamesRow1=addToArray(buttonNamesRow1,tinyMCE.getParam("theme_advanced_buttons1_add","",true,','));buttonNamesRow1=addToArray(tinyMCE.getParam("theme_advanced_buttons1_add_before","",true,','),buttonNamesRow1);for(var i=0;i0)toolbarHTML+="
";var buttonNamesRow2=tinyMCE.getParam("theme_advanced_buttons2","bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code",true,',');buttonNamesRow2=removeFromArray(buttonNamesRow2,tinyMCE.getParam("theme_advanced_disable","",true,','));buttonNamesRow2=addToArray(buttonNamesRow2,tinyMCE.getParam("theme_advanced_buttons2_add","",true,','));buttonNamesRow2=addToArray(tinyMCE.getParam("theme_advanced_buttons2_add_before","",true,','),buttonNamesRow2);for(var i=0;i0)toolbarHTML+="
";var buttonNamesRow3=tinyMCE.getParam("theme_advanced_buttons3","table,separator,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,separator,hr,removeformat,visualaid,separator,sub,sup,separator,charmap",true,',');buttonNamesRow3=removeFromArray(buttonNamesRow3,tinyMCE.getParam("theme_advanced_disable","",true,','));buttonNamesRow3=addToArray(buttonNamesRow3,tinyMCE.getParam("theme_advanced_buttons3_add","",true,','));buttonNamesRow3=addToArray(tinyMCE.getParam("theme_advanced_buttons3_add_before","",true,','),buttonNamesRow3);for(var i=0;i';if(toolbarLocation=="top")template['html']+='
';if(pathLocation=="top")template['html']+='';template['html']+='';if(toolbarLocation=="bottom")template['html']+='';if(pathLocation=="bottom")template['html']+='';template['html']+='
Voegt een nieuwe tabel met 2 rijen en kolommen in op de huidige positie in te tekst.
Voegt een nieuwe rij toe aan de tabel boven de huidige.
Voegt een nieuwe rij toe aan de tabel onder de huidige.
Verwijdert de huidige rij uit de tabel.
Voegt een nieuwe kolom toe aan de tabel voor de huidige.
Voegt een nieuwe kolom toe aan de tabel achter de huidige.
Verwijdert de huidige kolom uit de tabel.
Otwarcie edytora kodu HTML.
Wstawienie nowej tabeli 2x2 w bie¿±cej pozycji.
Wstawienie wiersza ponad aktualnie zaznaczonym.
Wstawienie wiersz poni¿ej aktualnie zaznaczonego.
Usuniêcie wiersza.
Wstawienie kolumny przed aktualnie zaznaczon±.
Wstawienie kolumny za aktualnie zaznaczon±.
Usuniêcie kolumny.
'+toolbarHTML+'
'+pathHTML+'
\ - \ -
'+toolbarHTML+'
'+pathHTML+'
';var styleSelectHTML='';if(settings['theme_advanced_styles']){var stylesAr=settings['theme_advanced_styles'].split(';');for(var i=0;i'+key+'';}TinyMCE_advanced_autoImportCSSClasses=false;}template['html']=tinyMCE.replaceVar(template['html'],'style_select_options',styleSelectHTML);template['delta_width']=0;template['delta_height']=-40;return template;}function TinyMCE_advanced_getInsertLinkTemplate(){var template=new Array();template['file']='link.htm';template['width']=320;template['height']=170;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;}function TinyMCE_advanced_getInsertImageTemplate(){var template=new Array();template['file']='image.htm?src={$src}';template['width']=340;template['height']=280;template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);return template;}function TinyMCE_advanced_getInsertTableTemplate(settings){var template=new Array();template['file']='table.htm';template['width']=340;template['height']=220;template['width']+=tinyMCE.getLang('lang_insert_table_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_table_delta_height',0);return template;}function TinyMCE_advanced_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){function selectByValue(select_elm,value){if(select_elm){for(var i=0;i=0;i--){var nodeName=path[i].nodeName.toLowerCase();var nodeData="";if(nodeName=="b")nodeName="strong";if(nodeName=="i")nodeName="em";if(getAttrib(path[i],'id')!="")nodeData+="id: "+path[i].getAttribute('id')+" ";if(getAttrib(path[i],'class')!="")nodeData+="class: "+path[i].getAttribute('class')+" ";if(getAttrib(path[i],'className')!="")nodeData+="class: "+path[i].getAttribute('className')+" ";if(getAttrib(path[i],'src')!="")nodeData+="src: "+path[i].getAttribute('src')+" ";if(getAttrib(path[i],'href')!="")nodeData+="href: "+path[i].getAttribute('href')+" ";if(nodeName=="img"&&getAttrib(path[i],'name')=="mce_plugin_flash"){nodeName="flash";nodeData="";}if(tinyMCE.isMSIE)html+=''+nodeName+'';else html+=''+nodeName+'';if(i>0)html+=" » ";}pathElm.innerHTML=html+" ";}var colorElm=tinyMCE.getParentElement(node,"font","color");if(colorElm)TinyMCE_advanced_foreColor=""+colorElm.color.toUpperCase();tinyMCE.switchClassSticky(editor_id+'_justifyleft','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifyright','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifycenter','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifyfull','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_sub','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_sup','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_table','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_anchor','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_link','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_unlink','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_row_before','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_row_after','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_delete_row','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_col_before','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_col_after','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_delete_col','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_outdent','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_image','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_hr','mceButtonNormal');var anchorName=tinyMCE.getParentElement(node,"a","name");TinyMCE_advanced_anchorName="";if(anchorName){TinyMCE_advanced_anchorName=anchorName.getAttribute("name");tinyMCE.switchClassSticky(editor_id+'_anchor','mceButtonSelected');}var anchorLink=tinyMCE.getParentElement(node,"a","href");if(anchorLink||any_selection){tinyMCE.switchClassSticky(editor_id+'_link',anchorLink?'mceButtonSelected':'mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_unlink',anchorLink?'mceButtonSelected':'mceButtonNormal',false);}tinyMCE.switchClassSticky(editor_id+'_visualaid',visual_aid?'mceButtonSelected':'mceButtonNormal',false);if(undo_levels!=-1){tinyMCE.switchClassSticky(editor_id+'_undo','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_redo','mceButtonDisabled',true);}if(tinyMCE.getParentElement(node,"td")){tinyMCE.switchClassSticky(editor_id+'_row_before','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_row_after','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_delete_row','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_col_before','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_col_after','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_delete_col','mceButtonNormal',false);}if(tinyMCE.getParentElement(node,"table"))tinyMCE.switchClassSticky(editor_id+'_table','mceButtonSelected');if(tinyMCE.getParentElement(node,"li,blockquote"))tinyMCE.switchClassSticky(editor_id+'_outdent','mceButtonNormal',false);if(undo_index!=-1&&(undo_index0))tinyMCE.switchClassSticky(editor_id+'_redo','mceButtonNormal',false);if(undo_index!=-1&&(undo_index>0&&undo_levels>0))tinyMCE.switchClassSticky(editor_id+'_undo','mceButtonNormal',false);var selectElm=document.getElementById(editor_id+"_styleSelect");if(selectElm){TinyMCE_advanced_setupCSSClasses(editor_id);classNode=node;breakOut=false;var index=0;do{if(classNode&&classNode.className){for(var i=0;i");}else selectByValue(selectElm,"

");}var selectElm=document.getElementById(editor_id+"_fontNameSelect");if(selectElm){var elm=tinyMCE.getParentElement(node,"font","face");if(elm)selectByValue(selectElm,elm.getAttribute("face"));else selectByValue(selectElm,"");}var selectElm=document.getElementById(editor_id+"_fontSizeSelect");if(selectElm){var elm=tinyMCE.getParentElement(node,"font","size");if(elm&&getAttrib(elm,"size")!="")selectByValue(selectElm,elm.getAttribute("size"));else selectByValue(selectElm,"0");}alignNode=node;breakOut=false;do{if(!alignNode.getAttribute||!alignNode.getAttribute('align'))continue;switch(alignNode.getAttribute('align').toLowerCase()){case "left":tinyMCE.switchClassSticky(editor_id+'_justifyleft','mceButtonSelected');breakOut=true;break;case "right":tinyMCE.switchClassSticky(editor_id+'_justifyright','mceButtonSelected');breakOut=true;break;case "middle":case "center":tinyMCE.switchClassSticky(editor_id+'_justifycenter','mceButtonSelected');breakOut=true;break;case "justify":tinyMCE.switchClassSticky(editor_id+'_justifyfull','mceButtonSelected');breakOut=true;break;}}while(!breakOut&&(alignNode=alignNode.parentNode));do{switch(node.nodeName.toLowerCase()){case "b":case "strong":tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonSelected');break;case "i":case "em":tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonSelected');break;case "u":tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonSelected');break;case "strike":tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonSelected');break;case "ul":tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonSelected');break;case "ol":tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonSelected');break;case "sub":tinyMCE.switchClassSticky(editor_id+'_sub','mceButtonSelected');break;case "sup":tinyMCE.switchClassSticky(editor_id+'_sup','mceButtonSelected');break;case "hr":tinyMCE.switchClassSticky(editor_id+'_hr','mceButtonSelected');break;case "img":if(getAttrib(node,'name').indexOf('mce_')!=0)tinyMCE.switchClassSticky(editor_id+'_image','mceButtonSelected');break;}}while((node=node.parentNode));}function TinyMCE_advanced_setupCSSClasses(editor_id){if(!TinyMCE_advanced_autoImportCSSClasses)return;var selectElm=document.getElementById(editor_id+'_styleSelect');if(selectElm&&selectElm.getAttribute('cssImported')!='true'){var csses=tinyMCE.getCSSClasses(editor_id);if(csses&&selectElm){for(var i=0;i0)selectElm.setAttribute('cssImported','true');}} \ No newline at end of file + ';case "|":case "separator":return '';case "spacer":return '';case "rowseparator":return '
';}return "";}function TinyMCE_advanced_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceForeColor":var template=new Array();var inputColor=TinyMCE_advanced_foreColor;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=210;template['height']=200;tinyMCE.openWindow(template,{editor_id:editor_id,command:"forecolor",input_color:inputColor});return true;case "mceBackColor":var template=new Array();var inputColor=TinyMCE_advanced_foreColor;if(!inputColor)inputColor="#000000";template['file']='color_picker.htm';template['width']=210;template['height']=200;tinyMCE.openWindow(template,{editor_id:editor_id,command:"HiliteColor",input_color:inputColor});return true;case "mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=tinyMCE.getParam("theme_advanced_source_editor_width",500);template['height']=tinyMCE.getParam("theme_advanced_source_editor_height",400);tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no"});return true;case "mceCharMap":var template=new Array();template['file']='charmap.htm';template['width']=550;template['height']=280;tinyMCE.openWindow(template,{editor_id:editor_id});return true;case "mceInsertAnchor":var template=new Array();template['file']='anchor.htm';template['width']=320;template['height']=130;tinyMCE.openWindow(template,{editor_id:editor_id,name:TinyMCE_advanced_anchorName,action:(TinyMCE_advanced_anchorName==""?"insert":"update")});return true;}return false;}function TinyMCE_advanced_getEditorTemplate(settings){function removeFromArray(in_array,remove_array){var outArray=new Array();for(var i=0;i0){toolbarHTML+="
";deltaHeight-=23;}var buttonNamesRow2=tinyMCE.getParam("theme_advanced_buttons2","bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code",true,',');buttonNamesRow2=removeFromArray(buttonNamesRow2,tinyMCE.getParam("theme_advanced_disable","",true,','));buttonNamesRow2=addToArray(buttonNamesRow2,tinyMCE.getParam("theme_advanced_buttons2_add","",true,','));buttonNamesRow2=addToArray(tinyMCE.getParam("theme_advanced_buttons2_add_before","",true,','),buttonNamesRow2);for(var i=0;i0){toolbarHTML+="
";deltaHeight-=23;}var buttonNamesRow3=tinyMCE.getParam("theme_advanced_buttons3","hr,removeformat,visualaid,separator,sub,sup,separator,charmap",true,',');buttonNamesRow3=removeFromArray(buttonNamesRow3,tinyMCE.getParam("theme_advanced_disable","",true,','));buttonNamesRow3=addToArray(buttonNamesRow3,tinyMCE.getParam("theme_advanced_buttons3_add","",true,','));buttonNamesRow3=addToArray(tinyMCE.getParam("theme_advanced_buttons3_add_before","",true,','),buttonNamesRow3);for(var i=0;i0)deltaHeight-=20;template['html']='';if(toolbarLocation=="top")template['html']+='';if(pathLocation=="top"){template['html']+='';deltaHeight-=23;}template['html']+='';if(toolbarLocation=="bottom")template['html']+='';if(pathLocation=="bottom"){template['html']+='';deltaHeight-=23;}template['html']+='
'+toolbarHTML+'
'+pathHTML+'
\ + \ +
'+toolbarHTML+'
'+pathHTML+'
';break;case "RowLayout":template['html']='';var containers=tinyMCE.getParam("theme_advanced_containers","",true,",");var defaultContainerCSS=tinyMCE.getParam("theme_advanced_containers_default_class","container");var defaultContainerAlign=tinyMCE.getParam("theme_advanced_containers_default_align","center");for(var i=0;i';}else if(containers[i]=="mceElementpath"){var pathClass="mcePath";if(i==containers.length-1)pathClass="mcePathBottom";else if(i==0)pathClass="mcePathTop";else deltaHeight-=2;template['html']+='';deltaHeight-=22;}else{var curContainer=tinyMCE.getParam("theme_advanced_container_"+containers[i],"",true,',');var curContainerHTML="";var curAlign=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_align",defaultContainerAlign);var curCSS=tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_class",defaultContainerCSS);for(var j=0;j0){curContainerHTML+="
";deltaHeight-=23;}template['html']+='
';}}template['html']+='
\ + \ +
'+pathHTML+'
'+curContainerHTML+'
';break;case "BorderLayout":break;case "CustomLayout":var customLayout=tinyMCE.getParam("theme_advanced_custom_layout","");if(customLayout!=""&&eval("typeof("+customLayout+")")!="undefined")template=eval(customLayout+"(template);");break;default:alert('UNDEFINED LAYOUT MANAGER! PLEASE CHECK YOUR TINYMCE CONFIG!');break;}var styleSelectHTML='';if(settings['theme_advanced_styles']){var stylesAr=settings['theme_advanced_styles'].split(';');for(var i=0;i'+key+'';}TinyMCE_advanced_autoImportCSSClasses=false;}template['html']=tinyMCE.replaceVar(template['html'],'style_select_options',styleSelectHTML);template['delta_width']=0;template['delta_height']=deltaHeight;return template;}function TinyMCE_advanced_getInsertLinkTemplate(){var template=new Array();template['file']='link.htm';template['width']=320;template['height']=170;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;}function TinyMCE_advanced_getInsertImageTemplate(){var template=new Array();template['file']='image.htm?src={$src}';template['width']=340;template['height']=280;template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);return template;}function TinyMCE_advanced_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){function selectByValue(select_elm,value){if(select_elm){for(var i=0;i=0;i--){var nodeName=path[i].nodeName.toLowerCase();var nodeData="";if(nodeName=="b")nodeName="strong";if(nodeName=="i")nodeName="em";if(getAttrib(path[i],'id')!="")nodeData+="id: "+path[i].getAttribute('id')+" ";if(getAttrib(path[i],'class')!="")nodeData+="class: "+path[i].getAttribute('class')+" ";if(getAttrib(path[i],'className')!="")nodeData+="class: "+path[i].getAttribute('className')+" ";if(getAttrib(path[i],'src')!="")nodeData+="src: "+path[i].getAttribute('src')+" ";if(getAttrib(path[i],'href')!="")nodeData+="href: "+path[i].getAttribute('href')+" ";if(nodeName=="img"&&getAttrib(path[i],'name')=="mce_plugin_flash"){nodeName="flash";nodeData="";}if(tinyMCE.isMSIE)html+=''+nodeName+'';else html+=''+nodeName+'';if(i>0)html+=" » ";}pathElm.innerHTML=html+" ";}var colorElm=tinyMCE.getParentElement(node,"font","color");if(colorElm)TinyMCE_advanced_foreColor=""+colorElm.color.toUpperCase();tinyMCE.switchClassSticky(editor_id+'_justifyleft','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifyright','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifycenter','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_justifyfull','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_sub','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_sup','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_anchor','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_link','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_unlink','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_outdent','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_image','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_hr','mceButtonNormal');var anchorName=tinyMCE.getParentElement(node,"a","name");TinyMCE_advanced_anchorName="";if(anchorName){TinyMCE_advanced_anchorName=anchorName.getAttribute("name");tinyMCE.switchClassSticky(editor_id+'_anchor','mceButtonSelected');}var anchorLink=tinyMCE.getParentElement(node,"a","href");if(anchorLink||any_selection){tinyMCE.switchClassSticky(editor_id+'_link',anchorLink?'mceButtonSelected':'mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_unlink',anchorLink?'mceButtonSelected':'mceButtonNormal',false);}tinyMCE.switchClassSticky(editor_id+'_visualaid',visual_aid?'mceButtonSelected':'mceButtonNormal',false);if(undo_levels!=-1){tinyMCE.switchClassSticky(editor_id+'_undo','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_redo','mceButtonDisabled',true);}if(tinyMCE.getParentElement(node,"li,blockquote"))tinyMCE.switchClassSticky(editor_id+'_outdent','mceButtonNormal',false);if(undo_index!=-1&&(undo_index0))tinyMCE.switchClassSticky(editor_id+'_redo','mceButtonNormal',false);if(undo_index!=-1&&(undo_index>0&&undo_levels>0))tinyMCE.switchClassSticky(editor_id+'_undo','mceButtonNormal',false);var selectElm=document.getElementById(editor_id+"_styleSelect");if(selectElm){TinyMCE_advanced_setupCSSClasses(editor_id);classNode=node;breakOut=false;var index=0;do{if(classNode&&classNode.className){for(var i=0;i");}else selectByValue(selectElm,"

");}var selectElm=document.getElementById(editor_id+"_fontNameSelect");if(selectElm){var elm=tinyMCE.getParentElement(node,"font","face");if(elm)selectByValue(selectElm,elm.getAttribute("face"));else selectByValue(selectElm,"");}var selectElm=document.getElementById(editor_id+"_fontSizeSelect");if(selectElm){var elm=tinyMCE.getParentElement(node,"font","size");if(elm&&getAttrib(elm,"size")!="")selectByValue(selectElm,elm.getAttribute("size"));else selectByValue(selectElm,"0");}alignNode=node;breakOut=false;do{if(!alignNode.getAttribute||!alignNode.getAttribute('align'))continue;switch(alignNode.getAttribute('align').toLowerCase()){case "left":tinyMCE.switchClassSticky(editor_id+'_justifyleft','mceButtonSelected');breakOut=true;break;case "right":tinyMCE.switchClassSticky(editor_id+'_justifyright','mceButtonSelected');breakOut=true;break;case "middle":case "center":tinyMCE.switchClassSticky(editor_id+'_justifycenter','mceButtonSelected');breakOut=true;break;case "justify":tinyMCE.switchClassSticky(editor_id+'_justifyfull','mceButtonSelected');breakOut=true;break;}}while(!breakOut&&(alignNode=alignNode.parentNode));do{switch(node.nodeName.toLowerCase()){case "b":case "strong":tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonSelected');break;case "i":case "em":tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonSelected');break;case "u":tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonSelected');break;case "strike":tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonSelected');break;case "ul":tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonSelected');break;case "ol":tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonSelected');break;case "sub":tinyMCE.switchClassSticky(editor_id+'_sub','mceButtonSelected');break;case "sup":tinyMCE.switchClassSticky(editor_id+'_sup','mceButtonSelected');break;case "hr":tinyMCE.switchClassSticky(editor_id+'_hr','mceButtonSelected');break;case "img":if(getAttrib(node,'name').indexOf('mce_')!=0)tinyMCE.switchClassSticky(editor_id+'_image','mceButtonSelected');break;}}while((node=node.parentNode));}function TinyMCE_advanced_setupCSSClasses(editor_id){if(!TinyMCE_advanced_autoImportCSSClasses)return;var selectElm=document.getElementById(editor_id+'_styleSelect');if(selectElm&&selectElm.getAttribute('cssImported')!='true'){var csses=tinyMCE.getCSSClasses(editor_id);if(csses&&selectElm){for(var i=0;i0)selectElm.setAttribute('cssImported','true');}} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js index 8f0a7bcc3..a41adced6 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js @@ -30,13 +30,6 @@ var TinyMCE_advanced_buttons = [ ['cleanup', 'cleanup.gif', '{$lang_cleanup_desc}', 'mceCleanup'], ['help', 'help.gif', '{$lang_help_desc}', 'mceHelp'], ['code', 'code.gif', '{$lang_theme_code_desc}', 'mceCodeEditor'], - ['table', 'table.gif', '{$lang_theme_table_desc}', 'mceInsertTable', true], - ['row_before', 'table_insert_row_before.gif', '{$lang_theme_table_insert_row_before_desc}', 'mceTableInsertRowBefore'], - ['row_after', 'table_insert_row_after.gif', '{$lang_theme_table_insert_row_after_desc}', 'mceTableInsertRowAfter'], - ['delete_row', 'table_delete_row.gif', '{$lang_theme_table_delete_row_desc}', 'mceTableDeleteRow'], - ['col_before', 'table_insert_col_before.gif', '{$lang_theme_table_insert_col_before_desc}', 'mceTableInsertColBefore'], - ['col_after', 'table_insert_col_after.gif', '{$lang_theme_table_insert_col_after_desc}', 'mceTableInsertColAfter'], - ['delete_col', 'table_delete_col.gif', '{$lang_theme_table_delete_col_desc}', 'mceTableDeleteCol'], ['hr', 'hr.gif', '{$lang_theme_hr_desc}', 'inserthorizontalrule'], ['removeformat', 'removeformat.gif', '{$lang_theme_removeformat_desc}', 'removeformat'], ['sub', 'sub.gif', '{$lang_theme_sub_desc}', 'subscript'], @@ -53,7 +46,7 @@ var TinyMCE_advanced_buttons = [ * Returns HTML code for the specificed control. */ function TinyMCE_advanced_getControlHTML(button_name) { - var buttonTileMap = new Array('anchor.gif','backcolor.gif','bullist.gif','center.gif','charmap.gif','cleanup.gif','code.gif','copy.gif','custom_1.gif','cut.gif','forecolor.gif','full.gif','help.gif','hr.gif','image.gif','indent.gif','left.gif','link.gif','numlist.gif','outdent.gif','paste.gif','redo.gif','removeformat.gif','right.gif','strikethrough.gif','sub.gif','sup.gif','table.gif','table_delete_col.gif','table_delete_row.gif','table_insert_col_after.gif','table_insert_col_before.gif','table_insert_row_after.gif','table_insert_row_before.gif','undo.gif','unlink.gif','visualaid.gif'); + var buttonTileMap = new Array('anchor.gif','backcolor.gif','bullist.gif','center.gif','charmap.gif','cleanup.gif','code.gif','copy.gif','custom_1.gif','cut.gif','forecolor.gif','full.gif','help.gif','hr.gif','image.gif','indent.gif','left.gif','link.gif','numlist.gif','outdent.gif','paste.gif','redo.gif','removeformat.gif','right.gif','strikethrough.gif','sub.gif','sup.gif','undo.gif','unlink.gif','visualaid.gif'); // Lookup button in button list for (var i=0; i + //########################################################################################################### - // Render row 1 - var buttonNamesRow1 = tinyMCE.getParam("theme_advanced_buttons1", "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect", true, ','); - buttonNamesRow1 = removeFromArray(buttonNamesRow1, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); - buttonNamesRow1 = addToArray(buttonNamesRow1, tinyMCE.getParam("theme_advanced_buttons1_add", "", true, ',')); - buttonNamesRow1 = addToArray(tinyMCE.getParam("theme_advanced_buttons1_add_before", "", true, ','), buttonNamesRow1); - for (var i=0; i 0) - toolbarHTML += "
"; + switch(layoutManager) + { + case "SimpleLayout" : //the default TinyMCE Layout (for backwards compatibility)... + var toolbarHTML = ""; + var toolbarLocation = tinyMCE.getParam("theme_advanced_toolbar_location", "bottom"); + var toolbarAlign = tinyMCE.getParam("theme_advanced_toolbar_align", "center"); + var pathLocation = tinyMCE.getParam("theme_advanced_path_location", "none"); - // Render row 2 - var buttonNamesRow2 = tinyMCE.getParam("theme_advanced_buttons2", "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code", true, ','); - buttonNamesRow2 = removeFromArray(buttonNamesRow2, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); - buttonNamesRow2 = addToArray(buttonNamesRow2, tinyMCE.getParam("theme_advanced_buttons2_add", "", true, ',')); - buttonNamesRow2 = addToArray(tinyMCE.getParam("theme_advanced_buttons2_add_before", "", true, ','), buttonNamesRow2); - for (var i=0; i 0) - toolbarHTML += "
"; + if (buttonNamesRow1.length > 0) { + toolbarHTML += "
"; + deltaHeight -= 23; + } - // Render row 3 - var buttonNamesRow3 = tinyMCE.getParam("theme_advanced_buttons3", "table,separator,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,separator,hr,removeformat,visualaid,separator,sub,sup,separator,charmap", true, ','); - buttonNamesRow3 = removeFromArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); - buttonNamesRow3 = addToArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_buttons3_add", "", true, ',')); - buttonNamesRow3 = addToArray(tinyMCE.getParam("theme_advanced_buttons3_add_before", "", true, ','), buttonNamesRow3); - for (var i=0; i 0) { + toolbarHTML += "
"; + deltaHeight -= 23; + } - if (toolbarLocation == "top") - template['html'] += '' + toolbarHTML + ''; + // Render row 3 + var buttonNamesRow3 = tinyMCE.getParam("theme_advanced_buttons3", "hr,removeformat,visualaid,separator,sub,sup,separator,charmap", true, ','); + buttonNamesRow3 = removeFromArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); + buttonNamesRow3 = addToArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_buttons3_add", "", true, ',')); + buttonNamesRow3 = addToArray(tinyMCE.getParam("theme_advanced_buttons3_add_before", "", true, ','), buttonNamesRow3); + for (var i=0; i'; + if (buttonNamesRow3.length > 0) + deltaHeight -= 20; -/* template['html'] += '\ - \ - ';*/ - template['html'] += '\ - \ - '; + // Setup template html + template['html'] = ''; - if (toolbarLocation == "bottom") - template['html'] += ''; + if (toolbarLocation == "top") + template['html'] += ''; - if (pathLocation == "bottom") - template['html'] += ''; + if (pathLocation == "top") { + template['html'] += ''; + deltaHeight -= 23; + } - template['html'] += '
' + toolbarHTML + '
' + toolbarHTML + '
' + pathHTML + '
' + pathHTML + '
'; + /* template['html'] += '\ + \ + ';*/ + template['html'] += '\ + \ + '; + + if (toolbarLocation == "bottom") + template['html'] += '' + toolbarHTML + ''; + + if (pathLocation == "bottom") { + template['html'] += '' + pathHTML + ''; + deltaHeight -= 23; + } + + template['html'] += ''; + break; + + case "RowLayout" : //Container Layout - containers defined in "theme_advanced_containers" are rendered from top to bottom. + template['html'] = ''; + + var containers = tinyMCE.getParam("theme_advanced_containers", "", true, ","); + var defaultContainerCSS = tinyMCE.getParam("theme_advanced_containers_default_class", "container"); + var defaultContainerAlign = tinyMCE.getParam("theme_advanced_containers_default_align", "center"); + + //Render Containers: + for(var i = 0; i < containers.length; i++) + { + if(containers[i] == "mceEditor") //Exceptions for mceEditor and ... + { + template['html'] += ''; + } + else if(containers[i] == "mceElementpath") // ... mceElementpath: + { + var pathClass = "mcePath"; + + if (i == containers.length-1) + pathClass = "mcePathBottom"; + else if (i == 0) + pathClass = "mcePathTop"; + else + deltaHeight-=2; + + template['html'] += ''; + deltaHeight -= 22; + } + else //Render normal Container: + { + var curContainer = tinyMCE.getParam("theme_advanced_container_"+containers[i], "", true, ','); + var curContainerHTML = ""; + var curAlign = tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_align", defaultContainerAlign); + var curCSS = tinyMCE.getParam("theme_advanced_container_"+containers[i]+"_class", defaultContainerCSS); + + for (var j=0; j 0) { + curContainerHTML += "
"; + deltaHeight -= 23; + } + + template['html'] += '
'; + } + } + + template['html'] += '
\ + \ +
' + pathHTML + '
' + curContainerHTML + '
'; + break; + case "BorderLayout" : //will be like java.awt.BorderLayout of SUN Java... + // Not implemented yet... + break; + case "CustomLayout" : //User defined layout callback... + var customLayout = tinyMCE.getParam("theme_advanced_custom_layout",""); + if (customLayout != "" && eval("typeof(" + customLayout + ")") != "undefined") + template = eval(customLayout + "(template);"); + break; + default: + alert('UNDEFINED LAYOUT MANAGER! PLEASE CHECK YOUR TINYMCE CONFIG!'); + break; + } + + //########################################################################################################### + // + //########################################################################################################### // Setup style select options var styleSelectHTML = ''; @@ -317,7 +399,7 @@ function TinyMCE_advanced_getEditorTemplate(settings) { template['html'] = tinyMCE.replaceVar(template['html'], 'style_select_options', styleSelectHTML); template['delta_width'] = 0; - template['delta_height'] = -40; + template['delta_height'] = deltaHeight; return template; } @@ -356,23 +438,6 @@ function TinyMCE_advanced_getInsertImageTemplate() { return template; } -/** - * Insert table template function. - */ -function TinyMCE_advanced_getInsertTableTemplate(settings) { - var template = new Array(); - - template['file'] = 'table.htm'; - template['width'] = 340; - template['height'] = 220; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_table_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_table_delta_height', 0); - - return template; -} - /** * Node change handler. */ @@ -428,7 +493,7 @@ function TinyMCE_advanced_handleNodeChange(editor_id, node, undo_index, undo_lev if (getAttrib(path[i], 'class') != "") nodeData += "class: " + path[i].getAttribute('class') + " "; - + if (getAttrib(path[i], 'className') != "") nodeData += "class: " + path[i].getAttribute('className') + " "; @@ -473,16 +538,9 @@ function TinyMCE_advanced_handleNodeChange(editor_id, node, undo_index, undo_lev tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonNormal'); tinyMCE.switchClassSticky(editor_id + '_sub', 'mceButtonNormal'); tinyMCE.switchClassSticky(editor_id + '_sup', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_table', 'mceButtonNormal'); tinyMCE.switchClassSticky(editor_id + '_anchor', 'mceButtonNormal'); tinyMCE.switchClassSticky(editor_id + '_link', 'mceButtonDisabled', true); tinyMCE.switchClassSticky(editor_id + '_unlink', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_row_before', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_row_after', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_delete_row', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_col_before', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_col_after', 'mceButtonDisabled', true); - tinyMCE.switchClassSticky(editor_id + '_delete_col', 'mceButtonDisabled', true); tinyMCE.switchClassSticky(editor_id + '_outdent', 'mceButtonDisabled', true); tinyMCE.switchClassSticky(editor_id + '_image', 'mceButtonNormal'); tinyMCE.switchClassSticky(editor_id + '_hr', 'mceButtonNormal'); @@ -510,20 +568,6 @@ function TinyMCE_advanced_handleNodeChange(editor_id, node, undo_index, undo_lev tinyMCE.switchClassSticky(editor_id + '_redo', 'mceButtonDisabled', true); } - // Within a td element - if (tinyMCE.getParentElement(node, "td")) { - tinyMCE.switchClassSticky(editor_id + '_row_before', 'mceButtonNormal', false); - tinyMCE.switchClassSticky(editor_id + '_row_after', 'mceButtonNormal', false); - tinyMCE.switchClassSticky(editor_id + '_delete_row', 'mceButtonNormal', false); - tinyMCE.switchClassSticky(editor_id + '_col_before', 'mceButtonNormal', false); - tinyMCE.switchClassSticky(editor_id + '_col_after', 'mceButtonNormal', false); - tinyMCE.switchClassSticky(editor_id + '_delete_col', 'mceButtonNormal', false); - } - - // Within table - if (tinyMCE.getParentElement(node, "table")) - tinyMCE.switchClassSticky(editor_id + '_table', 'mceButtonSelected'); - // Within li, blockquote if (tinyMCE.getParentElement(node, "li,blockquote")) tinyMCE.switchClassSticky(editor_id + '_outdent', 'mceButtonNormal', false); @@ -555,7 +599,7 @@ function TinyMCE_advanced_handleNodeChange(editor_id, node, undo_index, undo_lev } } } - } while (!breakOut && (classNode = classNode.parentNode)); + } while (!breakOut && classNode != null && (classNode = classNode.parentNode)); selectElm.selectedIndex = index; } @@ -641,7 +685,7 @@ function TinyMCE_advanced_handleNodeChange(editor_id, node, undo_index, undo_lev case "strike": tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonSelected'); break; - + case "ul": tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonSelected'); break; @@ -688,4 +732,4 @@ function TinyMCE_advanced_setupCSSClasses(editor_id) { if (csses != null && csses.length > 0) selectElm.setAttribute('cssImported', 'true'); } -} +} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_ui.css b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_ui.css index 09ff101f0..ae419feb6 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_ui.css +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_ui.css @@ -118,17 +118,18 @@ border-top: 1px solid #cccccc; } -.mcePathTop { - border-bottom: 1px solid #cccccc; +.mcePathTop, .mcePathBottom, .mcePath { font-family: "MS Sans Serif"; font-size: 9pt; + padding: 2px; +} + +.mcePathTop { + border-bottom: 1px solid #cccccc; } .mcePathBottom { border-top: 1px solid #cccccc; - padding: 2px; - font-family: "MS Sans Serif"; - font-size: 9pt; } .mcePathItem, .mcePathItem:link, .mcePathItem:visited, .mcePathItem:hover { @@ -140,3 +141,7 @@ .mcePathItem:hover { text-decoration: underline; } + +.mcePath { + border-bottom: 1px solid #cccccc; +} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/image.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/image.htm index 62ea717bf..d25255970 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/image.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/image.htm @@ -2,6 +2,11 @@ {$lang_insert_image_title} + + {$lang_insert_image_alt}: diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/images/buttons.gif b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/images/buttons.gif index 4844b14d3..7577bcffc 100644 Binary files a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/images/buttons.gif and b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/images/buttons.gif differ diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ar.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ar.js index 242da2e07..2b2972bb2 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ar.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ar.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'منخفض'; tinyMCELang['lang_theme_sup_desc'] = 'مرتفع'; tinyMCELang['lang_theme_hr_desc'] = 'إدراج خط فاصل'; tinyMCELang['lang_theme_removeformat_desc'] = 'إزالة التنسيقات'; -tinyMCELang['lang_theme_table_desc'] = 'إدراج/تحرير جدول'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Insert row before'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Insert row after'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'حذف صفوف'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Insert column before'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Insert column after'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'حذف أعمدة'; tinyMCELang['lang_theme_custom1_desc'] = 'Your custom description here'; tinyMCELang['lang_insert_image_border'] = 'سمك الحدود'; tinyMCELang['lang_insert_image_dimensions'] = 'المواصفات'; @@ -31,20 +24,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'وسط ا tinyMCELang['lang_insert_image_align_absbottom'] = 'أسفل النص'; tinyMCELang['lang_insert_image_align_left'] = 'يسار'; tinyMCELang['lang_insert_image_align_right'] = 'يمين'; -tinyMCELang['lang_insert_table_title'] = 'إدراج/تحرير جدول'; -tinyMCELang['lang_insert_table_width'] = 'العرض'; -tinyMCELang['lang_insert_table_height'] = 'الارتفاع'; -tinyMCELang['lang_insert_table_cols'] = 'أعمدة'; -tinyMCELang['lang_insert_table_rows'] = 'صفوف'; -tinyMCELang['lang_insert_table_cellspacing'] = 'تباعد الخلايا'; -tinyMCELang['lang_insert_table_cellpadding'] = 'المسافة البادئة'; -tinyMCELang['lang_insert_table_border'] = 'سمك الحدود'; -tinyMCELang['lang_insert_table_align'] = 'المحاذاة'; -tinyMCELang['lang_insert_table_align_default'] = 'Default'; -tinyMCELang['lang_insert_table_align_left'] = 'يسار'; -tinyMCELang['lang_insert_table_align_right'] = 'يمين'; -tinyMCELang['lang_insert_table_align_middle'] = 'وسط'; -tinyMCELang['lang_insert_table_class'] = 'Class'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Default'; tinyMCELang['lang_theme_paragraph'] = 'Paragraph'; @@ -73,3 +52,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/de.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/de.js index 18dfcbfeb..511ad8e30 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/de.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/de.js @@ -10,13 +10,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Tiefergestellt'; tinyMCELang['lang_theme_sup_desc'] = 'Höhergestellt'; tinyMCELang['lang_theme_hr_desc'] = 'Horizontale Linie einfügen'; tinyMCELang['lang_theme_removeformat_desc'] = 'Formatierung löschen'; -tinyMCELang['lang_theme_table_desc'] = 'Neue Tabelle einfügen / Tabelle bearbeiten'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Davor Zeile einfügen'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Danach Zeile einfügen'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Zeile löschen'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Davor Spalte einfügen'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Danach Spalte einfügen'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Spalte löschen'; tinyMCELang['lang_theme_custom1_desc'] = 'Beschreibung eingeben'; tinyMCELang['lang_insert_image_border'] = 'Rahmen'; tinyMCELang['lang_insert_image_dimensions'] = 'Größe'; @@ -33,21 +26,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absolute Mitte'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Absolut unten'; tinyMCELang['lang_insert_image_align_left'] = 'Links'; tinyMCELang['lang_insert_image_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_title'] = 'Tabelle Einfügen/Bearbeiten'; -tinyMCELang['lang_insert_table_width'] = 'Breite'; -tinyMCELang['lang_insert_table_height'] = 'Höhe'; -tinyMCELang['lang_insert_table_cols'] = 'Spalten'; -tinyMCELang['lang_insert_table_rows'] = 'Zeilen'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Außenabstand'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Innenabstand'; -tinyMCELang['lang_insert_table_border'] = 'Rahmen'; -tinyMCELang['lang_insert_table_align'] = 'Ausrichten'; -tinyMCELang['lang_insert_table_align_default'] = 'Normal'; -tinyMCELang['lang_insert_table_align_left'] = 'Links'; -tinyMCELang['lang_insert_table_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_align_middle'] = 'Zentriert'; -tinyMCELang['lang_insert_table_class'] = 'Klasse'; -tinyMCELang['lang_insert_table_delta_width'] = 30; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Normal'; tinyMCELang['lang_theme_paragraph'] = 'Standard-Text'; @@ -76,3 +54,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js index 3467160a9..a02e85700 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = ' tinyMCELang['lang_theme_sup_desc'] = 'ÅêèÝôçò'; tinyMCELang['lang_theme_hr_desc'] = 'ÅéóáãùãÞ ïñéæüíôéáò ãñáììÞò'; tinyMCELang['lang_theme_removeformat_desc'] = 'ÁðáëïéöÞ ìïñöïðïßçóçò'; -tinyMCELang['lang_theme_table_desc'] = 'ÅéóáãùãÞ ðßíáêá'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'ÅéóáãùãÞ ãñáììÞò åðÜíù'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'ÅéóáãùãÞ ãñáììÞò êÜôù'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'ÄéáãñáöÞ ãñáììÞò'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'ÅéóáãùãÞ óôÞëçò áñéóôåñÜ'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'ÅéóáãùãÞ óôÞëçò äåîéÜ'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'ÄéáãñáöÞ óôÞëçò'; tinyMCELang['lang_theme_custom1_desc'] = 'ÐåñéãñáöÞ'; tinyMCELang['lang_insert_image_border'] = 'Ðåñßãñáììá'; tinyMCELang['lang_insert_image_dimensions'] = 'ÄéáóôÜóåéò'; @@ -31,20 +24,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = ' tinyMCELang['lang_insert_image_align_absbottom'] = 'Áðüëõôá êÜôù'; tinyMCELang['lang_insert_image_align_left'] = 'ÁñéóôåñÜ'; tinyMCELang['lang_insert_image_align_right'] = 'ÄåîéÜ'; -tinyMCELang['lang_insert_table_title'] = 'ÅéóáãùãÞ/Äéüñèùóç ðßíáêá'; -tinyMCELang['lang_insert_table_width'] = 'ÐëÜôïò'; -tinyMCELang['lang_insert_table_height'] = '¾øïò'; -tinyMCELang['lang_insert_table_cols'] = 'ÓôÞëåò'; -tinyMCELang['lang_insert_table_rows'] = 'ÃñáììÝò'; -tinyMCELang['lang_insert_table_cellspacing'] = 'ÄéÜóôé÷ï'; -tinyMCELang['lang_insert_table_cellpadding'] = 'ÃÝìéóìá'; -tinyMCELang['lang_insert_table_border'] = 'Ðåñßãñáììá'; -tinyMCELang['lang_insert_table_align'] = 'Óôïß÷éóç'; -tinyMCELang['lang_insert_table_align_default'] = 'Ðñïêáè.'; -tinyMCELang['lang_insert_table_align_left'] = 'ÁñéóôåñÜ'; -tinyMCELang['lang_insert_table_align_right'] = 'ÄåîéÜ'; -tinyMCELang['lang_insert_table_align_middle'] = 'Óôï êÝíôñï'; -tinyMCELang['lang_insert_table_class'] = 'ÊëÜóç'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'ÐñïêáèïñéóìÝíç'; tinyMCELang['lang_theme_paragraph'] = 'ÐáñÜãñáöïò'; @@ -73,3 +52,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js index 3818d2a8d..c7eba3808 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Subindice'; tinyMCELang['lang_theme_sup_desc'] = 'Superindice'; tinyMCELang['lang_theme_hr_desc'] = 'Insertar un separador horizontal'; tinyMCELang['lang_theme_removeformat_desc'] = 'Quitar formato'; -tinyMCELang['lang_theme_table_desc'] = 'Insertar una tabla nueva'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Insertar una fila antes'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Insertar una fila despues'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Eliminar una fila'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Insertar una columna before'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Insertar columna after'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Eliminar una columna'; tinyMCELang['lang_theme_custom1_desc'] = 'Tu descricion'; tinyMCELang['lang_insert_image_border'] = 'Borde'; tinyMCELang['lang_insert_image_dimensions'] = 'Dimensiones'; @@ -31,23 +24,7 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Centrado horizontal'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Centrado abajo'; tinyMCELang['lang_insert_image_align_left'] = 'Izquierda'; tinyMCELang['lang_insert_image_align_right'] = 'Derecha'; -tinyMCELang['lang_insert_table_title'] = 'Insertar/Modificar tabla'; -tinyMCELang['lang_insert_table_width'] = 'Anchura'; -tinyMCELang['lang_insert_table_height'] = 'Altura'; -tinyMCELang['lang_insert_table_cols'] = 'Columnas'; -tinyMCELang['lang_insert_table_rows'] = 'Filas'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Espacio entre celdas'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Desplazamiento entre celdas'; -tinyMCELang['lang_insert_table_border'] = 'Borde'; -tinyMCELang['lang_insert_table_align'] = 'Alineamiento'; -tinyMCELang['lang_insert_table_align_default'] = 'Por defecto'; -tinyMCELang['lang_insert_table_align_left'] = 'Izquierda'; -tinyMCELang['lang_insert_table_align_right'] = 'Derecha'; -tinyMCELang['lang_insert_table_align_middle'] = 'Centro'; -tinyMCELang['lang_insert_table_delta_width'] = 10; -tinyMCELang['lang_insert_table_delta_height'] = 20; tinyMCELang['lang_insert_image_delta_height'] = 10; -tinyMCELang['lang_insert_table_class'] = 'Class'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Default'; tinyMCELang['lang_theme_paragraph'] = 'Paragraph'; @@ -76,3 +53,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/fi.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/fi.js index c700b7099..a9d7deee5 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/fi.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/fi.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Alam tinyMCELang['lang_theme_sup_desc'] = 'Ylämääre'; tinyMCELang['lang_theme_hr_desc'] = 'Lisää vaakaviiva'; tinyMCELang['lang_theme_removeformat_desc'] = 'Poista muotoilu'; -tinyMCELang['lang_theme_table_desc'] = 'Lisää uusi taulu'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Lisää rivi edelle'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Lisää rivi jälkeen'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Posita rivi'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Lisää sarake edelle'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Lisää sarake jälkeen'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Poista sarake'; tinyMCELang['lang_theme_custom1_desc'] = 'Kirjoita oma selityksesi tähän'; tinyMCELang['lang_insert_image_border'] = 'Reuna'; tinyMCELang['lang_insert_image_dimensions'] = 'Mitat'; @@ -31,20 +24,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absoluuttisen keskelle'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Absoluuttisen alas'; tinyMCELang['lang_insert_image_align_left'] = 'Vasemmalle'; tinyMCELang['lang_insert_image_align_right'] = 'Oikealle'; -tinyMCELang['lang_insert_table_title'] = 'Lisää/muokkaa taulua'; -tinyMCELang['lang_insert_table_width'] = 'Leveys'; -tinyMCELang['lang_insert_table_height'] = 'Korkeus'; -tinyMCELang['lang_insert_table_cols'] = 'Sarakkeet'; -tinyMCELang['lang_insert_table_rows'] = 'Rivit'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Solujen väli'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Solun reunan ja sisällön väli'; -tinyMCELang['lang_insert_table_border'] = 'Reuna'; -tinyMCELang['lang_insert_table_align'] = 'Asettelu'; -tinyMCELang['lang_insert_table_align_default'] = 'Oletus'; -tinyMCELang['lang_insert_table_align_left'] = 'Vasen'; -tinyMCELang['lang_insert_table_align_right'] = 'Oikea'; -tinyMCELang['lang_insert_table_align_middle'] = 'Keskelle'; -tinyMCELang['lang_insert_table_delta_height'] = 20; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Oletus'; tinyMCELang['lang_theme_paragraph'] = 'Kappale'; @@ -61,7 +40,6 @@ tinyMCELang['lang_theme_colorpicker_title'] = 'Valitse v tinyMCELang['lang_theme_colorpicker_apply'] = 'Aseta väri'; tinyMCELang['lang_theme_forecolor_desc'] = 'Valitse etuväri'; tinyMCELang['lang_theme_backcolor_desc'] = 'Select background color'; -tinyMCELang['lang_insert_table_class'] = 'Luokka'; tinyMCELang['lang_theme_charmap_title'] = 'Select custom character'; tinyMCELang['lang_theme_charmap_desc'] = 'Insert custom character'; tinyMCELang['lang_theme_visualaid_desc'] = 'Toggle guidelines/invisible elements'; @@ -74,3 +52,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/hu.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/hu.js index 00fd89ead..b673c8cc0 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/hu.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/hu.js @@ -9,13 +9,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Alsó index'; tinyMCELang['lang_theme_sup_desc'] = 'Felsõ index'; tinyMCELang['lang_theme_hr_desc'] = 'Vízszintes vonal beillesztése'; tinyMCELang['lang_theme_removeformat_desc'] = 'Formázás eltávolítása'; -tinyMCELang['lang_theme_table_desc'] = 'Új táblázat beillesztése'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Sor beillesztése elé'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Sor beillesztése utána'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Sor törlése'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Oszlop beillsztése elé'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Oszlop beillesztése utána'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Oszlop eltávolítása'; tinyMCELang['lang_theme_custom1_desc'] = 'Az Ön által kiválasztott leírás'; tinyMCELang['lang_insert_image_border'] = 'Keret'; tinyMCELang['lang_insert_image_dimensions'] = 'Méretek'; @@ -32,21 +25,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Abszolút közé tinyMCELang['lang_insert_image_align_absbottom'] = 'Abszolút alulra'; tinyMCELang['lang_insert_image_align_left'] = 'Balra'; tinyMCELang['lang_insert_image_align_right'] = 'Jobbra'; -tinyMCELang['lang_insert_table_title'] = 'Tábla beillesztése/módosítása'; -tinyMCELang['lang_insert_table_width'] = 'Szélesség'; -tinyMCELang['lang_insert_table_height'] = 'Magasság'; -tinyMCELang['lang_insert_table_cols'] = 'Oszlopok'; -tinyMCELang['lang_insert_table_rows'] = 'Sorok'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Cellspacing'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Cellpadding'; -tinyMCELang['lang_insert_table_border'] = 'Keret'; -tinyMCELang['lang_insert_table_align'] = 'Igazítás'; -tinyMCELang['lang_insert_table_align_default'] = 'Alapértelmezett'; -tinyMCELang['lang_insert_table_align_left'] = 'Balra'; -tinyMCELang['lang_insert_table_align_right'] = 'Jobbra'; -tinyMCELang['lang_insert_table_align_middle'] = 'Középre'; -tinyMCELang['lang_insert_table_class'] = 'Class'; -tinyMCELang['lang_insert_table_delta_width'] = 55; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Default'; tinyMCELang['lang_theme_paragraph'] = 'Paragraph'; @@ -75,3 +53,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/it.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/it.js index 4a53d1150..70c5c80a5 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/it.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/it.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Pedice'; tinyMCELang['lang_theme_sup_desc'] = 'Apice'; tinyMCELang['lang_theme_hr_desc'] = 'Inserisce linea orizzontale'; tinyMCELang['lang_theme_removeformat_desc'] = 'Rimuovi formattazione'; -tinyMCELang['lang_theme_table_desc'] = 'Inserisci una nuova tabella'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Inserisci una riga prima'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Inserisci una riga dopo'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Cancella riga'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Inserisci colonna prima'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Inserisci colonna dopo'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Rimuovi colonna'; tinyMCELang['lang_theme_custom1_desc'] = 'Scrivi qui la tua descrizione personalizzata'; tinyMCELang['lang_insert_image_border'] = 'Bordo'; tinyMCELang['lang_insert_image_dimensions'] = 'Dimensioni'; @@ -31,21 +24,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Centro assoluto'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Inferiore assoluto'; tinyMCELang['lang_insert_image_align_left'] = 'Sinistra'; tinyMCELang['lang_insert_image_align_right'] = 'Destra'; -tinyMCELang['lang_insert_table_title'] = 'Inserisci/modifica tabella'; -tinyMCELang['lang_insert_table_width'] = 'Larghezza'; -tinyMCELang['lang_insert_table_height'] = 'Altezza'; -tinyMCELang['lang_insert_table_cols'] = 'Colonne'; -tinyMCELang['lang_insert_table_rows'] = 'Righe'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Cellspacing'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Cellpadding'; -tinyMCELang['lang_insert_table_border'] = 'Bordo'; -tinyMCELang['lang_insert_table_align'] = 'Allineamento'; -tinyMCELang['lang_insert_table_align_default'] = 'Default'; -tinyMCELang['lang_insert_table_align_left'] = 'Sinistra'; -tinyMCELang['lang_insert_table_align_right'] = 'Destra'; -tinyMCELang['lang_insert_table_align_middle'] = 'Centro'; -tinyMCELang['lang_insert_table_class'] = 'Classe'; -tinyMCELang['lang_insert_table_delta_width'] = 10; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Default'; tinyMCELang['lang_theme_paragraph'] = 'Paragrafo'; @@ -74,3 +52,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ko.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ko.js index bdb6a241e..6fdac213d 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ko.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/ko.js @@ -9,13 +9,6 @@ tinyMCELang['lang_theme_sub_desc'] = ' tinyMCELang['lang_theme_sup_desc'] = 'À§Ã·ÀÚ'; tinyMCELang['lang_theme_hr_desc'] = '°¡·ÎÁÙ ³Ö±â'; tinyMCELang['lang_theme_removeformat_desc'] = '¼Ó¼º Áö¿ì±â'; -tinyMCELang['lang_theme_table_desc'] = 'Ç¥ ³Ö±â'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = '¾Õ¿¡ Çà ³Ö±â'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'µÚ¿¡ Çà ³Ö±â'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Çà Áö¿ì±â'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = '¾Õ¿¡ ¿­ ³Ö±â'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'µÚ¿¡ ¿­ ³Ö±â'; -tinyMCELang['lang_theme_table_delete_col_desc'] = '¿­ Áö¿ì±â'; tinyMCELang['lang_theme_custom1_desc'] = 'Your custom description here'; tinyMCELang['lang_insert_image_border'] = 'Å׵θ®'; tinyMCELang['lang_insert_image_dimensions'] = 'Å©±â'; @@ -32,20 +25,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absolute Middle'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Absolute Bottom'; tinyMCELang['lang_insert_image_align_left'] = 'Left'; tinyMCELang['lang_insert_image_align_right'] = 'Right'; -tinyMCELang['lang_insert_table_title'] = 'Ç¥ ³Ö±â/°íÄ¡±â'; -tinyMCELang['lang_insert_table_width'] = '³Êºñ'; -tinyMCELang['lang_insert_table_height'] = '³ôÀÌ'; -tinyMCELang['lang_insert_table_cols'] = 'Çà'; -tinyMCELang['lang_insert_table_rows'] = '¿­'; -tinyMCELang['lang_insert_table_cellspacing'] = '¼¿ °£°Ý'; -tinyMCELang['lang_insert_table_cellpadding'] = '¼¿ ¿©¹é'; -tinyMCELang['lang_insert_table_border'] = 'Å׵θ®'; -tinyMCELang['lang_insert_table_align'] = 'Á¤·Ä'; -tinyMCELang['lang_insert_table_align_default'] = '±âº»°ª'; -tinyMCELang['lang_insert_table_align_left'] = '¿ÞÂÊ'; -tinyMCELang['lang_insert_table_align_right'] = '¿À¸¥ÂÊ'; -tinyMCELang['lang_insert_table_align_middle'] = '°¡¿îµ¥'; -tinyMCELang['lang_insert_table_class'] = 'Ŭ·¡½º'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = '±âº»°ª'; tinyMCELang['lang_theme_paragraph'] = '´Ü¶ô'; @@ -74,3 +53,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js index e5de1fc3c..5e70d5d73 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js @@ -8,13 +8,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Subscript'; tinyMCELang['lang_theme_sup_desc'] = 'Superscript'; tinyMCELang['lang_theme_hr_desc'] = 'Invoegen horizontale lijn'; tinyMCELang['lang_theme_removeformat_desc'] = 'Verwijder opmaak'; -tinyMCELang['lang_theme_table_desc'] = 'Voeg een nieuwe tabel in'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Voeg rij in voor ...'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Voeg rij in na ...'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Verwijder rij'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Voeg kolom in voor ...'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Voeg kolom in na ...'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Verwijder kolom'; tinyMCELang['lang_theme_custom1_desc'] = 'Uw eigen omschrijving hier'; tinyMCELang['lang_insert_image_border'] = 'Omranding (pixels)'; tinyMCELang['lang_insert_image_dimensions'] = 'Afmetingen (Leeg: Originele afm.)'; @@ -31,22 +24,7 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Absoluut Midden'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Absoluut Onder'; tinyMCELang['lang_insert_image_align_left'] = 'Links'; tinyMCELang['lang_insert_image_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_title'] = 'Invoegen/Bewerken tabel'; -tinyMCELang['lang_insert_table_width'] = 'Breedte'; -tinyMCELang['lang_insert_table_height'] = 'Hoogte'; -tinyMCELang['lang_insert_table_cols'] = 'Kolommen'; -tinyMCELang['lang_insert_table_rows'] = 'Rijen'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Celafstand'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Celvulling'; -tinyMCELang['lang_insert_table_border'] = 'Omranding'; -tinyMCELang['lang_insert_table_align'] = 'Positionering'; -tinyMCELang['lang_insert_table_align_default'] = 'Standaard'; -tinyMCELang['lang_insert_table_align_left'] = 'Links'; -tinyMCELang['lang_insert_table_align_right'] = 'Rechts'; -tinyMCELang['lang_insert_table_align_middle'] = 'Midden'; -tinyMCELang['lang_insert_table_delta_width'] = 20; tinyMCELang['lang_insert_image_delta_height'] = 0; -tinyMCELang['lang_insert_table_class'] = 'CSS-Stijl'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Standaard'; tinyMCELang['lang_theme_paragraph'] = 'Paragraaf'; @@ -76,3 +54,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/no.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/no.js index 4f6f43532..0c4499550 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/no.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/no.js @@ -9,13 +9,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Subscript'; tinyMCELang['lang_theme_sup_desc'] = 'Superscript'; tinyMCELang['lang_theme_hr_desc'] = 'Sett in horisontal linie'; tinyMCELang['lang_theme_removeformat_desc'] = 'Fjern formatering'; -tinyMCELang['lang_theme_table_desc'] = 'Opprett/endre tabell'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Opprett rad før'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Opprett rad etter'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Fjern rad'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Opprett kolonne før'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Opprett kolonne etter'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Fjern kolonne'; tinyMCELang['lang_theme_custom1_desc'] = 'Din spesialfunksjons beskriving her'; tinyMCELang['lang_insert_image_border'] = 'Ramme'; tinyMCELang['lang_insert_image_dimensions'] = 'Dimensjoner'; @@ -33,20 +26,6 @@ tinyMCELang['lang_insert_image_align_absbottom'] = 'Absolutt lengst ned'; tinyMCELang['lang_insert_image_align_left'] = 'Venstre'; tinyMCELang['lang_insert_image_align_right'] = 'Høyre'; tinyMCELang['lang_insert_image_delta_width'] = ''; -tinyMCELang['lang_insert_table_title'] = 'Opprett/endre tabell'; -tinyMCELang['lang_insert_table_width'] = 'Bredde'; -tinyMCELang['lang_insert_table_height'] = 'Høyde'; -tinyMCELang['lang_insert_table_cols'] = 'Kolonner'; -tinyMCELang['lang_insert_table_rows'] = 'Rader'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Celle-mellomrom'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Celle-padding'; -tinyMCELang['lang_insert_table_border'] = 'Rammebredde'; -tinyMCELang['lang_insert_table_align'] = 'Justering'; -tinyMCELang['lang_insert_table_align_default'] = 'Ingen'; -tinyMCELang['lang_insert_table_align_left'] = 'Venstre'; -tinyMCELang['lang_insert_table_align_right'] = 'Høyre'; -tinyMCELang['lang_insert_table_align_middle'] = 'Midten'; -tinyMCELang['lang_insert_table_class'] = 'Stil'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Normal'; tinyMCELang['lang_theme_paragraph'] = 'Paragraf'; @@ -75,3 +54,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pl.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pl.js index 69f3fda27..f65d96aef 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pl.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pl.js @@ -7,13 +7,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Indeks dolny'; tinyMCELang['lang_theme_sup_desc'] = 'Indeks górny'; tinyMCELang['lang_theme_hr_desc'] = 'Wstaw liniê poziom±'; tinyMCELang['lang_theme_removeformat_desc'] = 'Usuñ formatowanie'; -tinyMCELang['lang_theme_table_desc'] = 'Wstaw now± tabelê'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Wstaw wiersz przed'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Wstaw wiersz za'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Usuñ wiersz'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Wstaw kolumnê przed'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Wstaw kolumnê za'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Usuñ kolumnê'; tinyMCELang['lang_theme_custom1_desc'] = 'Opis'; tinyMCELang['lang_insert_image_border'] = 'Krawêdzie'; tinyMCELang['lang_insert_image_dimensions'] = 'Wymiary'; @@ -30,20 +23,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Do tinyMCELang['lang_insert_image_align_absbottom'] = 'Do do³u bezwzglêdnego'; tinyMCELang['lang_insert_image_align_left'] = 'Do lewej'; tinyMCELang['lang_insert_image_align_right'] = 'Do prawej'; -tinyMCELang['lang_insert_table_title'] = 'Wstaw/Modyfikuj tabelê'; -tinyMCELang['lang_insert_table_width'] = 'Szeroko¶æ'; -tinyMCELang['lang_insert_table_height'] = 'Wysoko¶æ'; -tinyMCELang['lang_insert_table_cols'] = 'Kolumny'; -tinyMCELang['lang_insert_table_rows'] = 'Wiersze'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Cellspacing'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Cellpadding'; -tinyMCELang['lang_insert_table_border'] = 'Krawêdzie'; -tinyMCELang['lang_insert_table_align'] = 'Wyrównanie'; -tinyMCELang['lang_insert_table_align_default'] = 'Domy¶lne'; -tinyMCELang['lang_insert_table_align_left'] = 'Do lewej'; -tinyMCELang['lang_insert_table_align_right'] = 'Do prawej'; -tinyMCELang['lang_insert_table_align_middle'] = 'Do ¶rodka'; -tinyMCELang['lang_insert_table_class'] = 'Klasa'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Domy¶lnie'; tinyMCELang['lang_theme_paragraph'] = 'Domy¶lna czcionka akapitu'; @@ -72,3 +51,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt.js index 7be9ec26d..afe75a8f3 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt.js @@ -9,13 +9,6 @@ tinyMCELang['lang_theme_sub_desc'] = 'Subscrito'; tinyMCELang['lang_theme_sup_desc'] = 'Superscrito'; tinyMCELang['lang_theme_hr_desc'] = 'Inserir linha horizontal'; tinyMCELang['lang_theme_removeformat_desc'] = 'Remover formatação'; -tinyMCELang['lang_theme_table_desc'] = 'Insere uma nova tabela'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = 'Inserir linha antes'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = 'Inserir linha depois'; -tinyMCELang['lang_theme_table_delete_row_desc'] = 'Eliminar linha'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = 'Inserir coluna antes'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = 'Inserir coluna depois'; -tinyMCELang['lang_theme_table_delete_col_desc'] = 'Remover coluna'; tinyMCELang['lang_theme_custom1_desc'] = 'Descrição customizada aqui'; tinyMCELang['lang_insert_image_border'] = 'Borda'; tinyMCELang['lang_insert_image_dimensions'] = 'Dimensões'; @@ -32,20 +25,6 @@ tinyMCELang['lang_insert_image_align_absmiddle'] = 'Centrado absoluto'; tinyMCELang['lang_insert_image_align_absbottom'] = 'Fundo absoluto'; tinyMCELang['lang_insert_image_align_left'] = 'Esquerda'; tinyMCELang['lang_insert_image_align_right'] = 'Direita'; -tinyMCELang['lang_insert_table_title'] = 'Inserir/Modificar tabela'; -tinyMCELang['lang_insert_table_width'] = 'Largura'; -tinyMCELang['lang_insert_table_height'] = 'Altura'; -tinyMCELang['lang_insert_table_cols'] = 'Colunas'; -tinyMCELang['lang_insert_table_rows'] = 'Linhas'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Espaça
mento'; -tinyMCELang['lang_insert_table_cellpadding'] = 'Margem interior'; -tinyMCELang['lang_insert_table_border'] = 'Borda'; -tinyMCELang['lang_insert_table_align'] = 'Alinhamento'; -tinyMCELang['lang_insert_table_align_default'] = 'Por omissão'; -tinyMCELang['lang_insert_table_align_left'] = 'Esquerda'; -tinyMCELang['lang_insert_table_align_right'] = 'Direita'; -tinyMCELang['lang_insert_table_align_middle'] = 'Centrado'; -tinyMCELang['lang_insert_table_class'] = 'Classe de CSS'; tinyMCELang['lang_theme_font_size'] = 'Font size'; tinyMCELang['lang_theme_fontdefault'] = 'Por omissão'; tinyMCELang['lang_theme_paragraph'] = 'Parágrafo'; @@ -74,3 +53,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cortar'; tinyMCELang['lang_copy_desc'] = 'Copiar'; tinyMCELang['lang_paste_desc'] = 'Colar'; +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/readme.txt b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/readme.txt index f76f840e8..ef48d2ba4 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/readme.txt +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/readme.txt @@ -1 +1,4 @@ -Theme specific language packs. \ No newline at end of file +Theme specific language packs. + +The language pack codes are based on ISO-639-2 +http://www.loc.gov/standards/iso639-2/englangn.html diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/tw.js b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/tw.js index 43789147d..a9f28e940 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/tw.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/langs/tw.js @@ -34,20 +34,6 @@ tinyMCELang['lang_insert_link_target_blank'] = ' tinyMCELang['lang_insert_link_target_same'] = 'Åã¥Ü©ó¦P¤@µøµ¡¤¤'; tinyMCELang['lang_insert_link_title'] = '·s¼W¶W³sµ²'; tinyMCELang['lang_insert_link_url'] = '¶W³sµ²'; -tinyMCELang['lang_insert_table_align'] = '¹ï»ô'; -tinyMCELang['lang_insert_table_align_default'] = '¼Ð·Ç'; -tinyMCELang['lang_insert_table_align_left'] = '»ô¥ª'; -tinyMCELang['lang_insert_table_align_middle'] = '¸m¤¤'; -tinyMCELang['lang_insert_table_align_right'] = '»ô¥k'; -tinyMCELang['lang_insert_table_border'] = '®Ø½u'; -tinyMCELang['lang_insert_table_cellpadding'] = '¦rÅé»PÀx¦s®æ¶¡»Ø'; -tinyMCELang['lang_insert_table_cellspacing'] = 'Àx¦s®æ¶¡»Ø'; -tinyMCELang['lang_insert_table_class'] = '¼Ë¦¡'; -tinyMCELang['lang_insert_table_cols'] = '¦æ'; -tinyMCELang['lang_insert_table_height'] = '°ª«×'; -tinyMCELang['lang_insert_table_rows'] = '¦C'; -tinyMCELang['lang_insert_table_title'] = 'ªí®æ¼ÐÃD'; -tinyMCELang['lang_insert_table_width'] = '¼e«×'; tinyMCELang['lang_italic_desc'] = '±×Åé'; tinyMCELang['lang_italic_img'] = "italic.gif"; tinyMCELang['lang_justifycenter_desc'] = '»ô¤¤'; @@ -85,13 +71,6 @@ tinyMCELang['lang_theme_removeformat_desc'] = ' tinyMCELang['lang_theme_style_select'] = '¼Ë¦¡'; tinyMCELang['lang_theme_sub_desc'] = '¤U¼Ð'; tinyMCELang['lang_theme_sup_desc'] = '¤W¼Ð'; -tinyMCELang['lang_theme_table_delete_col_desc'] = '§R°£¤@¦æÀx¦s®æ'; -tinyMCELang['lang_theme_table_delete_row_desc'] = '§R°£¤@¦CÀx¦s®æ'; -tinyMCELang['lang_theme_table_desc'] = 'ªí®æ'; -tinyMCELang['lang_theme_table_insert_col_after_desc'] = '·s¼W¤@¦æÀx¦s®æ(«á)'; -tinyMCELang['lang_theme_table_insert_col_before_desc'] = '·s¼W¤@¦æÀx¦s®æ(«e)'; -tinyMCELang['lang_theme_table_insert_row_after_desc'] = '·s¼W¤@¦CÀx¦s®æ(«á)'; -tinyMCELang['lang_theme_table_insert_row_before_desc'] = '·s¼W¤@¦CÀx¦s®æ(«e)'; tinyMCELang['lang_theme_visualaid_desc'] = 'Åã¥Ü/ÁôÂëD¥i¨£ªº¤¸¯À'; tinyMCELang['lang_underline_desc'] = '©³½u'; tinyMCELang['lang_undo_desc'] = '´_­ì'; @@ -101,4 +80,6 @@ tinyMCELang['lang_theme_path'] = 'Path'; tinyMCELang['lang_cut_desc'] = 'Cut'; tinyMCELang['lang_copy_desc'] = 'Copy'; tinyMCELang['lang_paste_desc'] = 'Paste'; - +tinyMCELang['lang_link_list'] = 'Link list'; +tinyMCELang['lang_image_list'] = 'Image list'; +tinyMCELang['lang_browse'] = 'Browse'; diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/link.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/link.htm index 6f0c27023..0aba3dc32 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/link.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/link.htm @@ -2,6 +2,11 @@ {$lang_insert_link_title} + + {$lang_insert_link_target}: - - - - - - - - - + + + + +{$lang_theme_code_title} + + + + + +

+ + + + + + + + + + + +
{$lang_theme_code_title}
+ +
+
+ + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/default/editor_template.js b/www/extras/tinymce/jscripts/tiny_mce/themes/default/editor_template.js index d83efb2af..e7eb5bb06 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/default/editor_template.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/default/editor_template.js @@ -1,7 +1,4 @@ -function TinyMCE_default_getEditorTemplate() { - var template = new Array(); - - template['html'] = '\ +function TinyMCE_default_getEditorTemplate(){var template=new Array();template['html']='\ \ \ -
\ IFRAME\ @@ -32,120 +29,4 @@ function TinyMCE_default_getEditorTemplate() { \ \
'; - - template['delta_width'] = 0; - template['delta_height'] = -40; - - return template; -} - -/** - * Insert link template function. - */ -function TinyMCE_default_getInsertLinkTemplate() { - var template = new Array(); - - template['file'] = 'link.htm'; - template['width'] = 320; - template['height'] = 145; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_link_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_link_delta_height', 0); - - return template; -} - -/** - * Insert image template function. - */ -function TinyMCE_default_getInsertImageTemplate() { - var template = new Array(); - - template['file'] = 'image.htm'; - template['width'] = 360; - template['height'] = 145; - - // Language specific width and height addons - template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0); - template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0); - - return template; -} - -function TinyMCE_default_handleNodeChange(editor_id, node) { - // Reset old states - tinyMCE.switchClassSticky(editor_id + '_left', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_right', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_center', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_full', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonNormal'); - - // Handle align attributes - alignNode = node; - breakOut = false; - do { - if (!alignNode.getAttribute || !alignNode.getAttribute('align')) - continue; - - switch (alignNode.getAttribute('align').toLowerCase()) { - case "left": - tinyMCE.switchClassSticky(editor_id + '_left', 'mceButtonSelected'); - breakOut = true; - break; - - case "right": - tinyMCE.switchClassSticky(editor_id + '_right', 'mceButtonSelected'); - breakOut = true; - break; - - case "middle": - case "center": - tinyMCE.switchClassSticky(editor_id + '_center', 'mceButtonSelected'); - breakOut = true; - break; - - case "justify": - tinyMCE.switchClassSticky(editor_id + '_full', 'mceButtonSelected'); - breakOut = true; - break; - } - } while (!breakOut && (alignNode = alignNode.parentNode)); - - // Handle elements - do { - switch (node.nodeName.toLowerCase()) { - case "b": - case "strong": - tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonSelected'); - break; - - case "i": - case "em": - tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonSelected'); - break; - - case "u": - tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonSelected'); - break; - - case "strike": - tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonSelected'); - break; - - case "ul": - tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonSelected'); - break; - - case "ol": - tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonSelected'); - break; - } - } while ((node = node.parentNode)); -} +';template['delta_width']=0;template['delta_height']=-40;return template;}function TinyMCE_default_getInsertLinkTemplate(){var template=new Array();template['file']='link.htm';template['width']=320;template['height']=200;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);return template;}function TinyMCE_default_getInsertImageTemplate(){var template=new Array();template['file']='image.htm';template['width']=360;template['height']=200;template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);return template;}function TinyMCE_default_handleNodeChange(editor_id,node){tinyMCE.switchClassSticky(editor_id+'_left','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_right','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_center','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_full','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonNormal');alignNode=node;breakOut=false;do{if(!alignNode.getAttribute||!alignNode.getAttribute('align'))continue;switch(alignNode.getAttribute('align').toLowerCase()){case "left":tinyMCE.switchClassSticky(editor_id+'_left','mceButtonSelected');breakOut=true;break;case "right":tinyMCE.switchClassSticky(editor_id+'_right','mceButtonSelected');breakOut=true;break;case "middle":case "center":tinyMCE.switchClassSticky(editor_id+'_center','mceButtonSelected');breakOut=true;break;case "justify":tinyMCE.switchClassSticky(editor_id+'_full','mceButtonSelected');breakOut=true;break;}}while(!breakOut&&(alignNode=alignNode.parentNode));do{switch(node.nodeName.toLowerCase()){case "b":case "strong":tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonSelected');break;case "i":case "em":tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonSelected');break;case "u":tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonSelected');break;case "strike":tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonSelected');break;case "ul":tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonSelected');break;case "ol":tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonSelected');break;}}while((node=node.parentNode));} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/default/image.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/default/image.htm index 53dbe58b1..4689cf8b8 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/default/image.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/default/image.htm @@ -8,7 +8,7 @@ var src = document.forms[0].src.value; var alt = document.forms[0].alt.value; - window.opener.tinyMCE.insertImage(src, alt, 0, 0, 0); + window.opener.tinyMCE.insertImage(src, alt); top.close(); } } @@ -18,6 +18,7 @@ formObj.src.value = tinyMCE.getWindowArg('src'); formObj.alt.value = tinyMCE.getWindowArg('alt'); + formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action')); window.focus(); } @@ -44,9 +45,9 @@ - + - + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/default/link.htm b/www/extras/tinymce/jscripts/tiny_mce/themes/default/link.htm index 2cecbd262..57b38f495 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/default/link.htm +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/default/link.htm @@ -12,6 +12,7 @@ } document.forms[0].href.value = tinyMCE.getWindowArg('href'); + document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action')); window.focus(); } @@ -48,12 +49,12 @@ + - + - + diff --git a/www/extras/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js b/www/extras/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js index 1e23fe8d5..02bb86f85 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js +++ b/www/extras/tinymce/jscripts/tiny_mce/themes/simple/editor_template.js @@ -1,7 +1,4 @@ -function TinyMCE_simple_getEditorTemplate() { - var template = new Array(); - - template['html'] = '\ +function TinyMCE_simple_getEditorTemplate(){var template=new Array();template['html']='\ \ \ -
\ IFRAME\ @@ -20,51 +17,4 @@ function TinyMCE_simple_getEditorTemplate() { \ \
'; - - template['delta_width'] = 0; - template['delta_height'] = -20; - - return template; -} - -function TinyMCE_simple_handleNodeChange(editor_id, node) { - // Reset old states - tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonNormal'); - tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonNormal'); - - // Handle elements - do { - switch (node.nodeName.toLowerCase()) { - case "b": - case "strong": - tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonSelected'); - break; - - case "i": - case "em": - tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonSelected'); - break; - - case "u": - tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonSelected'); - break; - - case "strike": - tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonSelected'); - break; - - case "ul": - tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonSelected'); - break; - - case "ol": - tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonSelected'); - break; - } - } while ((node = node.parentNode)); -} +';template['delta_width']=0;template['delta_height']=-20;return template;}function TinyMCE_simple_handleNodeChange(editor_id,node){tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonNormal');do{switch(node.nodeName.toLowerCase()){case "b":case "strong":tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonSelected');break;case "i":case "em":tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonSelected');break;case "u":tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonSelected');break;case "strike":tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonSelected');break;case "ul":tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonSelected');break;case "ol":tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonSelected');break;}}while((node=node.parentNode));} \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/tiny_mce.js b/www/extras/tinymce/jscripts/tiny_mce/tiny_mce.js index dbf146c47..09b53617b 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/tiny_mce.js +++ b/www/extras/tinymce/jscripts/tiny_mce/tiny_mce.js @@ -6,4 +6,4 @@ * @author Moxiecode * @copyright Copyright © 2004, Moxiecode Systems AB, All rights reserved. */ - function TinyMCE(){this.instances=new Array();this.stickyClassesLookup=new Array();this.windowArgs=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isMSIE5=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5')!=-1);this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5.0')!=-1);this.isGecko=navigator.userAgent.indexOf('Gecko')!=-1;this.idCounter=0;this.init=TinyMCE_init;this.addMCEControl=TinyMCE_addMCEControl;this.createMCEControl=TinyMCE_createMCEControl;this.triggerSave=TinyMCE_triggerSave;this._convertOnClick=TinyMCE__convertOnClick;this.resetForm=TinyMCE_resetForm;this.execCommand=TinyMCE_execCommand;this.execInstanceCommand=TinyMCE_execInstanceCommand;this._createIFrame=TinyMCE__createIFrame;this.handleEvent=TinyMCE_handleEvent;this.setupContent=TinyMCE_setupContent;this.switchClass=TinyMCE_switchClass;this.restoreAndSwitchClass=TinyMCE_restoreAndSwitchClass;this.switchClassSticky=TinyMCE_switchClassSticky;this.restoreClass=TinyMCE_restoreClass;this.setClassLock=TinyMCE_setClassLock;this.addEvent=TinyMCE_addEvent;this.onLoad=TinyMCE_onLoad;this.removeMCEControl=TinyMCE_removeMCEControl;this._initCleanup=TinyMCE__initCleanup;this._cleanupHTML=TinyMCE__cleanupHTML;this._cleanupAttribute=TinyMCE__cleanupAttribute;this._fixInlineStyles=TinyMCE__fixInlineStyles;this._cleanupElementName=TinyMCE__cleanupElementName;this._verifyClass=TinyMCE__verifyClass;this.cleanupNode=TinyMCE_cleanupNode;this.convertStringToXML=TinyMCE_convertStringToXML;this.insertLink=TinyMCE_insertLink;this.insertImage=TinyMCE_insertImage;this.getElementByAttributeValue=TinyMCE_getElementByAttributeValue;this.getElementsByAttributeValue=TinyMCE_getElementsByAttributeValue;this.getParentBlockElement=TinyMCE_getParentBlockElement;this.getParentElement=TinyMCE_getParentElement;this.getParam=TinyMCE_getParam;this.getLang=TinyMCE_getLang;this.replaceVar=TinyMCE_replaceVar;this.replaceVars=TinyMCE_replaceVars;this.triggerNodeChange=TinyMCE_triggerNodeChange;this.parseURL=TinyMCE_parseURL;this.convertAbsoluteURLToRelativeURL=TinyMCE_convertAbsoluteURLToRelativeURL;this.updateContent=TinyMCE_updateContent;this._customCleanup=TinyMCE__customCleanup;this.getContent=TinyMCE_getContent;this.setContent=TinyMCE_setContent;this.importThemeLanguagePack=TinyMCE_importThemeLanguagePack;this.importPluginLanguagePack=TinyMCE_importPluginLanguagePack;this.applyTemplate=TinyMCE_applyTemplate;this.openWindow=TinyMCE_openWindow;this.handleVisualAid=TinyMCE_handleVisualAid;this.setAttrib=TinyMCE_setAttrib;this.getAttrib=TinyMCE_getAttrib;this._getThemeFunction=TinyMCE__getThemeFunction;this._themeExecCommand=TinyMCE__themeExecCommand;this.getControlHTML=TinyMCE_getControlHTML;this._setHTML=TinyMCE__setHTML;this._getElementById=TinyMCE__getElementById;this.getInstanceById=TinyMCE_getInstanceById;this.getEditorId=TinyMCE_getEditorId;this.queryInstanceCommandValue=TinyMCE_queryInstanceCommandValue;this.queryInstanceCommandState=TinyMCE_queryInstanceCommandState;this.getWindowArg=TinyMCE_getWindowArg;this.setWindowArg=TinyMCE_setWindowArg;this.getCSSClasses=TinyMCE_getCSSClasses;this.regexpReplace=TinyMCE_regexpReplace;this.cleanupEventStr=TinyMCE_cleanupEventStr;this.getAbsPosition=TinyMCE_getAbsPosition;}function TinyMCE_init(settings){var theme;this.settings=settings;function defParam(key,def_val){settings[key]=tinyMCE.getParam(key,def_val);}if(typeof(document.execCommand)=='undefined')return;if(!tinyMCE.baseURL){var elements=document.getElementsByTagName('script');for(var i=0;i');document.write('');document.write('');var themePlugins=tinyMCE.getParam('plugins','',true,',');if(this.settings['plugins']!=''){for(var i=0;i');}}function TinyMCE_confirmAdd(e){if(tinyMCE.isMSIE)var targetElement=event.srcElement;else var targetElement=e.target;var elementId=targetElement.name?targetElement.name:targetElement.id;if(!targetElement.getAttribute('mce_noask')&&confirm(tinyMCELang['lang_edit_confirm']))tinyMCE.addMCEControl(targetElement,elementId,tinyMCE.createMCEControl(tinyMCE.settings));else targetElement.setAttribute('mce_noask','true');}function TinyMCE_updateContent(form_element_name){var formElement=document.getElementById(form_element_name);for(var instanceName in tinyMCE.instances){var instance=tinyMCE.instances[instanceName];if(instance.formElement==formElement){tinyMCE._setHTML(instance.contentWindow.document,instance.formElement.value);if(!tinyMCE.isMSIE)instance.contentWindow.document.body.innerHTML=tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,instance.contentWindow.document.body,instance.visualAid);}}}function TinyMCE_addMCEControl(replace_element,form_element_name,mce_control){var editorId="mce_editor_"+tinyMCE.idCounter++;mce_control.editorId=editorId;this.instances[editorId]=mce_control;mce_control.onAdd(replace_element,form_element_name);}function TinyMCE_createMCEControl(settings){return new TinyMCEControl(settings);}function TinyMCE_triggerSave(skip_cleanup,skip_callback){for(var instanceName in tinyMCE.instances){var instance=tinyMCE.instances[instanceName];tinyMCE.settings['preformatted']=false;if(typeof(skip_cleanup)=="undefined")skip_cleanup=false;if(typeof(skip_callback)=="undefined")skip_callback=false;tinyMCE._setHTML(instance.contentWindow.document,instance.contentWindow.document.body.innerHTML);var cleanedHTML=skip_cleanup?instance.contentWindow.document.body.innerHTML:tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,instance.contentWindow.document.body,this.visualAid,true);if(tinyMCE.settings["encoding"]=="xml"||tinyMCE.settings["encoding"]=="html")cleanedHTML=tinyMCE.convertStringToXML(cleanedHTML);if(!skip_callback&&tinyMCE.settings['save_callback']!="")var content=eval(tinyMCE.settings['save_callback']+"(instance.formTargetElementId,cleanedHTML,instance.contentWindow.document.body);");if((typeof(content)!="undefined")&&content!=null)cleanedHTML=content;cleanedHTML=tinyMCE.regexpReplace(cleanedHTML,"(","(","gi");cleanedHTML=tinyMCE.regexpReplace(cleanedHTML,")",")","gi");cleanedHTML=tinyMCE.regexpReplace(cleanedHTML,";",";","gi");cleanedHTML=tinyMCE.regexpReplace(cleanedHTML,""",""","gi");cleanedHTML=tinyMCE.regexpReplace(cleanedHTML,"^","^","gi");instance.formElement.value=cleanedHTML;}}function TinyMCE__convertOnClick(node){if(tinyMCE.isMSIE5)return;var elms=node.getElementsByTagName("a");for(var i=0;i","gi");content=tinyMCE.regexpReplace(content,"\r","
","gi");content=tinyMCE.regexpReplace(content,"\n","
","gi");}content=tinyMCE._customCleanup("insert_to_editor",content);if(tinyMCE.isMSIE){var styleSheet=document.frames[editor_id].document.createStyleSheet(instance.settings['content_css']);window.setInterval('try{tinyMCE.getCSSClasses(document.frames["'+editor_id+'"].document, "'+editor_id+'");}catch(e){}',500);if(tinyMCE.settings["force_br_newlines"])document.frames[editor_id].document.styleSheets[0].addRule("p","margin: 0px;");var patchFunc=function(){var event=document.frames[editor_id].event;event.target=document.frames[editor_id].document;TinyMCE_handleEvent(event);};document.frames[editor_id].document.body.onbeforepaste=patchFunc;document.frames[editor_id].document.body.onbeforecut=patchFunc;document.frames[editor_id].document.body.onpaste=patchFunc;document.frames[editor_id].document.body.editorId=editor_id;}else{var targetDocument=document.getElementById(editor_id).contentWindow.document;var cssImporter=targetDocument.createElement("link");cssImporter.rel="stylesheet";cssImporter.href=instance.settings['content_css'];if(headArr=targetDocument.getElementsByTagName("head"));headArr[0].appendChild(cssImporter);}if(!tinyMCE.isMSIE){if(tinyMCE.settings['cleanup_on_startup']){var contentElement=instance.contentWindow.document.createElement("body");contentElement.innerHTML=content;instance.contentWindow.document.body.innerHTML=tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,contentElement);}else{var contentElement=instance.contentWindow.document.createElement("body");var doc=instance.contentWindow.document;content=tinyMCE.regexpReplace(content,"","","gi");content=tinyMCE.regexpReplace(content,"","","gi");contentElement.innerHTML=content;var elms=contentElement.getElementsByTagName("img");for(var i=0;i");rng.collapse(false);rng.select();}}if(e.keyCode==8||e.keyCode==46){tinyMCE.selectedElement=e.target;tinyMCE.linkElement=tinyMCE.getParentElement(e.target,"a");tinyMCE.imgElement=tinyMCE.getParentElement(e.target,"img");tinyMCE.triggerNodeChange(false);}return false;break;case "keyup":case "keydown":if(e.target.editorId)tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId];else return;tinyMCE.selectedElement=null;tinyMCE.selectedNode=null;var elm=tinyMCE.selectedInstance.getFocusElement();tinyMCE.linkElement=tinyMCE.getParentElement(elm,"a");tinyMCE.imgElement=tinyMCE.getParentElement(elm,"img");tinyMCE.selectedElement=elm;if(tinyMCE.isGecko&&e.type=="keyup"&&e.keyCode==9)tinyMCE.handleVisualAid(tinyMCE.selectedInstance.contentWindow.document.body,true,tinyMCE.settings['visual']);if(tinyMCE.isMSIE&&tinyMCE.settings['custom_undo_redo']){var keys=new Array(13,45,36,35,33,34,37,38,39,40);var posKey=false;for(var i=0;i18&&e.keyCode!=255)){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.selectedInstance.typing=true;tinyMCE.triggerNodeChange(false);}if(posKey&&e.type=="keyup")tinyMCE.triggerNodeChange(false);var ctrlKeys=new Array(66,73,85,86,88);var keys=new Array(8,46);for(var i=0;i0){for(var i=0;i ";if(tinyMCE.isMSIE&&elementName=="script")return "<"+elementName+elementAttribs+">"+node.text+"";if(node.hasChildNodes()){if(elementName=="p"&&tinyMCE.cleanup_force_br_newlines)output+="";else output+="<"+elementName+elementAttribs+">";for(var i=0;i
";else output+="";}else output+="<"+elementName+elementAttribs+" />";return output;case 3:if(node.parentNode.nodeName.toLowerCase()=="script")return node.nodeValue;return this.convertStringToXML(node.nodeValue);case 8:return "";default:return "[UNKNOWN NODETYPE "+node.nodeType+"]";}}function TinyMCE_convertStringToXML(html_data){var output="";for(var i=0;i','','gi');var html=this.cleanupNode(element);if(tinyMCE.settings['debug'])alert("Cleanup process executed in: "+(new Date().getTime()-startTime)+" ms.");html=tinyMCE.regexpReplace(html,'


','
');html=tinyMCE.regexpReplace(html,'

 


 

','
');if(!tinyMCE.isMSIE){html=html.replace(new RegExp('','g'),"");}if(tinyMCE.settings['apply_source_formatting']){html=html.replace(new RegExp('<(p|div)([^>]*)>','g'),"\n<$1$2>\n");html=html.replace(new RegExp('<\/(p|div)([^>]*)>','g'),"\n\n");html=html.replace(new RegExp('
','g'),"
\n");}if(tinyMCE.settings['force_br_newlines']){var re=new RegExp('

 

','g');html=html.replace(re,"
");}if(html=="
"||html=="

 

")html="";html=tinyMCE._customCleanup(on_save?"get_from_editor":"insert_to_editor",html);if(tinyMCE.settings["preformatted"])return "
"+html+"
";return html;}function TinyMCE_insertLink(href,target,title,onclick){function setAttrib(element,name,value){if(value!=null&&value!="")element.setAttribute(name,value);else element.removeAttribute(name);}this.execCommand("mceAddUndoLevel");if(this.selectedInstance&&this.selectedElement&&this.selectedElement.nodeName.toLowerCase()=="img"){var doc=this.selectedInstance.contentWindow.document;var linkElement=doc.createElement("a");href=eval(tinyMCE.settings['urlconvertor_callback']+"(href, linkElement);");setAttrib(linkElement,'href',href);setAttrib(linkElement,'target',target);setAttrib(linkElement,'title',title);setAttrib(linkElement,'mce_onclick',onclick);linkElement.appendChild(this.selectedElement.cloneNode(true));this.selectedElement.parentNode.replaceChild(linkElement,this.selectedElement);return;}if(!this.linkElement&&this.selectedInstance){this.selectedInstance.contentDocument.execCommand("createlink",false,"#mce_temp_url#");tinyMCE.linkElement=this.getElementByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");var elementArray=this.getElementsByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");for(var i=0;i=strTok2.length){for(var i=0;i=strTok2.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break;}}}if(strTok1.length=strTok1.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break;}}}if(breakPoint==1)return url_to_relative;for(var i=0;i<(strTok1.length-(breakPoint-1));i++)outputString+="../";for(var i=breakPoint-1;i0);if(tinyMCE.settings['custom_undo_redo']){undoIndex=tinyMCE.selectedInstance.undoIndex;undoLevels=tinyMCE.selectedInstance.undoLevels.length;}var plugins=tinyMCE.getParam('plugins','',true,',');for(var i=0;i');}function TinyMCE_importPluginLanguagePack(theme_name,valid_languages){var lang="uk";valid_languages=valid_languages.split(',');for(var i=0;i');}function TinyMCE_applyTemplate(html,args){html=tinyMCE.replaceVar(html,"themeurl",tinyMCE.themeURL);if(typeof(args)!="undefined")html=tinyMCE.replaceVars(html,args);html=tinyMCE.replaceVars(html,tinyMCE.settings);html=tinyMCE.replaceVars(html,tinyMCELang);return html;}function TinyMCE_openWindow(template,args){var html,width,height,x,y,resizable,scrollbars,url;args['mce_template_file']=template['file'];tinyMCE.windowArgs=args;html=template['html'];if(!(width=template['width']))width=320;if(!(height=template['height']))height=200;if(tinyMCE.isMSIE)height+=30;x=parseInt(screen.width/2.0)-(width/2.0);y=parseInt(screen.height/2.0)-(height/2.0);resizable=(args&&args['resizable'])?args['resizable']:"no";scrollbars=(args&&args['scrollbars'])?args['scrollbars']:"no";url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template['file'];for(var name in args)url=tinyMCE.replaceVar(url,name,escape(args[name]));if(html){html=tinyMCE.replaceVar(html,"css",this.settings['popups_css']);html=tinyMCE.applyTemplate(html,args);var win=window.open("","mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog=yes,minimizable="+resizable+",modal=yes,width="+width+",height="+height+",resizable="+resizable);win.document.write(html);win.document.close();win.resizeTo(width,height);win.focus();}else{if(tinyMCE.isMSIE&&resizable!='yes'){var features="resizable:"+resizable+";scroll:"+scrollbars+";status:yes;center:yes;help:no;dialogWidth:"+width+"px;dialogHeight:"+height+"px;";window.showModalDialog(url,window,features);}else{var win=window.open(url,"mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog=yes,minimizable="+resizable+",modal=yes,width="+width+",height="+height+",resizable="+resizable);eval('try { win.resizeTo(width, height); } catch(e) { }');win.focus();}}}function TinyMCE_handleVisualAid(element,deep,state){var tableElement=null;switch(element.nodeName.toLowerCase()){case "table":var cssText=element.getAttribute("border")==0?tinyMCE.settings['visual_table_style']:"";element.style.cssText=state?cssText:"";for(var y=0;y

','g');html_content=html_content.replace(re,"
");}doc.body.innerHTML=html_content;if(tinyMCE.isMSIE&&tinyMCE.settings['fix_content_duplication']){var paras=doc.getElementsByTagName("P");for(var i=0;i<\/o:p>","
");html=tinyMCE.regexpReplace(html," <\/o:p>","");html=tinyMCE.regexpReplace(html,"","");html=tinyMCE.regexpReplace(html,"

<\/p>","");html=tinyMCE.regexpReplace(html,"

<\/p>\r\n

<\/p>","");html=tinyMCE.regexpReplace(html,"

 <\/p>","
");html=tinyMCE.regexpReplace(html,"

\s*(

\s*)?","

");html=tinyMCE.regexpReplace(html,"<\/p>\s*(<\/p>\s*)?","

");}doc.body.innerHTML=html;}}function TinyMCE__getElementById(element_id){var elm=document.getElementById(element_id);if(!elm){for(var j=0;j0){var csses=null;eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(0).rules : doc.styleSheets[0].cssRules;} catch(e) {}");if(!csses)return null;for(var i=0;i0)tinyMCE.cssClasses=output;return output;}function TinyMCE_regexpReplace(in_str,reg_exp,replace_str,opts){if(typeof(opts)=="undefined")opts='g';var re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str);}function TinyMCE_cleanupEventStr(str){str=""+str;str=str.replace('function anonymous()\n{\n','');str=str.replace('\n}','');return str;}function TinyMCE_getAbsPosition(node){var x=0,y=0;var pos=new Object();var parentNode=node;while(parentNode){x+=parentNode.offsetLeft;y+=parentNode.offsetTop;parentNode=parentNode.offsetParent;}pos.absLeft=x;pos.absTop=y;return pos;}function TinyMCEControl(settings){this.undoLevels=new Array();this.undoIndex=0;this.settings=settings;this.settings['theme']=tinyMCE.getParam("theme","default");this.settings['width']=tinyMCE.getParam("width",-1);this.settings['height']=tinyMCE.getParam("height",-1);this.execCommand=TinyMCEControl_execCommand;this.queryCommandValue=TinyMCEControl_queryCommandValue;this.queryCommandState=TinyMCEControl_queryCommandState;this.onAdd=TinyMCEControl_onAdd;this.getFocusElement=TinyMCEControl_getFocusElement;this.autoResetDesignMode=TinyMCEControl_autoResetDesignMode;this._insertPara=TinyMCEControl__insertPara;this._insertSpace=TinyMCEControl__insertSpace;this.selectNode=TinyMCEControl_selectNode;}function TinyMCEControl_selectNode(node,collapse,select_text_node){if(typeof(collapse)=="undefined")collapse=true;if(typeof(select_text_node)=="undefined")select_text_node=false;if(tinyMCE.isMSIE){var rng=this.contentWindow.document.body.createTextRange();rng.moveToElementText(node);if(collapse)sel.collapse(false);rng.select();}else{var rng=this.contentWindow.document.createRange();var sel=this.contentWindow.getSelection();if(select_text_node&&(node.firstChild&&node.firstChild.nodeType==3))rng.selectNodeContents(node.firstChild);else rng.selectNodeContents(node);if(collapse)rng.collapse(true);sel.removeAllRanges();sel.addRange(rng);}var pos=tinyMCE.getAbsPosition(node);var doc=this.contentWindow.document;var scrollX=doc.body.scrollLeft+doc.documentElement.scrollLeft;var scrollY=doc.body.scrollTop+doc.documentElement.scrollTop;var height=tinyMCE.isMSIE?document.getElementById(this.editorId).style.pixelHeight:parseInt(this.targetElement.style.height);if(!(node.absTop>scrollY&&node.absTop<(scrollY-25+height)))this.contentWindow.scrollTo(pos.absLeft,pos.absTop-height+25);tinyMCE.selectedElement=null;if(node.nodeType==1)tinyMCE.selectedElement=node;}function TinyMCEControl__insertPara(){var doc=this.contentWindow.document;var sel=this.contentWindow.getSelection();var win=this.contentWindow;var rngBefore=doc.createRange();rngBefore.setStart(sel.anchorNode,sel.anchorOffset);rngBefore.collapse(true);var rngAfter=doc.createRange();rngAfter.setStart(sel.focusNode,sel.focusOffset);rngAfter.collapse(true);var direct=rngBefore.compareBoundaryPoints(rngBefore.START_TO_END,rngAfter)<0;var startNode=direct?sel.anchorNode:sel.focusNode;var startOffset=direct?sel.anchorOffset:sel.focusOffset;var endNode=direct?sel.focusNode:sel.anchorNode;var endOffset=direct?sel.focusOffset:sel.anchorOffset;var startBlock=tinyMCE.getParentBlockElement(startNode);var endBlock=tinyMCE.getParentBlockElement(endNode);if((startBlock!=null&&startBlock.nodeName.toLowerCase()=="li")||(endBlock!=null&&endBlock.nodeName.toLowerCase()=="li"))return false;if((startBlock!=null&&startBlock.nodeName.toLowerCase()=="table")||(endBlock!=null&&endBlock.nodeName.toLowerCase()=="table"))startBlock=endBlock=null;var paraBefore=(startBlock!=null&&startBlock.nodeName.toLowerCase()=="p")?startBlock.cloneNode(false):doc.createElement("p");var paraAfter=(endBlock!=null&&endBlock.nodeName.toLowerCase()=="p")?endBlock.cloneNode(false):doc.createElement("p");var startChop=startNode;var endChop=endNode;while((startChop.previousSibling&&startChop.previousSibling.nodeName.toLowerCase()!='p')||(startChop.parentNode&&startChop.parentNode!=startBlock&&startChop.parentNode.nodeType!=9))startChop=startChop.previousSibling?startChop.previousSibling:startChop.parentNode;while((endChop.nextSibling&&endChop.nextSibling.nodeName.toLowerCase()!='p')||(endChop.parentNode&&endChop.parentNode!=endBlock&&endChop.parentNode.nodeType!=9))endChop=endChop.nextSibling?endChop.nextSibling:endChop.parentNode;rngBefore.setStartBefore(startChop);rngBefore.setEnd(startNode,startOffset);paraBefore.appendChild(rngBefore.cloneContents());rngAfter.setEndAfter(endChop);rngAfter.setStart(endNode,endOffset);paraAfter.appendChild(rngAfter.cloneContents());if(paraBefore.innerHTML=="")paraBefore.innerHTML=" ";if(paraAfter.innerHTML=="")paraAfter.innerHTML=" ";var rng=doc.createRange();if(!startChop.previousSibling&&startChop.parentNode.nodeName.toLowerCase()=='p')rng.setStartBefore(startChop.parentNode);else{if(rngBefore.startContainer.nodeName.toLowerCase()=='p'&&rngBefore.startOffset==0)rng.setStartBefore(rngBefore.startContainer);else rng.setStart(rngBefore.startContainer,rngBefore.startOffset);}if(!endChop.nextSibling&&endChop.parentNode.nodeName.toLowerCase()=='p')rng.setEndAfter(endChop.parentNode);else rng.setEnd(rngAfter.endContainer,rngAfter.endOffset);rng.deleteContents();rng.insertNode(paraAfter);rng.insertNode(paraBefore);this.selectNode(paraAfter,true,true);return true;}function TinyMCEControl__insertSpace(){return true;}function TinyMCEControl_autoResetDesignMode(){if(!tinyMCE.isMSIE&&tinyMCE.settings['auto_reset_designmode']){var sel=this.contentWindow.getSelection();if(sel.rangeCount==0)this.contentWindow.document.designMode="On";}}function TinyMCEControl_execCommand(command,user_interface,value){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):"";}if(!tinyMCE.isMSIE&&!this.useCSS){this.contentWindow.document.execCommand("useCSS",false,true);this.useCSS=true;}this.contentDocument=this.contentWindow.document;if(tinyMCE._themeExecCommand(this.editorId,this.contentDocument.body,command,user_interface,value))return;if(command!="mceAddUndoLevel"&&command!="Undo"&&command!="Redo"&&command!="mceImage"&&command!="mceLink"&&command!="mceToggleVisualAid"&&(command!="mceInsertTable"&&!user_interface))this.execCommand("mceAddUndoLevel");if(this.getFocusElement()&&this.getFocusElement().nodeName.toLowerCase()=="img"){var align=this.getFocusElement().getAttribute('align');switch(command){case "JustifyLeft":if(align=='left')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','left');tinyMCE.triggerNodeChange();return;case "JustifyCenter":if(align=='middle')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','middle');tinyMCE.triggerNodeChange();return;case "JustifyRight":if(align=='right')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','right');tinyMCE.triggerNodeChange();return;}}if(tinyMCE.settings['force_br_newlines']){var documentRef=this.contentWindow.document;var alignValue="";if(documentRef.selection.type!="Control"){switch(command){case "JustifyLeft":alignValue="left";break;case "JustifyCenter":alignValue="center";break;case "JustifyFull":alignValue="justify";break;case "JustifyRight":alignValue="right";break;}if(alignValue!=""){var rng=documentRef.selection.createRange();if((divElm=tinyMCE.getParentElement(rng.parentElement(),"div"))!=null)divElm.setAttribute("align",alignValue);else if(rng.pasteHTML&&rng.htmlText.length>0)rng.pasteHTML('
'+rng.htmlText+"
");tinyMCE.triggerNodeChange();return;}}}switch(command){case "mceSelectNode":this.selectNode(value);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=value;break;case "mceSelectNodeDepth":var parentNode=this.getFocusElement();for(var i=0;parentNode;i++){if(parentNode.nodeName.toLowerCase()=="body")break;if(parentNode.nodeName.toLowerCase()=="#text"){i--;parentNode=parentNode.parentNode;continue;}if(i==value){this.selectNode(parentNode,false);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=parentNode;return;}parentNode=parentNode.parentNode;}break;case "HiliteColor":if(tinyMCE.isGecko){this.contentDocument.execCommand("useCSS",false,false);this.contentDocument.execCommand('hilitecolor',false,value);this.contentDocument.execCommand("useCSS",false,true);}else this.contentDocument.execCommand('backcolor',false,value);break;case "Cut":case "Copy":case "Paste":var cmdFailed=false;eval('try {this.contentDocument.execCommand(command, user_interface, value);} catch (e) {cmdFailed = true;}');if(tinyMCE.isGecko&&cmdFailed){if(confirm(tinyMCE.getLang('lang_clipboard_msg')))window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html','mceExternal');return;}else tinyMCE.triggerNodeChange();break;case "mceLink":var selectedText="";if(tinyMCE.isMSIE){var documentRef=this.contentWindow.document;var rng=documentRef.selection.createRange();selectedText=rng.text;}else selectedText=this.contentWindow.getSelection().toString();if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0))return;}var href="",target="",title="",onclick="",action="insert";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a")tinyMCE.linkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&getAttrib(tinyMCE.linkElement,'href')=="")tinyMCE.linkElement=null;if(tinyMCE.linkElement){href=getAttrib(tinyMCE.linkElement,'href');target=getAttrib(tinyMCE.linkElement,'target');title=getAttrib(tinyMCE.linkElement,'title');onclick=getAttrib(tinyMCE.linkElement,'mce_onclick');if(onclick=="")onclick=getAttrib(tinyMCE.linkElement,'onclick');onclick=tinyMCE.cleanupEventStr(onclick);mceRealHref=getAttrib(tinyMCE.linkElement,'mce_real_href');if(mceRealHref!="")href=mceRealHref;href=eval(tinyMCE.settings['urlconvertor_callback']+"(href, tinyMCE.linkElement, true);");action="update";}if(this.settings['insertlink_callback']){var returnVal=eval(this.settings['insertlink_callback']+"(href, target, title, onclick, action);");if(returnVal&&returnVal['href'])tinyMCE.insertLink(returnVal['href'],returnVal['target'],returnVal['title'],returnVal['onclick']);}else{tinyMCE.openWindow(this.insertLinkTemplate,{href:href,target:target,title:title,onclick:onclick,action:action});}break;case "mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img")tinyMCE.imgElement=tinyMCE.selectedElement;if(tinyMCE.imgElement){var imgName=getAttrib(tinyMCE.imgElement,'name');if(imgName.substring(0,4)=='mce_')return;src=getAttrib(tinyMCE.imgElement,'src');alt=getAttrib(tinyMCE.imgElement,'alt');if(alt=="")alt=getAttrib(tinyMCE.imgElement,'title');border=getAttrib(tinyMCE.imgElement,'border');hspace=getAttrib(tinyMCE.imgElement,'hspace');vspace=getAttrib(tinyMCE.imgElement,'vspace');width=getAttrib(tinyMCE.imgElement,'width');height=getAttrib(tinyMCE.imgElement,'height');align=getAttrib(tinyMCE.imgElement,'align');onmouseover=getAttrib(tinyMCE.imgElement,'onmouseover');onmouseout=getAttrib(tinyMCE.imgElement,'onmouseout');title=getAttrib(tinyMCE.imgElement,'title');onmouseover=tinyMCE.cleanupEventStr(onmouseover);onmouseout=tinyMCE.cleanupEventStr(onmouseout);mceRealSrc=getAttrib(tinyMCE.imgElement,'mce_real_src');if(mceRealSrc!="")src=mceRealSrc;src=eval(tinyMCE.settings['urlconvertor_callback']+"(src, tinyMCE.imgElement, true);");action="update";}if(this.settings['insertimage_callback']){var returnVal=eval(this.settings['insertimage_callback']+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal['src'])tinyMCE.insertImage(returnVal['src'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vspace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['title'],returnVal['onmouseover'],returnVal['onmouseout']);}else tinyMCE.openWindow(this.insertImageTemplate,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action});break;case "mceCleanupWord":if(tinyMCE.isMSIE){var html=this.contentDocument.body.createTextRange().htmlText;if(html.indexOf('="mso')!=-1){tinyMCE._setHTML(this.contentDocument,this.contentDocument.body.innerHTML);html=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.contentDocument.body,this.visualAid);}this.contentDocument.body.innerHTML=html;}break;case "mceCleanup":tinyMCE._setHTML(this.contentDocument,this.contentDocument.body.innerHTML);var cleanedHTML=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.contentDocument.body,this.visualAid);this.contentDocument.body.innerHTML=cleanedHTML;tinyMCE.triggerNodeChange();break;case "mceAnchor":if(!user_interface){var aElm=tinyMCE.getParentElement(this.getFocusElement(),"a","name");if(aElm){if(value==null||value==""){if(tinyMCE.isMSIE){aElm.outerHTML=aElm.innerHTML;}else{var rng=aElm.ownerDocument.createRange();rng.setStartBefore(aElm);rng.setEndAfter(aElm);rng.deleteContents();rng.insertNode(rng.createContextualFragment(aElm.innerHTML));}}else aElm.setAttribute('name',value);}else{this.contentDocument.execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.contentDocument.body,"font","face","#mce_temp_font#");for(var x=0;x0){value=tinyMCE.replaceVar(value,"selection",selectedText);tinyMCE.execCommand('mceInsertContent',false,value);}tinyMCE.triggerNodeChange();break;case "mceSetAttribute":if(typeof(value)=='object'){var targetElms=(typeof(value['targets'])=="undefined")?"p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address":value['targets'];var targetNode=tinyMCE.getParentElement(this.getFocusElement(),targetElms);if(targetNode){targetNode.setAttribute(value['name'],value['value']);tinyMCE.triggerNodeChange();}}break;case "mceSetCSSClass":var selectedText=false;if(tinyMCE.isMSIE){var documentRef=this.contentWindow.document;var rng=documentRef.selection.createRange();selectedText=(rng.text&&rng.text.length>0);}else selectedText=(this.contentWindow.getSelection().toString().length>0);if(tinyMCE.selectedNode)tinyMCE.selectedElement=tinyMCE.selectedNode;if(selectedText&&!tinyMCE.selectedNode){this.contentDocument.execCommand("removeformat",false,null);this.contentDocument.execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.contentDocument.body,"font","face","#mce_temp_font#");for(var x=0;xcols)cols=rowsAr[i].cells.length;cols=cols;rows=rowsAr.length;border=tinyMCE.getAttrib(tinyMCE.tableElement,'border',border);cellpadding=tinyMCE.getAttrib(tinyMCE.tableElement,'cellpadding',"");cellspacing=tinyMCE.getAttrib(tinyMCE.tableElement,'cellspacing',"");width=tinyMCE.getAttrib(tinyMCE.tableElement,'width',width);height=tinyMCE.getAttrib(tinyMCE.tableElement,'height',height);align=tinyMCE.getAttrib(tinyMCE.tableElement,'align',align);className=tinyMCE.getAttrib(tinyMCE.tableElement,tinyMCE.isMSIE?'className':"class","");if(tinyMCE.isMSIE){width=tinyMCE.tableElement.style.pixelWidth==0?tinyMCE.tableElement.getAttribute("width"):tinyMCE.tableElement.style.pixelWidth;height=tinyMCE.tableElement.style.pixelHeight==0?tinyMCE.tableElement.getAttribute("height"):tinyMCE.tableElement.style.pixelHeight;}action="update";}tinyMCE.openWindow(this.insertTableTemplate,{editor_id:this.editorId,cols:cols,rows:rows,border:border,cellpadding:cellpadding,cellspacing:cellspacing,align:align,width:width,height:height,action:action,className:className});}else{var html='';var cols=2,rows=2,border=0,cellpadding=-1,cellspacing=-1,align,width,height,className;if(typeof(value)=='object'){cols=value['cols'];rows=value['rows'];border=value['border']!=""?value['border']:0;cellpadding=value['cellpadding']!=""?value['cellpadding']:-1;cellspacing=value['cellspacing']!=""?value['cellspacing']:-1;align=value['align'];width=value['width'];height=value['height'];className=value['className'];}if(tinyMCE.tableElement){tinyMCE.setAttrib(tinyMCE.tableElement,'cellPadding',cellpadding);tinyMCE.setAttrib(tinyMCE.tableElement,'cellSpacing',cellspacing);tinyMCE.setAttrib(tinyMCE.tableElement,'border',border);tinyMCE.setAttrib(tinyMCE.tableElement,'width',width);tinyMCE.setAttrib(tinyMCE.tableElement,'height',height);tinyMCE.setAttrib(tinyMCE.tableElement,'align',align,true);tinyMCE.setAttrib(tinyMCE.tableElement,tinyMCE.isMSIE?'className':"class",className,true);if(tinyMCE.isMSIE){tinyMCE.tableElement.style.pixelWidth=(width==null||width=="")?0:width;tinyMCE.tableElement.style.pixelHeight=(height==null||height=="")?0:height;}tinyMCE.handleVisualAid(tinyMCE.tableElement,false,this.visualAid);tinyMCE.tableElement.outerHTML=tinyMCE.tableElement.outerHTML;tinyMCE.triggerNodeChange();return;}html+='";for(var x=0;x';else html+='";}html+="";}html+="
';html+=" 
";this.execCommand('mceInsertContent',false,html);}break;case "mceTableInsertRowBefore":case "mceTableInsertRowAfter":case "mceTableDeleteRow":case "mceTableInsertColBefore":case "mceTableInsertColAfter":case "mceTableDeleteCol":var trElement=tinyMCE.getParentElement(this.getFocusElement(),"tr");var tdElement=tinyMCE.getParentElement(this.getFocusElement(),"td");var tableElement=tinyMCE.getParentElement(this.getFocusElement(),"table");if(!tableElement)return;var documentRef=this.contentWindow.document;var tableBorder=tableElement.getAttribute("border");var visualAidStyle=this.visualAid?tinyMCE.settings['visual_table_style']:"";if(tableElement.firstChild&&tableElement.firstChild.nodeName.toLowerCase()=="tbody")tableElement=tableElement.firstChild;if(tableElement&&trElement){switch(command){case "mceTableInsertRowBefore":var numcells=trElement.cells.length;var rowCount=0;var tmpTR=trElement;while(tmpTR){if(tmpTR.nodeName.toLowerCase()=="tr")rowCount++;tmpTR=tmpTR.previousSibling;}var r=tableElement.insertRow(rowCount==0?1:rowCount-1);for(var i=0;inumCols)numCols=tableElement.rows[y].cells.length;}if(numCols<=1){if(tinyMCE.isGecko)this.selectNode(selElm);tableElement.parentNode.removeChild(tableElement);tinyMCE.triggerNodeChange();return;}for(var y=0;y0)selElm=tableElement.rows[0].cells[index-1];if(tinyMCE.isGecko)this.selectNode(selElm);break;}tinyMCE.triggerNodeChange();}break;case "mceAddUndoLevel":if(tinyMCE.settings['custom_undo_redo']){var customUndoLevels=tinyMCE.settings['custom_undo_redo_levels'];var newHTML=this.contentWindow.document.body.innerHTML;if(newHTML!=this.undoLevels[this.undoLevels.length-1]){if(customUndoLevels!=-1&&this.undoLevels.length>customUndoLevels){for(var i=0;i0){this.undoIndex--;this.contentWindow.document.body.innerHTML=this.undoLevels[this.undoIndex];}tinyMCE.triggerNodeChange();}else this.contentDocument.execCommand(command,user_interface,value);break;case "Redo":if(tinyMCE.settings['custom_undo_redo']){if(this.undoIndex<(this.undoLevels.length-1)){this.undoIndex++;this.contentWindow.document.body.innerHTML=this.undoLevels[this.undoIndex];}tinyMCE.triggerNodeChange();}else this.contentDocument.execCommand(command,user_interface,value);break;case "mceToggleVisualAid":this.visualAid=!this.visualAid;tinyMCE.handleVisualAid(this.contentWindow.document.body,true,this.visualAid);tinyMCE.triggerNodeChange();break;default:this.contentDocument.execCommand(command,user_interface,value);tinyMCE.triggerNodeChange();}}function TinyMCE_getControlHTML(control_name){var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+"_getControlHTML";if(eval("typeof("+templateFunction+")")!='undefined'){var html=eval(templateFunction+"('"+control_name+"');");if(html!="")return tinyMCE.replaceVar(html,"pluginurl",tinyMCE.baseURL+"/plugins/"+themePlugins[i]);}}return eval('TinyMCE_'+tinyMCE.settings['theme']+"_getControlHTML"+"('"+control_name+"');");}function TinyMCE__themeExecCommand(editor_id,element,command,user_interface,value){var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+"_execCommand";if(eval("typeof("+templateFunction+")")!='undefined'){if(eval(templateFunction+"(editor_id, element, command, user_interface, value);"))return true;}}templateFunction='TinyMCE_'+tinyMCE.settings['theme']+"_execCommand";if(eval("typeof("+templateFunction+")")!='undefined')return eval(templateFunction+"(editor_id, element, command, user_interface, value);");return false;}function TinyMCE__getThemeFunction(suffix,skip_plugins){if(skip_plugins)return 'TinyMCE_'+tinyMCE.settings['theme']+suffix;var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+suffix;if(eval("typeof("+templateFunction+")")!='undefined')return templateFunction;}return 'TinyMCE_'+tinyMCE.settings['theme']+suffix;}function TinyMCEControl_queryCommandValue(command){return this.contentWindow.document.queryCommandValue(command);}function TinyMCEControl_queryCommandState(command){return this.contentWindow.document.queryCommandState(command);}function TinyMCEControl_onAdd(replace_element,form_element_name){tinyMCE.themeURL=tinyMCE.baseURL+"/themes/"+this.settings['theme'];this.settings['themeurl']=tinyMCE.themeURL;if(!replace_element){alert("Error: Could not find the target element.");return false;}var templateFunction=tinyMCE._getThemeFunction('_getInsertTableTemplate');if(eval("typeof("+templateFunction+")")!='undefined')this.insertTableTemplate=eval(templateFunction+'(this.settings);');var templateFunction=tinyMCE._getThemeFunction('_getInsertLinkTemplate');if(eval("typeof("+templateFunction+")")!='undefined')this.insertLinkTemplate=eval(templateFunction+'(this.settings);');var templateFunction=tinyMCE._getThemeFunction('_getInsertImageTemplate');if(eval("typeof("+templateFunction+")")!='undefined')this.insertImageTemplate=eval(templateFunction+'(this.settings);');var templateFunction=tinyMCE._getThemeFunction('_getEditorTemplate');if(eval("typeof("+templateFunction+")")=='undefined'){alert("Error: Could not find the template function: "+templateFunction);return false;}var editorTemplate=eval(templateFunction+'(this.settings, this.editorId);');var deltaWidth=editorTemplate['delta_width']?editorTemplate['delta_width']:0;var deltaHeight=editorTemplate['delta_height']?editorTemplate['delta_height']:0;var html=''+editorTemplate['html'];var templateFunction=tinyMCE._getThemeFunction('_handleNodeChange',true);if(eval("typeof("+templateFunction+")")!='undefined')this.settings['handleNodeChangeCallback']=templateFunction;html=tinyMCE.replaceVar(html,"editor_id",this.editorId);html=tinyMCE.replaceVar(html,"default_document",tinyMCE.baseURL+"/blank.htm");this.settings['default_document']=tinyMCE.baseURL+"/blank.htm";this.settings['old_width']=this.settings['width'];this.settings['old_height']=this.settings['height'];if(this.settings['width']==-1)this.settings['width']=replace_element.offsetWidth;if(this.settings['height']==-1)this.settings['height']=replace_element.offsetHeight;this.settings['area_width']=this.settings['width'];this.settings['area_height']=this.settings['height'];this.settings['area_width']+=deltaWidth;this.settings['area_height']+=deltaHeight;if((""+this.settings['width']).indexOf('%')!=-1)this.settings['area_width']="100%";if((""+this.settings['height']).indexOf('%')!=-1)this.settings['area_height']="100%";if((""+replace_element.style.width).indexOf('%')!=-1){this.settings['width']=replace_element.style.width;this.settings['area_width']="100%";}if((""+replace_element.style.height).indexOf('%')!=-1){this.settings['height']=replace_element.style.height;this.settings['area_height']="100%";}html=tinyMCE.applyTemplate(html);this.settings['width']=this.settings['old_width'];this.settings['height']=this.settings['old_height'];this.visualAid=this.settings['visual'];this.formTargetElementId=form_element_name;if(replace_element.nodeName.toLowerCase()=="textarea")this.startContent=replace_element.value;else this.startContent=replace_element.innerHTML;if(replace_element.nodeName.toLowerCase()!="textarea"){this.oldTargetElement=replace_element.cloneNode(true);if(tinyMCE.settings['debug'])html+='';else html+='';html+='';if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.replaceChild(fragment,replace_element);}else replace_element.outerHTML=html;}else{html+='';this.oldTargetElement=replace_element;if(!tinyMCE.settings['debug'])this.oldTargetElement.style.display="none";if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.insertBefore(fragment,replace_element);}else replace_element.insertAdjacentHTML("beforeBegin",html);}var dynamicIFrame=false;var tElm=document.getElementById(this.editorId);if(!tinyMCE.isMSIE){if(tElm&&tElm.nodeName.toLowerCase()=="span"){tElm=tinyMCE._createIFrame(tElm);dynamicIFrame=true;}this.targetElement=tElm;this.contentDocument=tElm.contentDocument;this.contentWindow=tElm.contentWindow;}else{if(tElm&&tElm.nodeName.toLowerCase()=="span")tElm=tinyMCE._createIFrame(tElm);else tElm=document.frames[this.editorId];this.targetElement=tElm;this.contentDocument=tElm.window.document;this.contentWindow=tElm.window;this.contentDocument.designMode="on";}var doc=this.contentDocument;if(dynamicIFrame){var html=""+''+''+''+'blank_page'+''+''+''+''+'';try{this.contentWindow.document.designMode="on";doc.open();doc.write(html);doc.close();}catch(e){this.contentWindow.document.location.href=tinyMCE.baseURL+"/blank.htm";}}if(tinyMCE.isMSIE)window.setTimeout("TinyMCE_addEventHandlers('"+this.editorId+"');",1);tinyMCE.setupContent(this.editorId);return true;}function TinyMCEControl_getFocusElement(){if(tinyMCE.isMSIE){var documentRef=this.contentWindow.document;var rng=documentRef.selection.createRange();var elm=rng.item?rng.item(0):rng.parentElement();}else{var sel=this.contentWindow.getSelection();var elm=sel.anchorNode;if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img")elm=tinyMCE.selectedElement;}return elm;}var tinyMCE=new TinyMCE();var tinyMCELang=new Array(); \ No newline at end of file + function TinyMCE(){this.instances=new Array();this.stickyClassesLookup=new Array();this.windowArgs=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isMSIE5=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5')!=-1);this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf('MSIE 5.0')!=-1);this.isGecko=navigator.userAgent.indexOf('Gecko')!=-1;this.idCounter=0;this.init=TinyMCE_init;this.addMCEControl=TinyMCE_addMCEControl;this.createMCEControl=TinyMCE_createMCEControl;this.triggerSave=TinyMCE_triggerSave;this._convertOnClick=TinyMCE__convertOnClick;this.resetForm=TinyMCE_resetForm;this.execCommand=TinyMCE_execCommand;this.execInstanceCommand=TinyMCE_execInstanceCommand;this._createIFrame=TinyMCE__createIFrame;this.handleEvent=TinyMCE_handleEvent;this.setupContent=TinyMCE_setupContent;this.switchClass=TinyMCE_switchClass;this.restoreAndSwitchClass=TinyMCE_restoreAndSwitchClass;this.switchClassSticky=TinyMCE_switchClassSticky;this.restoreClass=TinyMCE_restoreClass;this.setClassLock=TinyMCE_setClassLock;this.addEvent=TinyMCE_addEvent;this.onLoad=TinyMCE_onLoad;this.removeMCEControl=TinyMCE_removeMCEControl;this._initCleanup=TinyMCE__initCleanup;this._cleanupHTML=TinyMCE__cleanupHTML;this._cleanupAttribute=TinyMCE__cleanupAttribute;this._fixInlineStyles=TinyMCE__fixInlineStyles;this._cleanupElementName=TinyMCE__cleanupElementName;this._verifyClass=TinyMCE__verifyClass;this.cleanupNode=TinyMCE_cleanupNode;this.convertStringToXML=TinyMCE_convertStringToXML;this.insertLink=TinyMCE_insertLink;this.insertImage=TinyMCE_insertImage;this.getElementByAttributeValue=TinyMCE_getElementByAttributeValue;this.getElementsByAttributeValue=TinyMCE_getElementsByAttributeValue;this.getParentBlockElement=TinyMCE_getParentBlockElement;this.getParentElement=TinyMCE_getParentElement;this.getParam=TinyMCE_getParam;this.getLang=TinyMCE_getLang;this.replaceVar=TinyMCE_replaceVar;this.replaceVars=TinyMCE_replaceVars;this.triggerNodeChange=TinyMCE_triggerNodeChange;this.parseURL=TinyMCE_parseURL;this.convertAbsoluteURLToRelativeURL=TinyMCE_convertAbsoluteURLToRelativeURL;this.updateContent=TinyMCE_updateContent;this._customCleanup=TinyMCE__customCleanup;this.getContent=TinyMCE_getContent;this.setContent=TinyMCE_setContent;this.importThemeLanguagePack=TinyMCE_importThemeLanguagePack;this.importPluginLanguagePack=TinyMCE_importPluginLanguagePack;this.applyTemplate=TinyMCE_applyTemplate;this.openWindow=TinyMCE_openWindow;this.handleVisualAid=TinyMCE_handleVisualAid;this.setAttrib=TinyMCE_setAttrib;this.getAttrib=TinyMCE_getAttrib;this._getThemeFunction=TinyMCE__getThemeFunction;this._themeExecCommand=TinyMCE__themeExecCommand;this.getControlHTML=TinyMCE_getControlHTML;this._setHTML=TinyMCE__setHTML;this._getElementById=TinyMCE__getElementById;this.getInstanceById=TinyMCE_getInstanceById;this.getEditorId=TinyMCE_getEditorId;this.queryInstanceCommandValue=TinyMCE_queryInstanceCommandValue;this.queryInstanceCommandState=TinyMCE_queryInstanceCommandState;this.getWindowArg=TinyMCE_getWindowArg;this.setWindowArg=TinyMCE_setWindowArg;this.getCSSClasses=TinyMCE_getCSSClasses;this.regexpReplace=TinyMCE_regexpReplace;this.cleanupEventStr=TinyMCE_cleanupEventStr;this.getAbsPosition=TinyMCE_getAbsPosition;this.openFileBrowser=TinyMCE_openFileBrowser;}function TinyMCE_init(settings){var theme;this.settings=settings;function defParam(key,def_val){settings[key]=tinyMCE.getParam(key,def_val);}if(typeof(document.execCommand)=='undefined')return;if(!tinyMCE.baseURL){var elements=document.getElementsByTagName('script');for(var i=0;i');document.write('');document.write('');var themePlugins=tinyMCE.getParam('plugins','',true,',');if(this.settings['plugins']!=''){for(var i=0;i');}}function TinyMCE_confirmAdd(e){if(tinyMCE.isMSIE)var targetElement=event.srcElement;else var targetElement=e.target;var elementId=targetElement.name?targetElement.name:targetElement.id;if(!targetElement.getAttribute('mce_noask')&&confirm(tinyMCELang['lang_edit_confirm']))tinyMCE.addMCEControl(targetElement,elementId,tinyMCE.createMCEControl(tinyMCE.settings));else targetElement.setAttribute('mce_noask','true');}function TinyMCE_updateContent(form_element_name){var formElement=document.getElementById(form_element_name);for(var instanceName in tinyMCE.instances){var instance=tinyMCE.instances[instanceName];if(instance.formElement==formElement){tinyMCE._setHTML(instance.contentWindow.document,instance.formElement.value);if(!tinyMCE.isMSIE)instance.contentWindow.document.body.innerHTML=tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,instance.contentWindow.document.body,instance.visualAid);}}}function TinyMCE_addMCEControl(replace_element,form_element_name,mce_control){var editorId="mce_editor_"+tinyMCE.idCounter++;mce_control.editorId=editorId;this.instances[editorId]=mce_control;mce_control.onAdd(replace_element,form_element_name);}function TinyMCE_createMCEControl(settings){return new TinyMCEControl(settings);}function TinyMCE_triggerSave(skip_cleanup,skip_callback){for(var instanceName in tinyMCE.instances){var instance=tinyMCE.instances[instanceName];tinyMCE.settings['preformatted']=false;if(typeof(skip_cleanup)=="undefined")skip_cleanup=false;if(typeof(skip_callback)=="undefined")skip_callback=false;tinyMCE._setHTML(instance.contentWindow.document,instance.contentWindow.document.body.innerHTML);var htm=skip_cleanup?instance.contentWindow.document.body.innerHTML:tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,instance.contentWindow.document.body,this.visualAid,true);if(tinyMCE.settings["encoding"]=="xml"||tinyMCE.settings["encoding"]=="html")htm=tinyMCE.convertStringToXML(htm);if(!skip_callback&&tinyMCE.settings['save_callback']!="")var content=eval(tinyMCE.settings['save_callback']+"(instance.formTargetElementId,htm,instance.contentWindow.document.body);");if((typeof(content)!="undefined")&&content!=null)htm=content;htm=tinyMCE.regexpReplace(htm,"(","(","gi");htm=tinyMCE.regexpReplace(htm,")",")","gi");htm=tinyMCE.regexpReplace(htm,";",";","gi");htm=tinyMCE.regexpReplace(htm,""",""","gi");htm=tinyMCE.regexpReplace(htm,"^","^","gi");instance.formElement.value=htm;}}function TinyMCE__convertOnClick(node){if(tinyMCE.isMSIE5)return;var elms=node.getElementsByTagName("a");for(var i=0;i","gi");content=tinyMCE.regexpReplace(content,"\r","
","gi");content=tinyMCE.regexpReplace(content,"\n","
","gi");}content=tinyMCE._customCleanup("insert_to_editor",content);if(tinyMCE.isMSIE){var styleSheet=document.frames[editor_id].document.createStyleSheet(instance.settings['content_css']);window.setInterval('try{tinyMCE.getCSSClasses(document.frames["'+editor_id+'"].document, "'+editor_id+'");}catch(e){}',500);if(tinyMCE.settings["force_br_newlines"])document.frames[editor_id].document.styleSheets[0].addRule("p","margin: 0px;");var patchFunc=function(){var event=document.frames[editor_id].event;event.target=document.frames[editor_id].document;TinyMCE_handleEvent(event);};var body=document.frames[editor_id].document.body;body.onbeforepaste=patchFunc;body.onbeforecut=patchFunc;body.onpaste=patchFunc;body.editorId=editor_id;}else{var targetDocument=document.getElementById(editor_id).contentWindow.document;var cssImporter=targetDocument.createElement("link");cssImporter.rel="stylesheet";cssImporter.href=instance.settings['content_css'];if(headArr=targetDocument.getElementsByTagName("head"));headArr[0].appendChild(cssImporter);}if(!tinyMCE.isMSIE){if(tinyMCE.settings['force_p_newlines']){content=content.replace(new RegExp('<>','g'),"");}if(tinyMCE.settings['cleanup_on_startup']){var contentElement=instance.contentWindow.document.createElement("body");contentElement.innerHTML=content;instance.contentWindow.document.body.innerHTML=tinyMCE._cleanupHTML(instance.contentWindow.document,this.settings,contentElement);}else{var contentElement=instance.contentWindow.document.createElement("body");var doc=instance.contentWindow.document;content=tinyMCE.regexpReplace(content,"","","gi");content=tinyMCE.regexpReplace(content,"","","gi");contentElement.innerHTML=content;var elms=contentElement.getElementsByTagName("img");for(var i=0;i");rng.collapse(false);rng.select();tinyMCE.triggerNodeChange(false);return false;}}if(e.keyCode==8||e.keyCode==46){tinyMCE.selectedElement=e.target;tinyMCE.linkElement=tinyMCE.getParentElement(e.target,"a");tinyMCE.imgElement=tinyMCE.getParentElement(e.target,"img");tinyMCE.triggerNodeChange(false);}return false;break;case "keyup":case "keydown":if(e.target.editorId)tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId];else return;if(tinyMCE.isGecko&&tinyMCE.settings['force_p_newlines']&&(e.keyCode==8||e.keyCode==46)&&!e.shiftKey){if(tinyMCE.selectedInstance._handleBackSpace()){e.preventDefault();return false;}}tinyMCE.selectedElement=null;tinyMCE.selectedNode=null;var elm=tinyMCE.selectedInstance.getFocusElement();tinyMCE.linkElement=tinyMCE.getParentElement(elm,"a");tinyMCE.imgElement=tinyMCE.getParentElement(elm,"img");tinyMCE.selectedElement=elm;if(tinyMCE.isGecko&&e.type=="keyup"&&e.keyCode==9)tinyMCE.handleVisualAid(tinyMCE.selectedInstance.contentWindow.document.body,true,tinyMCE.settings['visual']);if(tinyMCE.isMSIE&&tinyMCE.settings['custom_undo_redo']){var keys=new Array(13,45,36,35,33,34,37,38,39,40);var posKey=false;for(var i=0;i18&&e.keyCode!=255)){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.selectedInstance.typing=true;tinyMCE.triggerNodeChange(false);}if(posKey&&e.type=="keyup")tinyMCE.triggerNodeChange(false);var ctrlKeys=new Array(66,73,85,86,88);var keys=new Array(8,46);for(var i=0;i0){for(var i=0;i ";if(tinyMCE.isMSIE&&elementName=="script")return "<"+elementName+elementAttribs+">"+node.text+"";if(node.hasChildNodes()){if(elementName=="p"&&tinyMCE.cleanup_force_br_newlines)output+="";else output+="<"+elementName+elementAttribs+">";for(var i=0;i
";else output+="";}else{if(elementName=="a")output+="<"+elementName+elementAttribs+">";else{output+="<"+elementName+elementAttribs+" />";}}return output;case 3:if(node.parentNode.nodeName.toLowerCase()=="script")return node.nodeValue;return this.convertStringToXML(node.nodeValue);case 8:return "";default:return "[UNKNOWN NODETYPE "+node.nodeType+"]";}}function TinyMCE_convertStringToXML(html_data){var output="";for(var i=0;i','','gi');var html=this.cleanupNode(element);if(tinyMCE.settings['debug'])alert("Cleanup process executed in: "+(new Date().getTime()-startTime)+" ms.");html=tinyMCE.regexpReplace(html,'


','
');html=tinyMCE.regexpReplace(html,'

 


 

','
');if(!tinyMCE.isMSIE){html=html.replace(new RegExp('','g'),"");}if(tinyMCE.settings['apply_source_formatting']){html=html.replace(new RegExp('<(p|div)([^>]*)>','g'),"\n<$1$2>\n");html=html.replace(new RegExp('<\/(p|div)([^>]*)>','g'),"\n\n");html=html.replace(new RegExp('
','g'),"
\n");}if(tinyMCE.settings['force_br_newlines']){var re=new RegExp('

 

','g');html=html.replace(re,"
");}if(tinyMCE.settings['force_p_newlines']){var re=new RegExp('<>','g');html=html.replace(re,"");}if(html=="
"||html=="

 

")html="";html=tinyMCE._customCleanup(on_save?"get_from_editor":"insert_to_editor",html);if(tinyMCE.settings["preformatted"])return "
"+html+"
";return html;}function TinyMCE_insertLink(href,target,title,onclick){function setAttrib(element,name,value){if(value!=null&&value!="")element.setAttribute(name,value);else element.removeAttribute(name);}this.execCommand("mceAddUndoLevel");if(this.selectedInstance&&this.selectedElement&&this.selectedElement.nodeName.toLowerCase()=="img"){var doc=this.selectedInstance.contentWindow.document;var linkElement=doc.createElement("a");href=eval(tinyMCE.settings['urlconvertor_callback']+"(href, linkElement);");setAttrib(linkElement,'href',href);setAttrib(linkElement,'target',target);setAttrib(linkElement,'title',title);setAttrib(linkElement,'mce_onclick',onclick);linkElement.appendChild(this.selectedElement.cloneNode(true));this.selectedElement.parentNode.replaceChild(linkElement,this.selectedElement);return;}if(!this.linkElement&&this.selectedInstance){this.selectedInstance.contentDocument.execCommand("createlink",false,"#mce_temp_url#");tinyMCE.linkElement=this.getElementByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");var elementArray=this.getElementsByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");for(var i=0;i=strTok2.length){for(var i=0;i=strTok2.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break;}}}if(strTok1.length=strTok1.length||strTok1[i]!=strTok2[i]){breakPoint=i+1;break;}}}if(breakPoint==1)return url_to_relative;for(var i=0;i<(strTok1.length-(breakPoint-1));i++)outputString+="../";for(var i=breakPoint-1;i0);if(tinyMCE.settings['custom_undo_redo']){undoIndex=inst.undoIndex;undoLevels=inst.undoLevels.length;}var plugins=tinyMCE.getParam('plugins','',true,',');for(var i=0;i');}function TinyMCE_importPluginLanguagePack(theme_name,valid_languages){var lang="en";valid_languages=valid_languages.split(',');for(var i=0;i');}function TinyMCE_applyTemplate(html,args){html=tinyMCE.replaceVar(html,"themeurl",tinyMCE.themeURL);if(typeof(args)!="undefined")html=tinyMCE.replaceVars(html,args);html=tinyMCE.replaceVars(html,tinyMCE.settings);html=tinyMCE.replaceVars(html,tinyMCELang);return html;}function TinyMCE_openWindow(template,args){var html,width,height,x,y,resizable,scrollbars,url;args['mce_template_file']=template['file'];tinyMCE.windowArgs=args;html=template['html'];if(!(width=template['width']))width=320;if(!(height=template['height']))height=200;if(tinyMCE.isMSIE)height+=30;x=parseInt(screen.width/2.0)-(width/2.0);y=parseInt(screen.height/2.0)-(height/2.0);resizable=(args&&args['resizable'])?args['resizable']:"no";scrollbars=(args&&args['scrollbars'])?args['scrollbars']:"no";url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template['file'];for(var name in args)url=tinyMCE.replaceVar(url,name,escape(args[name]));if(html){html=tinyMCE.replaceVar(html,"css",this.settings['popups_css']);html=tinyMCE.applyTemplate(html,args);var win=window.open("","mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog=yes,minimizable="+resizable+",modal=yes,width="+width+",height="+height+",resizable="+resizable);win.document.write(html);win.document.close();win.resizeTo(width,height);win.focus();}else{if(tinyMCE.isMSIE&&resizable!='yes'){var features="resizable:"+resizable+";scroll:"+scrollbars+";status:yes;center:yes;help:no;dialogWidth:"+width+"px;dialogHeight:"+height+"px;";window.showModalDialog(url,window,features);}else{var win=window.open(url,"mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog=yes,minimizable="+resizable+",modal=yes,width="+width+",height="+height+",resizable="+resizable);eval('try { win.resizeTo(width, height); } catch(e) { }');win.focus();}}}function TinyMCE_handleVisualAid(element,deep,state){var tableElement=null;switch(element.nodeName.toLowerCase()){case "table":var cssText=element.getAttribute("border")==0?tinyMCE.settings['visual_table_style']:"";var attribValue=element.style.pixelWidth==0?element.getAttribute("width"):element.style.pixelWidth;element.setAttribute("width",attribValue);attribValue=element.style.pixelHeight==0?element.getAttribute("height"):element.style.pixelHeight;element.setAttribute("height",attribValue);element.style.cssText=state?cssText:"";for(var y=0;y

','g');html_content=html_content.replace(re,"
");}doc.body.innerHTML=html_content;if(tinyMCE.isMSIE&&tinyMCE.settings['fix_content_duplication']){var paras=doc.getElementsByTagName("P");for(var i=0;i<\/o:p>","
");html=tinyMCE.regexpReplace(html," <\/o:p>","");html=tinyMCE.regexpReplace(html,"","");html=tinyMCE.regexpReplace(html,"

<\/p>","");html=tinyMCE.regexpReplace(html,"

<\/p>\r\n

<\/p>","");html=tinyMCE.regexpReplace(html,"

 <\/p>","
");html=tinyMCE.regexpReplace(html,"

\s*(

\s*)?","

");html=tinyMCE.regexpReplace(html,"<\/p>\s*(<\/p>\s*)?","

");}doc.body.innerHTML=html;}}function TinyMCE__getElementById(element_id){var elm=document.getElementById(element_id);if(!elm){for(var j=0;j0){var csses=null;eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(0).rules : doc.styleSheets[0].cssRules;} catch(e) {}");if(!csses)return null;for(var i=0;i0)tinyMCE.cssClasses=output;return output;}function TinyMCE_regexpReplace(in_str,reg_exp,replace_str,opts){if(typeof(opts)=="undefined")opts='g';var re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str);}function TinyMCE_cleanupEventStr(str){str=""+str;str=str.replace('function anonymous()\n{\n','');str=str.replace('\n}','');return str;}function TinyMCE_getAbsPosition(node){var x=0,y=0;var pos=new Object();var parentNode=node;while(parentNode){x+=parentNode.offsetLeft;y+=parentNode.offsetTop;parentNode=parentNode.offsetParent;}pos.absLeft=x;pos.absTop=y;return pos;}function TinyMCE_openFileBrowser(field_name,url,type){var cb=tinyMCE.getParam("file_browser_callback");if(eval('typeof('+cb+')')=="undefined")alert("Callback function: "+cb+" could not be found.");else eval(cb+"(field_name, url, type);");}function TinyMCEControl(settings){this.undoLevels=new Array();this.undoIndex=0;this.settings=settings;this.settings['theme']=tinyMCE.getParam("theme","default");this.settings['width']=tinyMCE.getParam("width",-1);this.settings['height']=tinyMCE.getParam("height",-1);this.execCommand=TinyMCEControl_execCommand;this.queryCommandValue=TinyMCEControl_queryCommandValue;this.queryCommandState=TinyMCEControl_queryCommandState;this.onAdd=TinyMCEControl_onAdd;this.getFocusElement=TinyMCEControl_getFocusElement;this.autoResetDesignMode=TinyMCEControl_autoResetDesignMode;this._insertPara=TinyMCEControl__insertPara;this._insertSpace=TinyMCEControl__insertSpace;this._handleBackSpace=TinyMCEControl__handleBackSpace;this.selectNode=TinyMCEControl_selectNode;}function TinyMCEControl_selectNode(node,collapse,select_text_node){if(typeof(collapse)=="undefined")collapse=true;if(typeof(select_text_node)=="undefined")select_text_node=false;if(tinyMCE.isMSIE){var rng=this.contentWindow.document.body.createTextRange();rng.moveToElementText(node);if(collapse)rng.collapse(false);rng.select();}else{var rng=this.contentWindow.document.createRange();var sel=this.contentWindow.getSelection();if(select_text_node&&(node.firstChild&&node.firstChild.nodeType==3))rng.selectNodeContents(node.firstChild);else rng.selectNodeContents(node);if(collapse)rng.collapse(true);sel.removeAllRanges();sel.addRange(rng);}var pos=tinyMCE.getAbsPosition(node);var doc=this.contentWindow.document;var scrollX=doc.body.scrollLeft+doc.documentElement.scrollLeft;var scrollY=doc.body.scrollTop+doc.documentElement.scrollTop;var height=tinyMCE.isMSIE?document.getElementById(this.editorId).style.pixelHeight:parseInt(this.targetElement.style.height);if(!tinyMCE.settings['auto_resize']&&!(node.absTop>scrollY&&node.absTop<(scrollY-25+height)))this.contentWindow.scrollTo(pos.absLeft,pos.absTop-height+25);tinyMCE.selectedElement=null;if(node.nodeType==1)tinyMCE.selectedElement=node;}function TinyMCEControl__insertPara(){var doc=this.contentWindow.document;var sel=this.contentWindow.getSelection();var win=this.contentWindow;var rngBefore=doc.createRange();rngBefore.setStart(sel.anchorNode,sel.anchorOffset);rngBefore.collapse(true);var rngAfter=doc.createRange();rngAfter.setStart(sel.focusNode,sel.focusOffset);rngAfter.collapse(true);var direct=rngBefore.compareBoundaryPoints(rngBefore.START_TO_END,rngAfter)<0;var startNode=direct?sel.anchorNode:sel.focusNode;var startOffset=direct?sel.anchorOffset:sel.focusOffset;var endNode=direct?sel.focusNode:sel.anchorNode;var endOffset=direct?sel.focusOffset:sel.anchorOffset;var startBlock=tinyMCE.getParentBlockElement(startNode);var endBlock=tinyMCE.getParentBlockElement(endNode);if((startBlock!=null&&startBlock.nodeName.toLowerCase()=="li")||(endBlock!=null&&endBlock.nodeName.toLowerCase()=="li"))return false;if((startBlock!=null&&startBlock.nodeName.toLowerCase()=="table")||(endBlock!=null&&endBlock.nodeName.toLowerCase()=="table"))startBlock=endBlock=null;var paraBefore=(startBlock!=null&&startBlock.nodeName.toLowerCase()=="p")?startBlock.cloneNode(false):doc.createElement("p");var paraAfter=(endBlock!=null&&endBlock.nodeName.toLowerCase()=="p")?endBlock.cloneNode(false):doc.createElement("p");var startChop=startNode;var endChop=endNode;while((startChop.previousSibling&&startChop.previousSibling.nodeName.toLowerCase()!='p')||(startChop.parentNode&&startChop.parentNode!=startBlock&&startChop.parentNode.nodeType!=9))startChop=startChop.previousSibling?startChop.previousSibling:startChop.parentNode;while((endChop.nextSibling&&endChop.nextSibling.nodeName.toLowerCase()!='p')||(endChop.parentNode&&endChop.parentNode!=endBlock&&endChop.parentNode.nodeType!=9))endChop=endChop.nextSibling?endChop.nextSibling:endChop.parentNode;if(startChop.nodeName.toLowerCase()=="html")startChop=sel.focusNode;if(sel.focusNode.nodeName.toLowerCase()=="body"){var html=tinyMCE.regexpReplace(doc.body.innerHTML,"[ \t\r\n]","");if(html==""||html=="
"){doc.body.innerHTML="

 

 

";this.selectNode(doc.body.childNodes[1],true,true);return true;}}rngBefore.setStartBefore(startChop);rngBefore.setEnd(startNode,startOffset);paraBefore.appendChild(rngBefore.cloneContents());rngAfter.setEndAfter(endChop);rngAfter.setStart(endNode,endOffset);paraAfter.appendChild(rngAfter.cloneContents());if(paraBefore.innerHTML=="")paraBefore.innerHTML=" ";if(paraAfter.innerHTML=="")paraAfter.innerHTML=" ";var rng=doc.createRange();if(!startChop.previousSibling&&startChop.parentNode.nodeName.toLowerCase()=='p')rng.setStartBefore(startChop.parentNode);else{if(rngBefore.startContainer.nodeName.toLowerCase()=='p'&&rngBefore.startOffset==0)rng.setStartBefore(rngBefore.startContainer);else rng.setStart(rngBefore.startContainer,rngBefore.startOffset);}if(!endChop.nextSibling&&endChop.parentNode.nodeName.toLowerCase()=='p')rng.setEndAfter(endChop.parentNode);else rng.setEnd(rngAfter.endContainer,rngAfter.endOffset);rng.deleteContents();rng.insertNode(paraAfter);rng.insertNode(paraBefore);this.selectNode(paraAfter,true,true);return true;}function TinyMCEControl__insertSpace(){return true;}function TinyMCEControl__handleBackSpace(){var sel=this.contentWindow.getSelection();if(sel==null)return false;var rng=sel.getRangeAt(0);var node=rng.startContainer;while(node!=null&&(node=node.nextSibling)!=null){if(node.nodeName=='BR')node.parentNode.removeChild(node);else if(node.nodeType==1)break;}return false;}function TinyMCEControl_autoResetDesignMode(){if(!tinyMCE.isMSIE&&tinyMCE.settings['auto_reset_designmode']){var sel=this.contentWindow.getSelection();if(!sel||!sel.rangeCount||sel.rangeCount==0)eval('try { this.contentWindow.document.designMode = "On"; } catch(e) {}');}}function TinyMCEControl_execCommand(command,user_interface,value){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):"";}if(!tinyMCE.isMSIE&&!this.useCSS){this.contentWindow.document.execCommand("useCSS",false,true);this.useCSS=true;}this.contentDocument=this.contentWindow.document;if(tinyMCE._themeExecCommand(this.editorId,this.contentDocument.body,command,user_interface,value))return;if(command!="mceAddUndoLevel"&&command!="Undo"&&command!="Redo"&&command!="mceImage"&&command!="mceLink"&&command!="mceToggleVisualAid"&&(command!="mceInsertTable"&&!user_interface))this.execCommand("mceAddUndoLevel");if(this.getFocusElement()&&this.getFocusElement().nodeName.toLowerCase()=="img"){var align=this.getFocusElement().getAttribute('align');switch(command){case "JustifyLeft":if(align=='left')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','left');tinyMCE.triggerNodeChange();return;case "JustifyCenter":if(align=='middle')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','middle');tinyMCE.triggerNodeChange();return;case "JustifyRight":if(align=='right')this.getFocusElement().removeAttribute('align');else this.getFocusElement().setAttribute('align','right');tinyMCE.triggerNodeChange();return;}}if(tinyMCE.settings['force_br_newlines']){var doc=this.contentWindow.document;var alignValue="";if(doc.selection.type!="Control"){switch(command){case "JustifyLeft":alignValue="left";break;case "JustifyCenter":alignValue="center";break;case "JustifyFull":alignValue="justify";break;case "JustifyRight":alignValue="right";break;}if(alignValue!=""){var rng=doc.selection.createRange();if((divElm=tinyMCE.getParentElement(rng.parentElement(),"div"))!=null)divElm.setAttribute("align",alignValue);else if(rng.pasteHTML&&rng.htmlText.length>0)rng.pasteHTML('
'+rng.htmlText+"
");tinyMCE.triggerNodeChange();return;}}}switch(command){case "mceSelectNode":this.selectNode(value);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=value;break;case "mceSelectNodeDepth":var parentNode=this.getFocusElement();for(var i=0;parentNode;i++){if(parentNode.nodeName.toLowerCase()=="body")break;if(parentNode.nodeName.toLowerCase()=="#text"){i--;parentNode=parentNode.parentNode;continue;}if(i==value){this.selectNode(parentNode,false);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=parentNode;return;}parentNode=parentNode.parentNode;}break;case "HiliteColor":if(tinyMCE.isGecko){this.contentDocument.execCommand("useCSS",false,false);this.contentDocument.execCommand('hilitecolor',false,value);this.contentDocument.execCommand("useCSS",false,true);}else this.contentDocument.execCommand('backcolor',false,value);break;case "Cut":case "Copy":case "Paste":var cmdFailed=false;eval('try {this.contentDocument.execCommand(command, user_interface, value);} catch (e) {cmdFailed = true;}');if(tinyMCE.isGecko&&cmdFailed){if(confirm(tinyMCE.getLang('lang_clipboard_msg')))window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html','mceExternal');return;}else tinyMCE.triggerNodeChange();break;case "mceLink":var selectedText="";if(tinyMCE.isMSIE){var doc=this.contentWindow.document;var rng=doc.selection.createRange();selectedText=rng.text;}else selectedText=this.contentWindow.getSelection().toString();if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0))return;}var href="",target="",title="",onclick="",action="insert";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a")tinyMCE.linkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&getAttrib(tinyMCE.linkElement,'href')=="")tinyMCE.linkElement=null;if(tinyMCE.linkElement){href=getAttrib(tinyMCE.linkElement,'href');target=getAttrib(tinyMCE.linkElement,'target');title=getAttrib(tinyMCE.linkElement,'title');onclick=getAttrib(tinyMCE.linkElement,'mce_onclick');if(onclick=="")onclick=getAttrib(tinyMCE.linkElement,'onclick');onclick=tinyMCE.cleanupEventStr(onclick);mceRealHref=getAttrib(tinyMCE.linkElement,'mce_real_href');if(mceRealHref!="")href=mceRealHref;href=eval(tinyMCE.settings['urlconvertor_callback']+"(href, tinyMCE.linkElement, true);");action="update";}if(this.settings['insertlink_callback']){var returnVal=eval(this.settings['insertlink_callback']+"(href, target, title, onclick, action);");if(returnVal&&returnVal['href'])tinyMCE.insertLink(returnVal['href'],returnVal['target'],returnVal['title'],returnVal['onclick']);}else{tinyMCE.openWindow(this.insertLinkTemplate,{href:href,target:target,title:title,onclick:onclick,action:action});}break;case "mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img")tinyMCE.imgElement=tinyMCE.selectedElement;if(tinyMCE.imgElement){var imgName=getAttrib(tinyMCE.imgElement,'name');if(imgName.substring(0,4)=='mce_')return;src=getAttrib(tinyMCE.imgElement,'src');alt=getAttrib(tinyMCE.imgElement,'alt');if(alt=="")alt=getAttrib(tinyMCE.imgElement,'title');border=getAttrib(tinyMCE.imgElement,'border');hspace=getAttrib(tinyMCE.imgElement,'hspace');vspace=getAttrib(tinyMCE.imgElement,'vspace');width=getAttrib(tinyMCE.imgElement,'width');height=getAttrib(tinyMCE.imgElement,'height');align=getAttrib(tinyMCE.imgElement,'align');onmouseover=getAttrib(tinyMCE.imgElement,'onmouseover');onmouseout=getAttrib(tinyMCE.imgElement,'onmouseout');title=getAttrib(tinyMCE.imgElement,'title');onmouseover=tinyMCE.cleanupEventStr(onmouseover);onmouseout=tinyMCE.cleanupEventStr(onmouseout);mceRealSrc=getAttrib(tinyMCE.imgElement,'mce_real_src');if(mceRealSrc!="")src=mceRealSrc;src=eval(tinyMCE.settings['urlconvertor_callback']+"(src, tinyMCE.imgElement, true);");action="update";}if(this.settings['insertimage_callback']){var returnVal=eval(this.settings['insertimage_callback']+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal['src'])tinyMCE.insertImage(returnVal['src'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vspace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['title'],returnVal['onmouseover'],returnVal['onmouseout']);}else tinyMCE.openWindow(this.insertImageTemplate,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action});break;case "mceCleanupWord":if(tinyMCE.isMSIE){var html=this.contentDocument.body.createTextRange().htmlText;if(html.indexOf('="mso')!=-1){tinyMCE._setHTML(this.contentDocument,this.contentDocument.body.innerHTML);html=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.contentDocument.body,this.visualAid);}this.contentDocument.body.innerHTML=html;}break;case "mceCleanup":tinyMCE._setHTML(this.contentDocument,this.contentDocument.body.innerHTML);this.contentDocument.body.innerHTML=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.contentDocument.body,this.visualAid);tinyMCE.triggerNodeChange();break;case "mceAnchor":if(!user_interface){var aElm=tinyMCE.getParentElement(this.getFocusElement(),"a","name");if(aElm){if(value==null||value==""){if(tinyMCE.isMSIE){aElm.outerHTML=aElm.innerHTML;}else{var rng=aElm.ownerDocument.createRange();rng.setStartBefore(aElm);rng.setEndAfter(aElm);rng.deleteContents();rng.insertNode(rng.createContextualFragment(aElm.innerHTML));}}else aElm.setAttribute('name',value);}else{this.contentDocument.execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.contentDocument.body,"font","face","#mce_temp_font#");for(var x=0;x0){value=tinyMCE.replaceVar(value,"selection",selectedText);tinyMCE.execCommand('mceInsertContent',false,value);}tinyMCE.triggerNodeChange();break;case "mceSetAttribute":if(typeof(value)=='object'){var targetElms=(typeof(value['targets'])=="undefined")?"p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address":value['targets'];var targetNode=tinyMCE.getParentElement(this.getFocusElement(),targetElms);if(targetNode){targetNode.setAttribute(value['name'],value['value']);tinyMCE.triggerNodeChange();}}break;case "mceSetCSSClass":var selectedText=false;if(tinyMCE.isMSIE){var doc=this.contentWindow.document;var rng=doc.selection.createRange();selectedText=(rng.text&&rng.text.length>0);}else selectedText=(this.contentWindow.getSelection().toString().length>0);if(tinyMCE.selectedNode)tinyMCE.selectedElement=tinyMCE.selectedNode;if(selectedText&&!tinyMCE.selectedNode){this.contentDocument.execCommand("removeformat",false,null);this.contentDocument.execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.contentDocument.body,"font","face","#mce_temp_font#");for(var x=0;xcustomUndoLevels){for(var i=0;i0){this.undoIndex--;this.contentWindow.document.body.innerHTML=this.undoLevels[this.undoIndex];}tinyMCE.triggerNodeChange();}else this.contentDocument.execCommand(command,user_interface,value);break;case "Redo":if(tinyMCE.settings['custom_undo_redo']){if(this.undoIndex<(this.undoLevels.length-1)){this.undoIndex++;this.contentWindow.document.body.innerHTML=this.undoLevels[this.undoIndex];}tinyMCE.triggerNodeChange();}else this.contentDocument.execCommand(command,user_interface,value);break;case "mceToggleVisualAid":this.visualAid=!this.visualAid;tinyMCE.handleVisualAid(this.contentWindow.document.body,true,this.visualAid);tinyMCE.triggerNodeChange();break;default:this.contentDocument.execCommand(command,user_interface,value);tinyMCE.triggerNodeChange();}}function TinyMCE_getControlHTML(control_name){var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+"_getControlHTML";if(eval("typeof("+templateFunction+")")!='undefined'){var html=eval(templateFunction+"('"+control_name+"');");if(html!="")return tinyMCE.replaceVar(html,"pluginurl",tinyMCE.baseURL+"/plugins/"+themePlugins[i]);}}return eval('TinyMCE_'+tinyMCE.settings['theme']+"_getControlHTML"+"('"+control_name+"');");}function TinyMCE__themeExecCommand(editor_id,element,command,user_interface,value){var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+"_execCommand";if(eval("typeof("+templateFunction+")")!='undefined'){if(eval(templateFunction+"(editor_id, element, command, user_interface, value);"))return true;}}templateFunction='TinyMCE_'+tinyMCE.settings['theme']+"_execCommand";if(eval("typeof("+templateFunction+")")!='undefined')return eval(templateFunction+"(editor_id, element, command, user_interface, value);");return false;}function TinyMCE__getThemeFunction(suffix,skip_plugins){if(skip_plugins)return 'TinyMCE_'+tinyMCE.settings['theme']+suffix;var themePlugins=tinyMCE.getParam('plugins','',true,',');var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction='TinyMCE_'+themePlugins[i]+suffix;if(eval("typeof("+templateFunction+")")!='undefined')return templateFunction;}return 'TinyMCE_'+tinyMCE.settings['theme']+suffix;}function TinyMCEControl_queryCommandValue(command){return this.contentWindow.document.queryCommandValue(command);}function TinyMCEControl_queryCommandState(command){return this.contentWindow.document.queryCommandState(command);}function TinyMCEControl_onAdd(replace_element,form_element_name){tinyMCE.themeURL=tinyMCE.baseURL+"/themes/"+this.settings['theme'];this.settings['themeurl']=tinyMCE.themeURL;if(!replace_element){alert("Error: Could not find the target element.");return false;}var templateFunction=tinyMCE._getThemeFunction('_getInsertLinkTemplate');if(eval("typeof("+templateFunction+")")!='undefined')this.insertLinkTemplate=eval(templateFunction+'(this.settings);');var templateFunction=tinyMCE._getThemeFunction('_getInsertImageTemplate');if(eval("typeof("+templateFunction+")")!='undefined')this.insertImageTemplate=eval(templateFunction+'(this.settings);');var templateFunction=tinyMCE._getThemeFunction('_getEditorTemplate');if(eval("typeof("+templateFunction+")")=='undefined'){alert("Error: Could not find the template function: "+templateFunction);return false;}var editorTemplate=eval(templateFunction+'(this.settings, this.editorId);');var deltaWidth=editorTemplate['delta_width']?editorTemplate['delta_width']:0;var deltaHeight=editorTemplate['delta_height']?editorTemplate['delta_height']:0;var html=''+editorTemplate['html'];var templateFunction=tinyMCE._getThemeFunction('_handleNodeChange',true);if(eval("typeof("+templateFunction+")")!='undefined')this.settings['handleNodeChangeCallback']=templateFunction;html=tinyMCE.replaceVar(html,"editor_id",this.editorId);html=tinyMCE.replaceVar(html,"default_document",tinyMCE.baseURL+"/blank.htm");this.settings['default_document']=tinyMCE.baseURL+"/blank.htm";this.settings['old_width']=this.settings['width'];this.settings['old_height']=this.settings['height'];if(this.settings['width']==-1)this.settings['width']=replace_element.offsetWidth;if(this.settings['height']==-1)this.settings['height']=replace_element.offsetHeight;this.settings['area_width']=this.settings['width'];this.settings['area_height']=this.settings['height'];this.settings['area_width']+=deltaWidth;this.settings['area_height']+=deltaHeight;if((""+this.settings['width']).indexOf('%')!=-1)this.settings['area_width']="100%";if((""+this.settings['height']).indexOf('%')!=-1)this.settings['area_height']="100%";if((""+replace_element.style.width).indexOf('%')!=-1){this.settings['width']=replace_element.style.width;this.settings['area_width']="100%";}if((""+replace_element.style.height).indexOf('%')!=-1){this.settings['height']=replace_element.style.height;this.settings['area_height']="100%";}html=tinyMCE.applyTemplate(html);this.settings['width']=this.settings['old_width'];this.settings['height']=this.settings['old_height'];this.visualAid=this.settings['visual'];this.formTargetElementId=form_element_name;if(replace_element.nodeName.toLowerCase()=="textarea")this.startContent=replace_element.value;else this.startContent=replace_element.innerHTML;if(replace_element.nodeName.toLowerCase()!="textarea"){this.oldTargetElement=replace_element.cloneNode(true);if(tinyMCE.settings['debug'])html+='';else html+='';html+='';if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.replaceChild(fragment,replace_element);}else replace_element.outerHTML=html;}else{html+='';this.oldTargetElement=replace_element;if(!tinyMCE.settings['debug'])this.oldTargetElement.style.display="none";if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.insertBefore(fragment,replace_element);}else replace_element.insertAdjacentHTML("beforeBegin",html);}var dynamicIFrame=false;var tElm=document.getElementById(this.editorId);if(!tinyMCE.isMSIE){if(tElm&&tElm.nodeName.toLowerCase()=="span"){tElm=tinyMCE._createIFrame(tElm);dynamicIFrame=true;}this.targetElement=tElm;this.iframeElement=tElm;this.contentDocument=tElm.contentDocument;this.contentWindow=tElm.contentWindow;}else{if(tElm&&tElm.nodeName.toLowerCase()=="span")tElm=tinyMCE._createIFrame(tElm);else tElm=document.frames[this.editorId];this.targetElement=tElm;this.iframeElement=document.getElementById(this.editorId);this.contentDocument=tElm.window.document;this.contentWindow=tElm.window;this.contentDocument.designMode="on";}var doc=this.contentDocument;if(dynamicIFrame){var html=""+''+''+''+'blank_page'+''+''+''+''+'';try{this.contentWindow.document.designMode="on";doc.open();doc.write(html);doc.close();}catch(e){this.contentWindow.document.location.href=tinyMCE.baseURL+"/blank.htm";}}if(tinyMCE.isMSIE)window.setTimeout("TinyMCE_addEventHandlers('"+this.editorId+"');",1);tinyMCE.setupContent(this.editorId);return true;}function TinyMCEControl_getFocusElement(){if(tinyMCE.isMSIE){var doc=this.contentWindow.document;var rng=doc.selection.createRange();var elm=rng.item?rng.item(0):rng.parentElement();}else{var sel=this.contentWindow.getSelection();var elm=(sel&&sel.anchorNode)?sel.anchorNode:null;if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img")elm=tinyMCE.selectedElement;}return elm;}var tinyMCE=new TinyMCE();var tinyMCELang=new Array(); \ No newline at end of file diff --git a/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js b/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js index 4a2f7ae33..a282cbdac 100644 --- a/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js +++ b/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js @@ -88,6 +88,7 @@ function TinyMCE() { this.regexpReplace = TinyMCE_regexpReplace; this.cleanupEventStr = TinyMCE_cleanupEventStr; this.getAbsPosition = TinyMCE_getAbsPosition; + this.openFileBrowser = TinyMCE_openFileBrowser; } function TinyMCE_init(settings) { @@ -135,11 +136,11 @@ function TinyMCE_init(settings) { defParam("mode", "none"); defParam("theme", "default"); defParam("plugins", "", true); - defParam("language", "uk"); + defParam("language", "en"); defParam("docs_language", this.settings['language']); defParam("elements", ""); defParam("textarea_trigger", "mce_editable"); - defParam("valid_elements", "a[name|href|target|title],strong/b[class],em/i[class],strike[class],u[class],p[class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan],td[class|colspan|rowspan|width|height],div[class|align],span[class|align],pre[class|align],address[class|align],h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr"); + defParam("valid_elements", "a[name|href|target|title],strong/b[class],em/i[class],strike[class],u[class],p[class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[class|colspan|rowspan|width|height|align|valign],div[class|align],span[class|align],pre[class|align],address[class|align],h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr"); defParam("extended_valid_elements", ""); defParam("invalid_elements", ""); defParam("encoding", ""); @@ -170,10 +171,12 @@ function TinyMCE_init(settings) { defParam("inline_styles", false); defParam("convert_newlines_to_brs", false); defParam("auto_reset_designmode", false); - defParam("entities", "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,181,micro,183,middot,8226,bull,8230,hellip,8242,prime,8243,Prime,167,sect,182,para,223,szlig,8249,lsaquo,8250,rsaquo,171,laquo,187,raquo,8216,lsquo,8217,rsquo,8220,ldquo,8221,rdquo,8218,sbquo,8222,bdquo,60,lt,62,gt,8804,le,8805,ge,8211,ndash,8212,mdash,175,macr,8254,oline,164,curren,166,brvbar,168,uml,161,iexcl,191,iquest,710,circ,732,tilde,176,deg,8722,minus,177,plusmn,247,divide,8260,frasl,215,times,185,sup1,178,sup2,179,sup3,188,frac14,189,frac12,190,frac34,402,fnof,8747,int,8721,sum,8734,infin,8730,radic,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8712,isin,8713,notin,8715,ni,8719,prod,8743,and,8744,or,172,not,8745,cap,8746,cup,8706,part,8704,forall,8707,exist,8709,empty,8711,nabla,8727,lowast,8733,prop,8736,ang,180,acute,184,cedil,170,ordf,186,ordm,8224,dagger,8225,Dagger,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,216,Oslash,338,OElig,352,Scaron,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,376,Yuml,222,THORN,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,248,oslash,339,oelig,353,scaron,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,8501,alefsym,982,piv,8476,real,977,thetasym,978,upsih,8472,weierp,8465,image,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8756,there4,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,173,shy"); + defParam("entities", "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,181,micro,183,middot,8226,bull,8230,hellip,8242,prime,8243,Prime,167,sect,182,para,223,szlig,8249,lsaquo,8250,rsaquo,171,laquo,187,raquo,8216,lsquo,8217,rsquo,8220,ldquo,8221,rdquo,8218,sbquo,8222,bdquo,60,lt,62,gt,8804,le,8805,ge,8211,ndash,8212,mdash,175,macr,8254,oline,164,curren,166,brvbar,168,uml,161,iexcl,191,iquest,710,circ,732,tilde,176,deg,8722,minus,177,plusmn,247,divide,8260,frasl,215,times,185,sup1,178,sup2,179,sup3,188,frac14,189,frac12,190,frac34,402,fnof,8747,int,8721,sum,8734,infin,8730,radic,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8712,isin,8713,notin,8715,ni,8719,prod,8743,and,8744,or,172,not,8745,cap,8746,cup,8706,part,8704,forall,8707,exist,8709,empty,8711,nabla,8727,lowast,8733,prop,8736,ang,180,acute,184,cedil,170,ordf,186,ordm,8224,dagger,8225,Dagger,192,Agrave,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,202,Ecirc,203,Euml,204,Igrave,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,212,Ocirc,213,Otilde,214,Ouml,216,Oslash,338,OElig,217,Ugrave,219,Ucirc,220,Uuml,376,Yuml,222,THORN,224,agrave,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,234,ecirc,235,euml,236,igrave,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,244,ocirc,245,otilde,246,ouml,248,oslash,339,oelig,249,ugrave,251,ucirc,252,uuml,254,thorn,255,yuml,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,8501,alefsym,982,piv,8476,real,977,thetasym,978,upsih,8472,weierp,8465,image,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8756,there4,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,173,shy"); defParam("cleanup_callback", ""); defParam("add_unload_trigger", true); defParam("ask", false); + defParam("nowrap", false); + defParam("auto_resize", false); // Setup baseHREF var baseHREF = tinyMCE.settings['document_base_url']; @@ -305,28 +308,28 @@ function TinyMCE_triggerSave(skip_cleanup, skip_callback) { tinyMCE._setHTML(instance.contentWindow.document, instance.contentWindow.document.body.innerHTML); - var cleanedHTML = skip_cleanup ? instance.contentWindow.document.body.innerHTML : tinyMCE._cleanupHTML(instance.contentWindow.document, this.settings, instance.contentWindow.document.body, this.visualAid, true); + var htm = skip_cleanup ? instance.contentWindow.document.body.innerHTML : tinyMCE._cleanupHTML(instance.contentWindow.document, this.settings, instance.contentWindow.document.body, this.visualAid, true); - //var cleanedHTML = tinyMCE._cleanupHTML(instance.contentWindow.document, tinyMCE.settings, instance.contentWindow.document.body, false, true); + //var htm = tinyMCE._cleanupHTML(instance.contentWindow.document, tinyMCE.settings, instance.contentWindow.document.body, false, true); if (tinyMCE.settings["encoding"] == "xml" || tinyMCE.settings["encoding"] == "html") - cleanedHTML = tinyMCE.convertStringToXML(cleanedHTML); + htm = tinyMCE.convertStringToXML(htm); if (!skip_callback && tinyMCE.settings['save_callback'] != "") - var content = eval(tinyMCE.settings['save_callback'] + "(instance.formTargetElementId,cleanedHTML,instance.contentWindow.document.body);"); + var content = eval(tinyMCE.settings['save_callback'] + "(instance.formTargetElementId,htm,instance.contentWindow.document.body);"); // Use callback content if available if ((typeof(content) != "undefined") && content != null) - cleanedHTML = content; + htm = content; // Replace some weird entities (Bug: #1056343) - cleanedHTML = tinyMCE.regexpReplace(cleanedHTML, "(", "(", "gi"); - cleanedHTML = tinyMCE.regexpReplace(cleanedHTML, ")", ")", "gi"); - cleanedHTML = tinyMCE.regexpReplace(cleanedHTML, ";", ";", "gi"); - cleanedHTML = tinyMCE.regexpReplace(cleanedHTML, """, """, "gi"); - cleanedHTML = tinyMCE.regexpReplace(cleanedHTML, "^", "^", "gi"); + htm = tinyMCE.regexpReplace(htm, "(", "(", "gi"); + htm = tinyMCE.regexpReplace(htm, ")", ")", "gi"); + htm = tinyMCE.regexpReplace(htm, ";", ";", "gi"); + htm = tinyMCE.regexpReplace(htm, """, """, "gi"); + htm = tinyMCE.regexpReplace(htm, "^", "^", "gi"); - instance.formElement.value = cleanedHTML; + instance.formElement.value = htm; } } @@ -477,7 +480,7 @@ function TinyMCE_addEventHandlers(editor_id) { if (tinyMCE.settings['add_unload_trigger']) tinyMCE.addEvent(window, "unload", function () {tinyMCE.triggerSave(true, true);}); - doc.designMode = "On"; + eval('try { doc.designMode = "On"; } catch(e) {}'); } } @@ -496,6 +499,9 @@ function TinyMCE__createIFrame(replace_element) { iframe.setAttribute("width", tinyMCE.settings['area_width']); iframe.setAttribute("height", tinyMCE.settings['area_height']); + if (tinyMCE.settings["auto_resize"]) + iframe.setAttribute("scrolling", "no"); + // Must have a src element in MSIE HTTPs breaks aswell as absoute URLs if (tinyMCE.isMSIE) iframe.setAttribute("src", this.settings['default_document']); @@ -534,6 +540,9 @@ function TinyMCE_setupContent(editor_id) { return; } + if (tinyMCE.settings['nowrap']) + doc.body.style.whiteSpace = "nowrap"; + doc.body.dir = this.settings['directionality']; doc.editorId = editor_id; @@ -572,11 +581,12 @@ function TinyMCE_setupContent(editor_id) { TinyMCE_handleEvent(event); }; - document.frames[editor_id].document.body.onbeforepaste = patchFunc; - document.frames[editor_id].document.body.onbeforecut = patchFunc; - document.frames[editor_id].document.body.onpaste = patchFunc; + var body = document.frames[editor_id].document.body; - document.frames[editor_id].document.body.editorId = editor_id; + body.onbeforepaste = patchFunc; + body.onbeforecut = patchFunc; + body.onpaste = patchFunc; + body.editorId = editor_id; } else { var targetDocument = document.getElementById(editor_id).contentWindow.document; @@ -590,6 +600,11 @@ function TinyMCE_setupContent(editor_id) { // Fix for bug #958637 if (!tinyMCE.isMSIE) { + if (tinyMCE.settings['force_p_newlines']) { + // Remove weridness! + content = content.replace(new RegExp('<>', 'g'), ""); + } + if (tinyMCE.settings['cleanup_on_startup']) { var contentElement = instance.contentWindow.document.createElement("body"); contentElement.innerHTML = content; @@ -650,19 +665,6 @@ function TinyMCE_setupContent(editor_id) { else instance.formElement = parentElm.nextSibling; - if (tinyMCE.settings['handleNodeChangeCallback']) { - var undoIndex = -1; - var undoLevels = -1; - - if (tinyMCE.settings['custom_undo_redo']) { - undoIndex = 0; - undoLevels = 0; - } - - eval(tinyMCE.settings['handleNodeChangeCallback'] + '("' + editor_id + '", tinyMCE.instances["' + editor_id + '"].contentWindow.document.body,undoIndex,undoLevels,tinyMCE.instances["' + editor_id + '"].visualAid, false);'); - //window.setTimeout(tinyMCE.settings['handleNodeChangeCallback'] + '("' + editor_id + '", tinyMCE.instances["' + editor_id + '"].contentWindow.document.body,undoIndex,undoLevels);', 10); - } - tinyMCE.handleVisualAid(instance.contentWindow.document.body, true, tinyMCE.settings['visual']); // Trigger setup content @@ -672,6 +674,10 @@ function TinyMCE_setupContent(editor_id) { // Re-add design mode on mozilla if (!tinyMCE.isMSIE) TinyMCE_addEventHandlers(editor_id); + + // Trigger node change + tinyMCE.selectedInstance = instance; + tinyMCE.triggerNodeChange(false); } function TinyMCE_handleEvent(e) { @@ -740,6 +746,16 @@ function TinyMCE_handleEvent(e) { } } + // Handle backspace + if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && (e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) { + // Insert P element instead of BR + if (tinyMCE.selectedInstance._handleBackSpace()) { + // Cancel event + e.preventDefault(); + return false; + } + } + // Mozilla custom key handling if (!tinyMCE.isMSIE && e.ctrlKey && tinyMCE.settings['custom_undo_redo']) { if (e.charCode == 120 || e.charCode == 118) { // Ctrl+X, Ctrl+V @@ -824,17 +840,17 @@ function TinyMCE_handleEvent(e) { if (tinyMCE.getParentElement(rng.parentElement(), "li") != null) return false; - if (tinyMCE.getParentElement(rng.parentElement(), "div") == null) - return false; - // Cancel event e.returnValue = false; e.cancelBubble = true; // Insert BR element - rng.pasteHTML("
"); + rng.pasteHTML("
"); rng.collapse(false); rng.select(); + + tinyMCE.triggerNodeChange(false); + return false; } } @@ -856,6 +872,16 @@ function TinyMCE_handleEvent(e) { else return; + // Handle backspace + if (tinyMCE.isGecko && tinyMCE.settings['force_p_newlines'] && (e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) { + // Insert P element instead of BR + if (tinyMCE.selectedInstance._handleBackSpace()) { + // Cancel event + e.preventDefault(); + return false; + } + } + tinyMCE.selectedElement = null; tinyMCE.selectedNode = null; var elm = tinyMCE.selectedInstance.getFocusElement(); @@ -956,15 +982,16 @@ function TinyMCE_handleEvent(e) { var targetBody = tinyMCE.getParentElement(e.target, "body"); for (var instanceName in tinyMCE.instances) { var instance = tinyMCE.instances[instanceName]; + + // Reset design mode if lost (on everything just in case) + instance.autoResetDesignMode(); + if (instance.contentWindow.document.body == targetBody) { tinyMCE.selectedInstance = instance; tinyMCE.selectedElement = e.target; tinyMCE.linkElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "a"); tinyMCE.imgElement = tinyMCE.getParentElement(tinyMCE.selectedElement, "img"); - // Reset design mode if lost - instance.autoResetDesignMode(); - // Reset typing tinyMCE.selectedInstance.typing = false; break; @@ -1334,7 +1361,6 @@ function TinyMCE__cleanupAttribute(valid_attributes, element_name, attribute_nod } } - // Allways pass styles on table and td elements if visual_aid if ((element_name == "table" || element_name == "td") && attribName == "style") verified = true; @@ -1692,8 +1718,15 @@ function TinyMCE_cleanupNode(node) { output += "
"; else output += ""; - } else // No children - output += "<" + elementName + elementAttribs + " />"; + } else { + // Allways leave anchor elements open + if (elementName == "a") + output += "<" + elementName + elementAttribs + ">"; + else { + // No children + output += "<" + elementName + elementAttribs + " />"; + } + } return output; @@ -1873,6 +1906,12 @@ function TinyMCE__cleanupHTML(doc, config, element, visual, on_save) { html = html.replace(re, "
"); } + if (tinyMCE.settings['force_p_newlines']) { + // Remove weridness! + var re = new RegExp('<>', 'g'); + html = html.replace(re, ""); + } + // Emtpy node, return empty if (html == "
" || html == "

 

") html = ""; @@ -2034,6 +2073,16 @@ function TinyMCE_getParentBlockElement(node) { } function TinyMCE_getParentElement(node, names, attrib_name, attrib_value) { + if (typeof(names) == "undefined") { + if (node.nodeType == 1) + return node; + + // Find parent node that is a element + while ((node = node.parentNode) != null && node.nodeType != 1) ; + + return node; + } + var namesAr = names.split(','); if (node == null) @@ -2290,40 +2339,53 @@ function TinyMCE_replaceVars(replace_haystack, replace_vars) { function TinyMCE_triggerNodeChange(focus) { if (tinyMCE.settings['handleNodeChangeCallback']) { if (tinyMCE.selectedInstance) { - var editorId = tinyMCE.selectedInstance.editorId; - var elm = tinyMCE.selectedInstance.getFocusElement(); + var inst = tinyMCE.selectedInstance; + var editorId = inst.editorId; + var elm = inst.getFocusElement(); var undoIndex = -1; var undoLevels = -1; var anySelection = false; var selectedText = ""; + if (tinyMCE.settings["auto_resize"]) { + var doc = inst.contentWindow.document; + + inst.iframeElement.style.width = doc.body.offsetWidth + "px"; + inst.iframeElement.style.height = doc.body.offsetHeight + "px"; + } + if (tinyMCE.isMSIE) { - var documentRef = tinyMCE.selectedInstance.contentWindow.document; - var rng = documentRef.selection.createRange(); + var doc = inst.contentWindow.document; + var rng = doc.selection.createRange(); selectedText = rng.text; - } else - selectedText = tinyMCE.selectedInstance.contentWindow.getSelection().toString(); + } else { + var sel = inst.contentWindow.getSelection(); + if (sel && sel.toString) + selectedText = sel.toString(); + else + selectedText = ''; + } if (tinyMCE.selectedElement) anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0); if (tinyMCE.settings['custom_undo_redo']) { - undoIndex = tinyMCE.selectedInstance.undoIndex; - undoLevels = tinyMCE.selectedInstance.undoLevels.length; + undoIndex = inst.undoIndex; + undoLevels = inst.undoLevels.length; } // Trigger plugin nodechanges var plugins = tinyMCE.getParam('plugins', '', true, ','); for (var i=0; i scrollY && node.absTop < (scrollY - 25 + height))) + if (!tinyMCE.settings['auto_resize'] && !(node.absTop > scrollY && node.absTop < (scrollY - 25 + height))) this.contentWindow.scrollTo(pos.absLeft, pos.absTop - height + 25); // Set selected element @@ -2841,6 +2918,21 @@ function TinyMCEControl__insertPara() { while ((endChop.nextSibling && endChop.nextSibling.nodeName.toLowerCase() != 'p') || (endChop.parentNode && endChop.parentNode != endBlock && endChop.parentNode.nodeType != 9)) endChop = endChop.nextSibling ? endChop.nextSibling : endChop.parentNode; + // Fix first node + if (startChop.nodeName.toLowerCase() == "html") + startChop = sel.focusNode; + + // Empty document + if (sel.focusNode.nodeName.toLowerCase() == "body") { + var html = tinyMCE.regexpReplace(doc.body.innerHTML, "[ \t\r\n]", ""); + if (html == "" || html == "
") { + doc.body.innerHTML = "

 

 

"; + this.selectNode(doc.body.childNodes[1], true, true); + + return true; + } + } + // Place first part within new paragraph rngBefore.setStartBefore(startChop); rngBefore.setEnd(startNode, startOffset); @@ -2890,14 +2982,32 @@ function TinyMCEControl__insertSpace() { return true; } +function TinyMCEControl__handleBackSpace() { + var sel = this.contentWindow.getSelection(); + if (sel == null) + return false; + + var rng = sel.getRangeAt(0); + var node = rng.startContainer; + + while (node != null && (node = node.nextSibling) != null) { + if (node.nodeName == 'BR') + node.parentNode.removeChild(node); + else if (node.nodeType == 1) // Break at other element + break; + } + + return false; +} + function TinyMCEControl_autoResetDesignMode() { // Add fix for tab/style.display none/block problems in Gecko if (!tinyMCE.isMSIE && tinyMCE.settings['auto_reset_designmode']) { var sel = this.contentWindow.getSelection(); // Weird, wheres that cursor selection? - if (sel.rangeCount == 0) - this.contentWindow.document.designMode = "On"; + if (!sel || !sel.rangeCount || sel.rangeCount == 0) + eval('try { this.contentWindow.document.designMode = "On"; } catch(e) {}'); } } @@ -2958,10 +3068,10 @@ function TinyMCEControl_execCommand(command, user_interface, value) { } if (tinyMCE.settings['force_br_newlines']) { - var documentRef = this.contentWindow.document; + var doc = this.contentWindow.document; var alignValue = ""; - if (documentRef.selection.type != "Control") { + if (doc.selection.type != "Control") { switch (command) { case "JustifyLeft": alignValue = "left"; @@ -2981,7 +3091,7 @@ function TinyMCEControl_execCommand(command, user_interface, value) { } if (alignValue != "") { - var rng = documentRef.selection.createRange(); + var rng = doc.selection.createRange(); if ((divElm = tinyMCE.getParentElement(rng.parentElement(), "div")) != null) divElm.setAttribute("align", alignValue); @@ -3057,8 +3167,8 @@ function TinyMCEControl_execCommand(command, user_interface, value) { var selectedText = ""; if (tinyMCE.isMSIE) { - var documentRef = this.contentWindow.document; - var rng = documentRef.selection.createRange(); + var doc = this.contentWindow.document; + var rng = doc.selection.createRange(); selectedText = rng.text; } else selectedText = this.contentWindow.getSelection().toString(); @@ -3172,8 +3282,7 @@ function TinyMCEControl_execCommand(command, user_interface, value) { case "mceCleanup": tinyMCE._setHTML(this.contentDocument, this.contentDocument.body.innerHTML); - var cleanedHTML = tinyMCE._cleanupHTML(this.contentDocument, this.settings, this.contentDocument.body, this.visualAid); - this.contentDocument.body.innerHTML = cleanedHTML; + this.contentDocument.body.innerHTML = tinyMCE._cleanupHTML(this.contentDocument, this.settings, this.contentDocument.body, this.visualAid); tinyMCE.triggerNodeChange(); break; @@ -3219,8 +3328,8 @@ function TinyMCEControl_execCommand(command, user_interface, value) { var selectedText = ""; if (tinyMCE.isMSIE) { - var documentRef = this.contentWindow.document; - var rng = documentRef.selection.createRange(); + var doc = this.contentWindow.document; + var rng = doc.selection.createRange(); selectedText = rng.text; } else selectedText = this.contentWindow.getSelection().toString(); @@ -3249,8 +3358,8 @@ function TinyMCEControl_execCommand(command, user_interface, value) { var selectedText = false; if (tinyMCE.isMSIE) { - var documentRef = this.contentWindow.document; - var rng = documentRef.selection.createRange(); + var doc = this.contentWindow.document; + var rng = doc.selection.createRange(); selectedText = (rng.text && rng.text.length > 0); } else selectedText = (this.contentWindow.getSelection().toString().length > 0); @@ -3349,312 +3458,6 @@ function TinyMCEControl_execCommand(command, user_interface, value) { tinyMCE.triggerNodeChange(); break; - case "mceInsertTable": - if (user_interface) { - var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = "", align = "", width = "", height = "", action = "insert", className = ""; - - tinyMCE.tableElement = tinyMCE.getParentElement(this.getFocusElement(), "table"); - - if (tinyMCE.tableElement) { - var rowsAr = tinyMCE.tableElement.rows; - var cols = 0; - for (var i=0; i cols) - cols = rowsAr[i].cells.length; - - cols = cols; - rows = rowsAr.length; - - border = tinyMCE.getAttrib(tinyMCE.tableElement, 'border', border); - cellpadding = tinyMCE.getAttrib(tinyMCE.tableElement, 'cellpadding', ""); - cellspacing = tinyMCE.getAttrib(tinyMCE.tableElement, 'cellspacing', ""); - width = tinyMCE.getAttrib(tinyMCE.tableElement, 'width', width); - height = tinyMCE.getAttrib(tinyMCE.tableElement, 'height', height); - align = tinyMCE.getAttrib(tinyMCE.tableElement, 'align', align); - className = tinyMCE.getAttrib(tinyMCE.tableElement, tinyMCE.isMSIE ? 'className' : "class", ""); - - if (tinyMCE.isMSIE) { - width = tinyMCE.tableElement.style.pixelWidth == 0 ? tinyMCE.tableElement.getAttribute("width") : tinyMCE.tableElement.style.pixelWidth; - height = tinyMCE.tableElement.style.pixelHeight == 0 ? tinyMCE.tableElement.getAttribute("height") : tinyMCE.tableElement.style.pixelHeight; - } - - action = "update"; - } - - tinyMCE.openWindow(this.insertTableTemplate, {editor_id : this.editorId, cols : cols, rows : rows, border : border, cellpadding : cellpadding, cellspacing : cellspacing, align : align, width : width, height : height, action : action, className : className}); - } else { - var html = ''; - var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className; - - if (typeof(value) == 'object') { - cols = value['cols']; - rows = value['rows']; - border = value['border'] != "" ? value['border'] : 0; - cellpadding = value['cellpadding'] != "" ? value['cellpadding'] : -1; - cellspacing = value['cellspacing'] != "" ? value['cellspacing'] : -1; - align = value['align']; - width = value['width']; - height = value['height']; - className = value['className']; - } - - // Update table - if (tinyMCE.tableElement) { - tinyMCE.setAttrib(tinyMCE.tableElement, 'cellPadding', cellpadding); - tinyMCE.setAttrib(tinyMCE.tableElement, 'cellSpacing', cellspacing); - tinyMCE.setAttrib(tinyMCE.tableElement, 'border', border); - tinyMCE.setAttrib(tinyMCE.tableElement, 'width', width); - tinyMCE.setAttrib(tinyMCE.tableElement, 'height', height); - tinyMCE.setAttrib(tinyMCE.tableElement, 'align', align, true); - tinyMCE.setAttrib(tinyMCE.tableElement, tinyMCE.isMSIE ? 'className' : "class", className, true); - - if (tinyMCE.isMSIE) { - tinyMCE.tableElement.style.pixelWidth = (width == null || width == "") ? 0 : width; - tinyMCE.tableElement.style.pixelHeight = (height == null || height == "") ? 0 : height; - } - - tinyMCE.handleVisualAid(tinyMCE.tableElement, false, this.visualAid); - - // Fix for stange MSIE align bug - tinyMCE.tableElement.outerHTML = tinyMCE.tableElement.outerHTML; - - //this.contentWindow.dispatchEvent(createEvent("click")); - - tinyMCE.triggerNodeChange(); - return; - } - - // Create new table - html += ''; - else - html += '"; - } - html += ""; - } - - html += "
'; - - html += " 
"; - - this.execCommand('mceInsertContent', false, html); - } - break; - - case "mceTableInsertRowBefore": - case "mceTableInsertRowAfter": - case "mceTableDeleteRow": - case "mceTableInsertColBefore": - case "mceTableInsertColAfter": - case "mceTableDeleteCol": - var trElement = tinyMCE.getParentElement(this.getFocusElement(), "tr"); - var tdElement = tinyMCE.getParentElement(this.getFocusElement(), "td"); - var tableElement = tinyMCE.getParentElement(this.getFocusElement(), "table"); - - // No table just return (invalid command) - if (!tableElement) - return; - - var documentRef = this.contentWindow.document; - var tableBorder = tableElement.getAttribute("border"); - var visualAidStyle = this.visualAid ? tinyMCE.settings['visual_table_style'] : ""; - - // Table has a tbody use that reference - if (tableElement.firstChild && tableElement.firstChild.nodeName.toLowerCase() == "tbody") - tableElement = tableElement.firstChild; - - if (tableElement && trElement) { - switch (command) { - case "mceTableInsertRowBefore": - var numcells = trElement.cells.length; - var rowCount = 0; - var tmpTR = trElement; - - // Count rows - while (tmpTR) { - if (tmpTR.nodeName.toLowerCase() == "tr") - rowCount++; - - tmpTR = tmpTR.previousSibling; - } - - var r = tableElement.insertRow(rowCount == 0 ? 1 : rowCount-1); - for (var i=0; i numCols) - numCols = tableElement.rows[y].cells.length; - } - - // Remove whole table - if (numCols <= 1) { - if (tinyMCE.isGecko) - this.selectNode(selElm); - - tableElement.parentNode.removeChild(tableElement); - tinyMCE.triggerNodeChange(); - return; - } - - // Remove columns - for (var y=0; y 0) - selElm = tableElement.rows[0].cells[index-1]; - - if (tinyMCE.isGecko) - this.selectNode(selElm); - break; - } - - tinyMCE.triggerNodeChange(); - } - break; - case "mceAddUndoLevel": if (tinyMCE.settings['custom_undo_redo']) { var customUndoLevels = tinyMCE.settings['custom_undo_redo_levels']; @@ -3724,8 +3527,8 @@ function TinyMCEControl_execCommand(command, user_interface, value) { /* case "removeformat": //this.contentDocument.execCommand('FormatBlock', user_interface, ''); - var documentRef = this.contentWindow.document; - var rng = documentRef.selection.createRange(); + var doc = this.contentWindow.document; + var rng = doc.selection.createRange(); var elm = rng.item ? rng.item(0) : rng.parentElement(); html = "" + rng.text + "<" + elm.nodeName + ">"; @@ -3739,14 +3542,14 @@ function TinyMCEControl_execCommand(command, user_interface, value) { alert(html); if (tinyMCE.isMSIE) { - var documentRef = this.contentWindow.document; - var rngs = documentRef.selection.createRangeCollection(); + var doc = this.contentWindow.document; + var rngs = doc.selection.createRangeCollection(); for (var i=0; i