Commit 15c92fed authored by sgalinsk's avatar sgalinsk
Browse files

[FEATURE] Adjusted code for tinymce 4.0


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/lfeditor/trunk@76633 735d13b6-9817-0410-8766-e36946ffe9aa
parent 07aa34f8
......@@ -53,7 +53,7 @@ $EM_CONF[$_EXTKEY] = array(
'conflicts' => array(
),
'suggests' => array(
'tinymce' => '',
'tinymce' => '4.0.0-4.0.99',
),
),
'_md5_values_when_last_written' => 'a:47:{s:16:"ext_autoload.php";s:4:"9347";s:21:"ext_conf_template.txt";s:4:"253d";s:12:"ext_icon.gif";s:4:"9905";s:14:"ext_tables.php";s:4:"f217";s:14:"doc/manual.sxw";s:4:"ce20";s:26:"mod1/class.LFException.php";s:4:"7b91";s:20:"mod1/class.sgLib.php";s:4:"efd1";s:36:"mod1/class.tx_lfeditor_mod1_file.php";s:4:"76a9";s:43:"mod1/class.tx_lfeditor_mod1_file_backup.php";s:4:"68e5";s:41:"mod1/class.tx_lfeditor_mod1_file_base.php";s:4:"460b";s:44:"mod1/class.tx_lfeditor_mod1_file_basePHP.php";s:4:"2324";s:44:"mod1/class.tx_lfeditor_mod1_file_baseXLF.php";s:4:"9385";s:44:"mod1/class.tx_lfeditor_mod1_file_baseXML.php";s:4:"13cc";s:40:"mod1/class.tx_lfeditor_mod1_file_xll.php";s:4:"1f92";s:43:"mod1/class.tx_lfeditor_mod1_file_xllPHP.php";s:4:"6d21";s:43:"mod1/class.tx_lfeditor_mod1_file_xllXML.php";s:4:"2f39";s:41:"mod1/class.tx_lfeditor_mod1_functions.php";s:4:"f837";s:40:"mod1/class.tx_lfeditor_mod1_template.php";s:4:"39da";s:23:"mod1/class.typo3Lib.php";s:4:"bbec";s:13:"mod1/conf.php";s:4:"e4a4";s:21:"mod1/da.locallang.xml";s:4:"e04f";s:25:"mod1/da.locallang_mod.xml";s:4:"5d3b";s:21:"mod1/de.locallang.xml";s:4:"8181";s:25:"mod1/de.locallang_mod.xml";s:4:"5d55";s:21:"mod1/fi.locallang.xml";s:4:"644f";s:25:"mod1/fi.locallang_mod.xml";s:4:"3557";s:14:"mod1/index.php";s:4:"e0af";s:18:"mod1/locallang.xml";s:4:"638f";s:22:"mod1/locallang_mod.xml";s:4:"93f7";s:19:"mod1/moduleicon.png";s:4:"f2a8";s:22:"mod1/textareaResize.js";s:4:"5411";s:21:"mod1/tinyMCEConfig.js";s:4:"e5db";s:25:"mod1/tx_lfeditor_mod1.css";s:4:"d0a5";s:24:"mod1/tx_lfeditor_mod1.js";s:4:"9bf8";s:19:"res/images/diff.gif";s:4:"3ba9";s:22:"res/images/garbage.gif";s:4:"5d02";s:19:"res/images/join.gif";s:4:"86ea";s:25:"res/images/joinBottom.gif";s:4:"3822";s:19:"res/images/line.gif";s:4:"d3d7";s:19:"res/images/mail.gif";s:4:"aa1c";s:22:"res/images/recover.gif";s:4:"ee1a";s:24:"res/images/treeMinus.gif";s:4:"dd7a";s:30:"res/images/treeMinusBottom.gif";s:4:"a1b6";s:23:"res/images/treePlus.gif";s:4:"86da";s:29:"res/images/treePlusBottom.gif";s:4:"6ac4";s:19:"res/zip/zip.lib.php";s:4:"5cb3";s:24:"templates/main_mod1.html";s:4:"4dac";}',
......
function myCustomCleanup(type, value) {
switch (type) {
case 'insert_to_editor':
value = value.replace("\n", '<br />');
break;
}
return value;
}
tinyMCE.init({
height: '100',
mode: 'textareas',
tinymce.init({
selector: 'textarea',
entity_encoding: 'raw',
forced_root_block: false,
convert_newlines_to_brs: true,
cleanup_callback: 'myCustomCleanup',
theme: 'advanced',
theme_advanced_buttons1: 'bold,italic,underline,strikethrough,separator,forecolor,backcolor,charmap,separator,bullist,numlist,separator,code,fullscreen,spellchecker',
theme_advanced_buttons2: '',
theme_advanced_buttons3: '',
theme_advanced_toolbar_location: 'top',
theme_advanced_toolbar_align: 'left',
theme_advanced_path: false,
theme_advanced_statusbar_location: 'bottom',
theme_advanced_resizing: true,
theme_advanced_resize_horizontal: false,
plugins: 'fullscreen,spellchecker'
});
forced_root_block: false
});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment