1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

TinyMce browser-spellcheck preference added.

This commit is contained in:
Cameron
2015-04-05 12:58:23 -07:00
parent bb5b34b15d
commit 65b52f9e83
3 changed files with 15 additions and 1 deletions

View File

@@ -56,7 +56,9 @@ if( !e107::isInstalled('tinymce4'))
protected $prefs = array( protected $prefs = array(
'paste_as_text' => array('title'=> 'Paste as text by default', 'type'=>'boolean', 'data' => 'int','help'=> ''), ); 'paste_as_text' => array('title'=> 'Paste as text by default', 'type'=>'boolean', 'data' => 'int','help'=> ''),
'browser_spellcheck' => array('title'=> 'Browser spellcheck', 'type'=>'boolean', 'data' => 'int','help'=> 'Enable this if the browser internal spellchecker should be used.'),
);
public function init() public function init()

View File

@@ -6,4 +6,8 @@
<adminLinks> <adminLinks>
<link url='admin_config.php' description='Configure' icon='images/icon_32.png' iconSmall='images/icon_16.png' primary='true' >Configure</link> <link url='admin_config.php' description='Configure' icon='images/icon_32.png' iconSmall='images/icon_16.png' primary='true' >Configure</link>
</adminLinks> </adminLinks>
<pluginPrefs>
<pref name="paste_as_text">0</pref>
<pref name="browser_spellcheck">1</pref>
</pluginPrefs>
</e107Plugin> </e107Plugin>

View File

@@ -323,6 +323,14 @@ class wysiwyg
$ret['paste_as_text'] = true; $ret['paste_as_text'] = true;
} }
if(!empty($tPref['browser_spellcheck']))
{
$ret['browser_spellcheck'] = true;
}
$ret['convert_fonts_to_spans'] = false; $ret['convert_fonts_to_spans'] = false;
$ret['content_css'] = e_PLUGIN_ABS.'tinymce4/editor.css,https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css,http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'; $ret['content_css'] = e_PLUGIN_ABS.'tinymce4/editor.css,https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css,http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css';