mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
TinyMce browser-spellcheck preference added.
This commit is contained in:
@@ -56,7 +56,9 @@ if( !e107::isInstalled('tinymce4'))
|
||||
|
||||
|
||||
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()
|
||||
|
@@ -6,4 +6,8 @@
|
||||
<adminLinks>
|
||||
<link url='admin_config.php' description='Configure' icon='images/icon_32.png' iconSmall='images/icon_16.png' primary='true' >Configure</link>
|
||||
</adminLinks>
|
||||
<pluginPrefs>
|
||||
<pref name="paste_as_text">0</pref>
|
||||
<pref name="browser_spellcheck">1</pref>
|
||||
</pluginPrefs>
|
||||
</e107Plugin>
|
@@ -323,6 +323,14 @@ class wysiwyg
|
||||
$ret['paste_as_text'] = true;
|
||||
}
|
||||
|
||||
|
||||
if(!empty($tPref['browser_spellcheck']))
|
||||
{
|
||||
$ret['browser_spellcheck'] = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$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';
|
||||
|
||||
|
Reference in New Issue
Block a user