Changeset 1403
- Timestamp:
- 12/07/07 00:28:21 (1 year ago)
- Files:
-
- devel/mod/tinymce/tinymce_js.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/tinymce/tinymce_js.php
r1304 r1403 34 34 35 35 // gzip thingy should only assemble plugins we're actually using 36 $plugins = 'spellchecker,emotions,contextmenu,preview,style,searchreplace, autosave,safari';36 $plugins = 'spellchecker,emotions,contextmenu,preview,style,searchreplace,safari'; 37 37 //plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,spellchecker', 38 38 … … 47 47 $elementstring = implode(",", $elements); 48 48 49 50 49 // auto select spellchecker language based on $lang 50 $available_langs = array('English=en','Dutch=nl','German=de', 51 'Spanish=es','Danish=dk','Swedish=sv', 52 'French=fr','Japanese=jp'); 53 $spell_langs = array(); 54 $spell_found = false; 55 56 foreach ($available_langs as $slang) { 57 $lang_code = substr($slang,strlen($slang)-2,2); 58 59 if ($lang_code == $lang) { 60 $spell_langs[] = '+' . $slang; 61 $spell_found = true; 62 } else { 63 $spell_langs[] = $slang; 64 } 65 } 66 67 $spellcheck_languages = implode(',', $spell_langs); 68 69 // Set default first language if lang not found in spell langs 70 if (!$spell_found) { 71 $spellcheck_languages = '+' . $spellcheck_languages; 72 } 73 51 74 $metatags .= <<< END 52 75 <script language="javascript" type="text/javascript" src="$url/mod/tinymce/lib/jscripts/tiny_mce/tiny_mce_gzip.js"></script> … … 56 79 plugins : '$plugins', 57 80 themes : 'advanced', 58 language s : 'en,$lang',81 language : '$lang', 59 82 disk_cache : true, 60 83 debug : false … … 83 106 theme_advanced_source_editor_width : "400", 84 107 theme_advanced_source_editor_height : "400", 85 spellchecker_languages : " +English=en,Dutch=nl,German=de,Spanish=es,Danish=dk,Swedish=sv,French=fr,Japanese=jp",108 spellchecker_languages : "$spellcheck_languages", 86 109 document_base_url : "$url", 87 110 fullscreen_settings : {
