Cheetah
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ChBaseEditorTinyMCE Class Reference
Inheritance diagram for ChBaseEditorTinyMCE:
ChWsbEditor ChTemplEditorTinyMCE

Public Member Functions

 __construct ($aObject, $oTemplate)
 
 getWidth ($iViewMode)
 
 setCustomConf ($s)
 
 attachEditor ($sSelector, $iViewMode=CH_EDITOR_STANDARD, $bDynamicMode=false)
 
- Public Member Functions inherited from ChWsbEditor
 __construct ($aObject)
 
 getObjectName ()
 

Protected Member Functions

 _addJsCss ($bDynamicMode=false, $sInitEditor='')
 
- Protected Member Functions inherited from ChWsbEditor
 _addJsCss ($bDynamicMode=false)
 
 _replaceMarkers ($s, $a)
 

Protected Attributes

 $_sConfCustom = ''
 
 $_oTemplate
 
 $_bJsCssAdded = false
 
- Protected Attributes inherited from ChWsbEditor
 $_sObject
 
 $_aObject
 

Static Protected Attributes

static $CONF_COMMON
 
static $WIDTH_STANDARD = '100%'
 
static $MODULES_STANDARD
 
static $CONF_STANDARD
 
static $WIDTH_MINI = '100%'
 
static $MODULES_MINI
 
static $CONF_MINI
 
static $WIDTH_FULL = '100%'
 
static $MODULES_FULL
 
static $CONF_FULL
 
static $CONF_LANGS = array('ar' => 1, 'ar_SA' => 1, 'az' => 1, 'be' => 1, 'bg_BG' => 1, 'bn_BD' => 1, 'bs' => 1, 'ca' => 1, 'cs' => 1, 'cs_CZ' => 1, 'cy' => 1, 'da' => 1, 'de' => 1, 'de_AT' => 1, 'dv' => 1, 'el' => 1, 'en_CA' => 1, 'en_GB' => 1, 'eo' => 1, 'es' => 1, 'es_MX' => 1, 'et' => 1, 'eu' => 1, 'fa' => 1, 'fa_IR' => 1, 'fi' => 1, 'fo' => 1, 'fr_CH' => 1, 'fr_FR' => 1, 'ga' => 1, 'gd' => 1, 'gl' => 1, 'he_IL' => 1, 'hi_IN' => 1, 'hr' => 1, 'hu_HU' => 1, 'hy' => 1, 'id' => 1, 'is_IS' => 1, 'it' => 1, 'ja' => 1, 'ka_GE' => 1, 'kab' => 1, 'kk' => 1, 'km_KH' => 1, 'ko' => 1, 'ko_KR' => 1, 'ku' => 1, 'ku_IQ' => 1, 'lb' => 1, 'lt' => 1, 'lv' => 1, 'ml' => 1, 'ml_IN' => 1, 'mn_MN' => 1, 'nb_NO' => 1, 'nl' => 1, 'pl' => 1, 'pt_BR' => 1, 'pt_PT' => 1, 'ro' => 1, 'ru' => 1, 'si_LK' => 1, 'sk' => 1, 'sl_SI' => 1, 'sr' => 1, 'sv_SE' => 1, 'ta' => 1, 'ta_IN' => 1, 'tg' => 1, 'th_TH' => 1, 'tr' => 1, 'tr_TR' => 1, 'tt' => 1, 'ug' => 1, 'uk' => 1, 'uk_UA' => 1, 'vi' => 1, 'vi_VN' => 1, 'zh_CN' => 1, 'zh_TW' => 1)
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbEditor
static getObjectInstance ($sObject=false)
 

Detailed Description

TinyMCE editor representation.

See also
ChWsbEditor

Definition at line 14 of file ChBaseEditorTinyMCE.php.

Constructor & Destructor Documentation

◆ __construct()

ChBaseEditorTinyMCE::__construct (   $aObject,
  $oTemplate 
)

Reimplemented in ChTemplEditorTinyMCE, ChTemplEditorTinyMCE, and ChTemplEditorTinyMCE.

Definition at line 138 of file ChBaseEditorTinyMCE.php.

Member Function Documentation

◆ _addJsCss()

ChBaseEditorTinyMCE::_addJsCss (   $bDynamicMode = false,
  $sInitEditor = '' 
)
protected

Add css/js files which are needed for editor display and functionality.

Definition at line 260 of file ChBaseEditorTinyMCE.php.

◆ attachEditor()

ChBaseEditorTinyMCE::attachEditor (   $sSelector,
  $iViewMode = CH_EDITOR_STANDARD,
  $bDynamicMode = false 
)

Attach editor to HTML element, in most cases - textarea.

Parameters
$sSelector- jQuery selector to attach editor to.
$iViewMode- editor view mode: CH_EDITOR_STANDARD, CH_EDITOR_MINI, CH_EDITOR_FULL
$bDynamicMode- is AJAX mode or not, the HTML with editor area is loaded dynamically.

Reimplemented from ChWsbEditor.

