Changeset 2d889ec in github
- Timestamp:
- May 2, 2011 3:49:34 AM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 87e58c7
- Parents:
- 2a38001
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/editor.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rcf58ce8 r2d889ec 2 2 =========================== 3 3 4 - Add possibility to change HTML editor configuration by skin 4 5 - Fix a bug where selecting too many contacts would produce too large URI request (#1487892) 5 6 - Fix relative URLs handling according to a <base> in HTML (#1487889) -
program/js/editor.js
r94dfd8a r2d889ec 17 17 function rcmail_editor_init(skin_path, editor_lang, spellcheck, mode) 18 18 { 19 if (mode == 'identity') 20 tinyMCE.init({ 19 var ret, conf = { 21 20 mode: 'textareas', 22 21 editor_selector: 'mce_editor', … … 25 24 language: editor_lang, 26 25 content_css: skin_path + '/editor_content.css', 27 plugins: 'paste,tabfocus',28 26 theme_advanced_toolbar_location: 'top', 29 27 theme_advanced_toolbar_align: 'left', 28 theme_advanced_buttons3: '', 29 extended_valid_elements: 'font[face|size|color|style],span[id|class|align|style]', 30 relative_urls: false, 31 remove_script_host: false, 32 gecko_spellcheck: true, 33 convert_urls: false, // #1486944 34 external_image_list_url: 'program/js/editor_images.js', 35 rc_client: rcmail 36 }; 37 38 if (mode == 'identity') 39 $.extend(conf, { 40 plugins: 'paste,tabfocus', 30 41 theme_advanced_buttons1: 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr,link,unlink,code,forecolor', 31 42 theme_advanced_buttons2: ',fontselect,fontsizeselect', 32 theme_advanced_buttons3: '',33 relative_urls: false,34 remove_script_host: false,35 gecko_spellcheck: true36 43 }); 37 44 else // mail compose 38 tinyMCE.init({ 39 mode: 'textareas', 40 editor_selector: 'mce_editor', 41 accessibility_focus: false, 42 apply_source_formatting: true, 43 theme: 'advanced', 44 language: editor_lang, 45 $.extend(conf, { 45 46 plugins: 'paste,emotions,media,nonbreaking,table,searchreplace,visualchars,directionality,tabfocus,contextmenu' + (spellcheck ? ',spellchecker' : ''), 46 47 theme_advanced_buttons1: 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent,ltr,rtl,blockquote,|,forecolor,backcolor,fontselect,fontsizeselect', 47 48 theme_advanced_buttons2: 'link,unlink,code,|,emotions,charmap,image,media,|,search' + (spellcheck ? ',spellchecker' : '') + ',undo,redo', 48 theme_advanced_buttons3: '',49 theme_advanced_toolbar_location: 'top',50 theme_advanced_toolbar_align: 'left',51 extended_valid_elements: 'font[face|size|color|style],span[id|class|align|style]',52 content_css: skin_path + '/editor_content.css',53 external_image_list_url: 'program/js/editor_images.js',54 49 spellchecker_languages: (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'), 55 50 spellchecker_rpc_url: '?_task=utils&_action=spell&tiny=1', 56 gecko_spellcheck: true, 57 remove_script_host: false, 58 relative_urls: false, 59 convert_urls: false, // #1486944 60 rc_client: rcmail, 51 accessibility_focus: false, 61 52 oninit: 'rcmail_editor_callback' 62 53 }); 54 55 // support external configuration settings e.g. from skin 56 if (window.rcmail_editor_settings) 57 $.extend(conf, window.rcmail_editor_settings); 58 59 tinyMCE.init(conf); 63 60 } 64 61
Note: See TracChangeset
for help on using the changeset viewer.
