mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 18:32:44 +02:00
Issue #1155, Issue #1035, and possibly related to Issue #928. These changes are precautions. Still not sure what is causing it.
This commit is contained in:
@@ -19,7 +19,7 @@ if((e107::wysiwyg() === true && check_class($pref['post_html'])) || strpos(e_SEL
|
||||
//e107::js('tinymce','tiny_mce.js','jquery');
|
||||
//e107::js('tinymce','wysiwyg.php','jquery',5);
|
||||
|
||||
e107::js('footer', "http://tinymce.cachefly.net/4.1/tinymce.min.js");
|
||||
e107::js('footer', "http://tinymce.cachefly.net/4.2/tinymce.min.js");
|
||||
e107::js('footer',e_PLUGIN.'tinymce4/wysiwyg.php','jquery',5);
|
||||
// e107::js('inline', "
|
||||
// tinymce.init({selector:'.e-wysiwyg'});
|
||||
@@ -85,6 +85,8 @@ if((e107::wysiwyg() === true && check_class($pref['post_html'])) || strpos(e_SEL
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*
|
||||
$('img.tinyInsertEmote').live('click',function() {
|
||||
|
||||
|
@@ -166,7 +166,13 @@ class wysiwyg
|
||||
$this->getConfig($config);
|
||||
$text = "\n /* TinyMce Config: ".$this->configName." */\n\n";
|
||||
$text .= "tinymce.init({\n";
|
||||
/* $text .= "setup: function (editor) {
|
||||
editor.on('blur', function () {
|
||||
editor.save();
|
||||
});
|
||||
},\n";*/
|
||||
$text .= $this->config; // Moc: temporary fix for BC with PHP 5.3: https://github.com/e107inc/e107/issues/614
|
||||
|
||||
$text .= "\n});";
|
||||
|
||||
|
||||
@@ -319,7 +325,7 @@ class wysiwyg
|
||||
|
||||
$ret = array(
|
||||
'selector' => '.e-wysiwyg',
|
||||
'theme' => 'modern',
|
||||
|
||||
'plugins' => $this->filter_plugins($config['tinymce_plugins']),
|
||||
'language' => $this->tinymce_lang()
|
||||
|
||||
|
Reference in New Issue
Block a user