Definition at line 179 of file ChBaseEditorTinyMCE.php.

◆ getWidth()

ChBaseEditorTinyMCE::getWidth (   $iViewMode)

Get minimal width which is neede for editor for the provided view mode

Reimplemented from ChWsbEditor.

Definition at line 151 of file ChBaseEditorTinyMCE.php.

◆ setCustomConf()

ChBaseEditorTinyMCE::setCustomConf (   $s)

Set custom TinyMCE configuration option

Definition at line 168 of file ChBaseEditorTinyMCE.php.

Member Data Documentation

◆ $_bJsCssAdded

ChBaseEditorTinyMCE::$_bJsCssAdded = false
protected

Definition at line 136 of file ChBaseEditorTinyMCE.php.

◆ $_oTemplate

ChBaseEditorTinyMCE::$_oTemplate
protected

Definition at line 135 of file ChBaseEditorTinyMCE.php.

◆ $_sConfCustom

ChBaseEditorTinyMCE::$_sConfCustom = ''
protected

Definition at line 128 of file ChBaseEditorTinyMCE.php.

◆ $CONF_COMMON

ChBaseEditorTinyMCE::$CONF_COMMON
staticprotected
Initial value:
= "
jQuery('{ch_var_selector}').tinymce({
{ch_var_custom_init}
{ch_var_custom_conf}
document_base_url: '{ch_url_root}',
skin_url: '{ch_url_tinymce}skins/{ch_var_skin}/',
language: '{ch_var_lang}',
language_url: '{ch_url_tinymce}langs/{ch_var_lang}.js',
content_css: '{ch_var_css_path}',
entity_encoding: 'raw',
browser_spellcheck: true
});
"

Common initialization params

Definition at line 19 of file ChBaseEditorTinyMCE.php.

◆ $CONF_FULL

ChBaseEditorTinyMCE::$CONF_FULL
staticprotected
Initial value:
= "
external_plugins: {
{modules}
},
width: '100%',
height: '320',
theme_url: '{ch_url_tinymce}themes/modern/theme.min.js',
toolbar: [
'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
'print preview media | forecolor emoticons'
],
statusbar: true,
resize: true,
image_advtab: true,
"

Definition at line 112 of file ChBaseEditorTinyMCE.php.

◆ $CONF_LANGS

ChBaseEditorTinyMCE::$CONF_LANGS = array('ar' => 1, 'ar_SA' => 1, 'az' => 1, 'be' => 1, 'bg_BG' => 1, 'bn_BD' => 1, 'bs' => 1, 'ca' => 1, 'cs' => 1, 'cs_CZ' => 1, 'cy' => 1, 'da' => 1, 'de' => 1, 'de_AT' => 1, 'dv' => 1, 'el' => 1, 'en_CA' => 1, 'en_GB' => 1, 'eo' => 1, 'es' => 1, 'es_MX' => 1, 'et' => 1, 'eu' => 1, 'fa' => 1, 'fa_IR' => 1, 'fi' => 1, 'fo' => 1, 'fr_CH' => 1, 'fr_FR' => 1, 'ga' => 1, 'gd' => 1, 'gl' => 1, 'he_IL' => 1, 'hi_IN' => 1, 'hr' => 1, 'hu_HU' => 1, 'hy' => 1, 'id' => 1, 'is_IS' => 1, 'it' => 1, 'ja' => 1, 'ka_GE' => 1, 'kab' => 1, 'kk' => 1, 'km_KH' => 1, 'ko' => 1, 'ko_KR' => 1, 'ku' => 1, 'ku_IQ' => 1, 'lb' => 1, 'lt' => 1, 'lv' => 1, 'ml' => 1, 'ml_IN' => 1, 'mn_MN' => 1, 'nb_NO' => 1, 'nl' => 1, 'pl' => 1, 'pt_BR' => 1, 'pt_PT' => 1, 'ro' => 1, 'ru' => 1, 'si_LK' => 1, 'sk' => 1, 'sl_SI' => 1, 'sr' => 1, 'sv_SE' => 1, 'ta' => 1, 'ta_IN' => 1, 'tg' => 1, 'th_TH' => 1, 'tr' => 1, 'tr_TR' => 1, 'tt' => 1, 'ug' => 1, 'uk' => 1, 'uk_UA' => 1, 'vi' => 1, 'vi_VN' => 1, 'zh_CN' => 1, 'zh_TW' => 1)
staticprotected

Available editor languages

Definition at line 133 of file ChBaseEditorTinyMCE.php.

◆ $CONF_MINI

ChBaseEditorTinyMCE::$CONF_MINI
staticprotected
Initial value:
= "
menubar: false,
external_plugins: {
{modules}
},
width: '100%',
height: '150',
theme_url: '{ch_url_tinymce}themes/modern/theme.min.js',
toolbar: 'bold italic underline removeformat | bullist numlist | alignleft aligncenter alignright | blockquote | link unlink image',
statusbar: false,
"

