Class cTinyMCE4Editor
The object cTinyMCE4Editor is a wrapper class to the TinyMCE WYSIWYG Editor. Attributes can be defined to generate JavaScript options and functions to initialise the global tinymce object in file ./contenido/external/wysiwyg/tinymce4/contenido/templates/template.tinymce_tpl.html.
All settings accepted by tinyMCE and its plugins may be specified using system, client group or user property/setting.
The following parameters will be always set on initialization (even, if they have been specified as property. They can be set using setSetting later on, if needed): document_base_url cleanup_callback (-> XHTML) file_browser_callback external_link_list_url external_image_list_url
The following settings are only used in CONTENIDO: contenido_toolbar_mode: full, simple, mini, custom contenido_lists: link,image contenido_height_html contenido_height_head See backend.customizing.html for details
- cWYSIWYGEditor
- cTinyMCE4Editor
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Thomas Stauer
Located at external/wysiwyg/tinymce4/contenido/classes/class.tinymce4.editor.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
private
|
#
setGZIPMode( string $bEnabled = true )
Set if editor should be loaded using tinymce4's gzip compression |
public
boolean
|
|
public
|
#
setToolbar( $cmsType, $sMode = "" )
For compatibility also accepts "tinymce-toolbar-mode", "tinymce-toolbar1-3" and "tinymce4-plugins" |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
_setSetting( string $sType, string $sKey, string $sValue, boolean $bForceSetting = false )
Sets given setting if setting was not yet defined. Overwriting defined setting can be achieved with $bForceSetting = true. |
protected
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public static
array
|
#
safeConfig( array $config )
Saves configuration of WYSIWYG editor into a file This function does not validate input! This has to be done by classes that extend cWYSIWYGEditor because this class does not know what each WYSIWYG editor expects. |
_getEditorPath(),
_setEditor(),
_setEditorContent(),
_setEditorName(),
getCurrentWysiwygEditorName()
|
private
|
$_sBaseURL
Stores base url of page |
|
private
boolean
|
$_bUseGZIP
Stores, if GZIP compression will be used |
#
false
|
protected static
string
|
$_sConfigPrefix
Access key under which the wysiwyg editor settings will be stored |
#
'[\'wysiwyg\'][\'tinymce4\']'
|
$_aSettings,
$_sEditor,
$_sEditorContent,
$_sEditorName,
$_sPath
|