Definition at line 71 of file ChBaseEditorTinyMCE.php.

◆ $CONF_STANDARD

ChBaseEditorTinyMCE::$CONF_STANDARD
staticprotected
Initial value:
= "
external_plugins: {
{modules}
},
width: '100%',
height: '270',
theme_url: '{ch_url_tinymce}themes/modern/theme.min.js',
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
statusbar: true,
resize: true,
"

Definition at line 49 of file ChBaseEditorTinyMCE.php.

◆ $MODULES_FULL

ChBaseEditorTinyMCE::$MODULES_FULL
staticprotected
Initial value:
= array (
"advlist: '{ch_url_tinymce}plugins/advlist/plugin.min.js'",
"anchor: '{ch_url_tinymce}plugins/anchor/plugin.min.js'",
"autolink: '{ch_url_tinymce}plugins/autolink/plugin.min.js'",
"autoresize: '{ch_url_tinymce}plugins/autoresize/plugin.min.js'",
"autosave: '{ch_url_tinymce}plugins/autosave/plugin.min.js'",
"charmap: '{ch_url_tinymce}plugins/charmap/plugin.min.js'",
"code: '{ch_url_tinymce}plugins/code/plugin.min.js'",
"emoticons: '{ch_url_tinymce}plugins/emoticons/plugin.min.js'",
"hr: '{ch_url_tinymce}plugins/hr/plugin.min.js'",
"image: '{ch_url_tinymce}plugins/image/plugin.min.js'",
"link: '{ch_url_tinymce}plugins/link/plugin.min.js'",
"lists: '{ch_url_tinymce}plugins/lists/plugin.min.js'",
"media: '{ch_url_tinymce}plugins/media/plugin.min.js'",
"nonbreaking: '{ch_url_tinymce}plugins/nonbreaking/plugin.min.js'",
"pagebreak: '{ch_url_tinymce}plugins/pagebreak/plugin.min.js'",
"preview: '{ch_url_tinymce}plugins/preview/plugin.min.js'",
"print: '{ch_url_tinymce}plugins/print/plugin.min.js'",
"save: '{ch_url_tinymce}plugins/save/plugin.min.js'",
"searchreplace: '{ch_url_tinymce}plugins/searchreplace/plugin.min.js'",
"table: '{ch_url_tinymce}plugins/table/plugin.min.js'",
"textcolor: '{ch_url_tinymce}plugins/textcolor/plugin.min.js'",
"visualblocks: '{ch_url_tinymce}plugins/visualblocks/plugin.min.js'",
"fullscreen: '{ch_url_tinymce}plugins/fullscreen/plugin.min.js'",
)

Definition at line 87 of file ChBaseEditorTinyMCE.php.

◆ $MODULES_MINI

ChBaseEditorTinyMCE::$MODULES_MINI
staticprotected
Initial value:
= array (
"autolink: '{ch_url_tinymce}plugins/autolink/plugin.min.js'",
"image: '{ch_url_tinymce}plugins/image/plugin.min.js'",
"link: '{ch_url_tinymce}plugins/link/plugin.min.js'",
"lists: '{ch_url_tinymce}plugins/lists/plugin.min.js'",
)

Definition at line 65 of file ChBaseEditorTinyMCE.php.

◆ $MODULES_STANDARD

ChBaseEditorTinyMCE::$MODULES_STANDARD
staticprotected
Initial value:
= array (
"advlist: '{ch_url_tinymce}plugins/advlist/plugin.min.js'",
"autolink: '{ch_url_tinymce}plugins/autolink/plugin.min.js'",
"autosave: '{ch_url_tinymce}plugins/autosave/plugin.min.js'",
"code: '{ch_url_tinymce}plugins/code/plugin.min.js'",
"hr: '{ch_url_tinymce}plugins/hr/plugin.min.js'",
"image: '{ch_url_tinymce}plugins/image/plugin.min.js'",
"link: '{ch_url_tinymce}plugins/link/plugin.min.js'",
"lists: '{ch_url_tinymce}plugins/lists/plugin.min.js'",
"media: '{ch_url_tinymce}plugins/media/plugin.min.js'",
"fullscreen: '{ch_url_tinymce}plugins/fullscreen/plugin.min.js'",
)

Definition at line 37 of file ChBaseEditorTinyMCE.php.

◆ $WIDTH_FULL

ChBaseEditorTinyMCE::$WIDTH_FULL = '100%'
staticprotected

Full view initialization params

Definition at line 86 of file ChBaseEditorTinyMCE.php.

◆ $WIDTH_MINI

ChBaseEditorTinyMCE::$WIDTH_MINI = '100%'
staticprotected

Minimal view initialization params

Definition at line 64 of file ChBaseEditorTinyMCE.php.

◆ $WIDTH_STANDARD

ChBaseEditorTinyMCE::$WIDTH_STANDARD = '100%'
staticprotected

Standard view initialization params

Definition at line 36 of file ChBaseEditorTinyMCE.php.


The documentation for this class was generated from the following file: