From 3d85dc04877524e7a9635597c012b98ebf650152 Mon Sep 17 00:00:00 2001 From: JB Lebrun Date: Tue, 31 Jul 2018 12:12:09 +0200 Subject: [PATCH] Normalises files format, indents more nicely the code and makes the TinyMCEv3 input, ready to be parsed by Doxygen. --- plugin/input/TinyMCEv3/TinyMCEv3.php.inc | 727 +++++++++--------- plugin/input/TinyMCEv3/html/input.html.inc | 36 +- plugin/input/TinyMCEv3/js/configs/advanced.js | 41 +- plugin/input/TinyMCEv3/js/configs/classic.js | 37 +- .../input/TinyMCEv3/js/configs/classic_cs.js | 39 +- plugin/input/TinyMCEv3/js/configs/default.js | 39 +- plugin/input/TinyMCEv3/js/configs/flash.js | 41 +- plugin/input/TinyMCEv3/js/configs/simple.js | 41 +- .../input/TinyMCEv3/js/configs/simple_cs.js | 39 +- plugin/input/TinyMCEv3/js/configs/textual.js | 39 +- .../TinyMCEv3/locale/translation_en.php.inc | 44 +- .../TinyMCEv3/locale/translation_fr.php.inc | 44 +- 12 files changed, 590 insertions(+), 577 deletions(-) diff --git a/plugin/input/TinyMCEv3/TinyMCEv3.php.inc b/plugin/input/TinyMCEv3/TinyMCEv3.php.inc index efb4913b..fa103f4b 100755 --- a/plugin/input/TinyMCEv3/TinyMCEv3.php.inc +++ b/plugin/input/TinyMCEv3/TinyMCEv3.php.inc @@ -1,356 +1,371 @@ - - * CaMykS Version : 1.0a - * Object Version : 1.0 - * Object Type : Plugin / Input Engine - * Create Date : Jul 2008 - * Last Modif Date : Jul 2008 - * - * TinyMCE input : TinyMCE WebEditor Integration - * - * TinyMCE is an external system developped by Moxiecode Systems AB - * More infos, visit TinyMCE website : http://tinymce.moxiecode.com/ - * Installed TinyMCE version: 3.4.5 - */ - -class TinyMCEv3 extends Input { - /* variables */ - var $contentType; - var $contentValue; - var $configType; - var $configValue; - var $ta_name; - var $ta_cols; - var $ta_rows; - - /* - * constructor - * @param string $path_type - */ - function TinyMCEv3 ( $path_type ) { - parent::Input('TinyMCEv3', $path_type); - /* set plugin version */ - $this->version = '1.0'; - /* set plugin package */ - $this->plugin_package = 'Default'; - /* set plugin author */ - $this->author_name = 'CaMykS Team'; - $this->author_mail = 'camyks.contact@gmail.com'; - $this->author_group = 'camyks.net'; - /* initialise plugin variables */ - $this->contentType = 'text'; - $this->contentValue = ''; - $this->contentLg = ''; - $this->configType = ''; - $this->configValue = ''; - $this->configMore = array(); - $this->ta_name = 'tinymceta'; - $this->ta_sizex = '100%'; - $this->ta_sizey = '300px;'; - - /* recommended configs */ - $this->admin_configs = array('default', 'classic', 'simple', 'flash'); - $this->client_configs = array('classic_cs', 'simple_cs', 'textual'); - - /* available configs */ - $this->specific_configs = array('file', 'text'); - $this->builtin_configs = array_merge(array('advanced'), $this->admin_configs, $this->client_configs); - $this->configs = array_merge($this->specific_configs, $this->builtin_configs); - } - - /* overwrite input methods */ - - /* - * initialise input - * @return void - * @access public - */ - function initialise($params=array()) { - global $camyks; - - /* add javascript engine */ - $this->add_JSFile('tiny_mce/tiny_mce.js'); - /* add mail encoding javascript */ - $this->add_JSEngineFile('tool/mail.js'); - /* add current language */ - $this->add_JSPreScript('camyks_language="'.$camyks->current_language.'";'); - - /* load external plugins */ - $extPlugins = $this->get_registeredExtensions(); - if ( $extPlugins === false ) { - $this->add_JSPreScript('camyks_ext_plugins=\'\';'); - $this->add_JSPreScript('camyks_ext_buttons=\'\';'); - } else { - $camyks_ext_plugins = ''; - $camyks_ext_buttons = array(); - foreach($extPlugins as $plugin) { - $pluginParams = $plugin->get_tinyMCEPluginParams(); - - /* add plugin to plugin list */ - $camyks_ext_plugins .= ',-'.$pluginParams['name']; - /* add plugin buttons to buttons list */ - $camyks_ext_buttons = array_merge($camyks_ext_buttons, $pluginParams['buttons']); - } - $this->add_JSPreScript('camyks_ext_plugins=\''.$camyks_ext_plugins.'\';'); - $this->add_JSPreScript('camyks_ext_buttons=\''.implode(',', $camyks_ext_buttons).'\';'); - $this->add_JSPreScript('camyks_plugin_url=\''.$camyks->get_confValue('url').'/'.$camyks->camyks_plugin_url.'\';'); - $this->add_JSPreScript('camyks_data_url=\''.$camyks->get_confValue('url').'/'.$camyks->site_data_url.'\';'); - } - - - /* add path mode values */ - $mode = $camyks->get_confValue('file_path'); - - /* check for boolean mode value */ - if($mode === false) - $mode = 'relative'; - elseif($mode === true) - $mode ='absolute'; - - /* return base url from mode */ - switch ($mode) { - case 'absolute': - case 'absolute_long': - $this->add_JSPreScript('camyks_relative_urls=false;'); - $this->add_JSPreScript('camyks_remove_host=false;'); - break; - case 'absolute_short': - $this->add_JSPreScript('camyks_relative_urls=false;'); - $this->add_JSPreScript('camyks_remove_host=true;'); - break; - case 'relative': - default: - $this->add_JSPreScript('camyks_relative_urls=true;'); - $this->add_JSPreScript('camyks_remove_host=true;'); - break; - } - - /* check config */ - if (!in_array($this->configType, $this->configs )) { - $this->configType = (isset($camyks->_conf['editor_default_config']) && in_array($camyks->_conf['editor_default_config'], $this->configs))?$camyks->_conf['editor_default_config']:'default'; - } - switch ( $this->configType ) { - /* specific configs */ - case 'file': - $this->add_JSExternFile( $this->configValue ); - break; - case 'text': - $this->add_JSScript( $this->configValue ); - break; - /* built-in configs */ - case 'default': - case 'advanced': - case 'classic': - case 'simple': - /* get file manager input object */ - if ( isset($this->configMore['fm_path']) and isset($this->configMore['fm_url'])) - $this->load_fileManager($this->configMore['fm_path'], - $this->configMore['fm_url'], - isset($this->configMore['fm_title'])?$this->configMore['fm_title']:''); - else - $this->load_fileManager(); - case 'flash': - /* get page chooser input object */ - $this->load_pageChooser(); - case 'textual': - case 'classic_cs': - case 'simple_cs': - /* get page theme */ - $this->load_themeCSSFile(); - default: - $this->add_JSFile ( 'configs/'.$this->configType.'.js' ); - break; - } - - - /* Input generic initialisation */ - parent::initialise(); - } - - /* - * display input - * @param string $ta_name - * @return void - * @access public - */ - function display ( $ta_name='' ) { - /* display with new name */ - if ( $ta_name != '' ) { - $this->ta_name = $ta_name; - } - /* Input generic display */ - parent::display(); - } - - /* specific methods */ - - /* - * set content infos - * @param string $contentType - * @param string $contentValue - * @return void - * @access public - */ - function set_contentInfos ( $contentType='text', $contentValue='', $contentLg='' ) { - $this->contentType = $contentType; - $this->contentValue = $contentValue; - $this->contentLg = $contentLg; - - if ($this->contentType == 'file' and !file_exists ( $this->contentValue )) { - $this->contentType = 'text'; - $this->contentValue = ''; - } - } - - /* - * set config infos - * @param string $configType - * @param string $configValue - * @return void - * @access public - */ - function set_configInfos ( $configType='default', $configValue='', $more=array() ) { - $this->configType = $configType; - $this->configValue = $configValue; - $this->configMore = $more; - } - - /* - * set textarea size - * @param string $name - * @param string $sx - * @param string $sy - * @return void - * @access private - */ - function set_textareaInfos( $name='tinymceta', $sx=null, $sy=null ) { - $this->ta_name = $name; - if ( isset ( $sx ) ) - $this->ta_sizex = $sx; - if ( isset ( $sy ) ) - $this->ta_sizey = $sy; - } - - /* - * load page theme - * @param integer $pageid - * @return void - * @access public - */ - function load_themeCSSFile ( $pageid=null ) { - global $camyks; - $theme = ''; - - if ( !isset($pageid) and isset( $_REQUEST['page_id'] ) ) - $pageid = $pageid; - - if ( isset ($pageid ) ) { - /* get page information */ - $page = new ContentPage( $pageid ); - $page->get_fromDatabase(); - $theme = $page->theme; - } - - if ( $theme == '' ) { - $theme = $camyks->site_conf['site_default_theme']; - } - - if ( isset ( $camyks->themes[ $theme ] ) ) { - $theme = $camyks->themes[ $theme ]->get_editorCSSURL(); - } else { - $theme = $this->theme->get_editorCSSURL(); - } - - /* add script before tinymce config init */ - $this->add_JSPreScript('camyks_css_file="'.$theme.'";'); -} - - /* - * load filemanager input - * @param string $fpath - * @param string $furl - * @param string $ftitle - * @return void - * @access public - */ - function load_fileManager( $fpath='', $furl='', $ftitle='' ) { - global $camyks; - /* check input availability */ - if ( isset( $camyks->inputs['FileManager'] )) { - - /* get input */ - $this->filemanager = &$camyks->inputs['FileManager']; - $this->filemanager->set_engineValues('requestlink'); - $this->filemanager->set_selectionValues('image_updatevalue'); - if ( $fpath != '' and $furl != '') { - $this->filemanager->set_folderValues ( $fpath, $furl, $ftitle ); - } - $this->filemanager->initialise( ); - /* add javascripts callback */ - $this->add_JSScript('function image_callback( field_name, field_value, type, win ) {'); - $this->add_JSScript('icb_win = win;'); - $this->add_JSScript('icb_field = field_name;'); - $this->add_JSScript($this->filemanager->get_link( 'field_value' )); - $this->add_JSScript('}'); - $this->add_JSScript('function image_updatevalue ( url ) {'); - $this->add_JSScript('icb_win.document.forms[0].elements[icb_field].value = url;'); - $this->add_JSScript('}'); - } else { - /* send error message when input is not available */ - $this->add_JSScript('function image_callback() {'); - $this->add_JSScript('alert("FileManager Input not found.");'); - $this->add_JSScript('}'); - } - } - - /* - * load pagechooser input - * @return void - * @access public - */ - function load_pageChooser( ) { - global $camyks; - $this->add_JSFile('editor.js'); - - /* check input availability */ - if ( isset ( $camyks->inputs['PageChooser'] ) ) { - /* get input */ - $this->pagechooser = &$camyks->inputs['PageChooser']; - $this->pagechooser->initialise('pagelink', '', 'page_updatevalue'); - $this->add_JSScript('isPageChooserAvailable = true;'); - /* add content languages */ - $this->add_JSScript('editing_languages = new Array("'.implode('", "', $camyks->get_confValue('editing_languages')).'");', true); - $this->add_JSScript('site_languages = new Array("'.implode('", "', $camyks->get_confValue('site_languages')).'");', true); - } else { - $this->add_JSScript('isPageChooserAvailable = false;'); - } - } - - /* - * return selected config list - * @return array - * @access public - */ - function get_configList($mode='admin') { - switch($mode) { - case 'admin': - $c = &$this->admin_configs; - break; - case 'client': - $c = &$this->client_configs; - break; - case 'builtin': - $c = &$this->builtin_configs; - break; - } - $configs = array(); - foreach ( $c as $i ) { - $configs[$c] = $this->get_translation('config_'.$c); - } - return $configs; - } -} -?> \ No newline at end of file + Interfaces TinyMCE version 3 for CaMykS. + * @details Plugin / Input Engine + * @file plugin/input/TinyMCEv3/TinyMCEv3.php.inc + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * @note Includes TinyMCE version 3.5.11 (http://tinymce.moxiecode.com/) + */ + +/** + * TinyMCEv3 Input class. + */ +final class TinyMCEv3 extends Input { + /** + * var string $contentType + * @brief Content type (text or file). + */ + protected $contentType = 'text'; + + /** + * var string $contentValue + * @brief Content value. + */ + protected $contentValue = ''; + + /** + * var string $configType + * @brief Editor configuration. + */ + protected $configType = 'default'; + + /** + * var string $configValue + * @brief Editor specific configuration. + */ + protected $configValue = ''; + + /** + * var string $ta_name + * @brief Editor's name. + */ + protected $ta_name = 'tinymceta'; + + /** + * var string $ta_sizex + * @brief Editor's horizontal size. + */ + protected $ta_sizex = '100%'; + + /** + * var string $ta_sizey + * @brief Editor's vertical size. + */ + protected $ta_sizey = '300px'; + + /** + * Class constructor. + * @param string $path_type + * @return void + */ + public function __construct($path_type) { + parent::__construct('TinyMCEv3', $path_type); + + /* overwrite Plugin information */ + $this->version = '1.0'; + $this->plugin_package = 'Default'; + + /* author information */ + $this->author_name = 'CaMykS Team'; + $this->author_mail = 'camyks.contact@gmail.com'; + $this->author_group = 'camyks.net'; + + /* recommended configs */ + $this->admin_configs = array('default', 'classic', 'simple', 'flash'); + $this->client_configs = array('classic_cs', 'simple_cs', 'textual'); + + /* available configs */ + $this->specific_configs = array('file', 'text'); + $this->builtin_configs = array_merge(array('advanced'), $this->admin_configs, $this->client_configs); + $this->configs = array_merge($this->specific_configs, $this->builtin_configs); + } + + /* overwrite input methods */ + + /** + * Initialise input. + * @return void + */ + function initialise($params=array()) { + global $camyks; + + /* add javascript engine */ + $this->add_JSFile('tiny_mce/tiny_mce.js'); + /* add mail encoding javascript */ + $this->add_JSEngineFile('tool/mail.js'); + /* add current language */ + $this->add_JSPreScript('camyks_language="'.$camyks->current_language.'";'); + + /* load external plugins */ + $extPlugins = $this->get_registeredExtensions(); + if ($extPlugins === false) { + $this->add_JSPreScript('camyks_ext_plugins=\'\';'); + $this->add_JSPreScript('camyks_ext_buttons=\'\';'); + } else { + $camyks_ext_plugins = ''; + $camyks_ext_buttons = array(); + foreach($extPlugins as $plugin) { + $pluginParams = $plugin->get_tinyMCEPluginParams(); + + /* add plugin to plugin list */ + $camyks_ext_plugins .= ',-'.$pluginParams['name']; + /* add plugin buttons to buttons list */ + $camyks_ext_buttons = array_merge($camyks_ext_buttons, $pluginParams['buttons']); + } + $this->add_JSPreScript('camyks_ext_plugins=\''.$camyks_ext_plugins.'\';'); + $this->add_JSPreScript('camyks_ext_buttons=\''.implode(',', $camyks_ext_buttons).'\';'); + $this->add_JSPreScript('camyks_plugin_url=\''.$camyks->get_confValue('url').'/'.$camyks->camyks_plugin_url.'\';'); + $this->add_JSPreScript('camyks_data_url=\''.$camyks->get_confValue('url').'/'.$camyks->site_data_url.'\';'); + } + + /* add path mode values */ + $mode = $camyks->get_confValue('file_path'); + + /* check for boolean mode value */ + if ($mode === false) + $mode = 'relative'; + elseif ($mode === true) + $mode ='absolute'; + + /* return base url from mode */ + switch ($mode) { + case 'absolute': + case 'absolute_long': + $this->add_JSPreScript('camyks_relative_urls=false;'); + $this->add_JSPreScript('camyks_remove_host=false;'); + break; + case 'absolute_short': + $this->add_JSPreScript('camyks_relative_urls=false;'); + $this->add_JSPreScript('camyks_remove_host=true;'); + break; + case 'relative': + default: + $this->add_JSPreScript('camyks_relative_urls=true;'); + $this->add_JSPreScript('camyks_remove_host=true;'); + break; + } + + /* check config */ + if (!in_array($this->configType, $this->configs)) { + $this->configType = (isset($camyks->_conf['editor_default_config']) && in_array($camyks->_conf['editor_default_config'], $this->configs))?$camyks->_conf['editor_default_config']:'default'; + } + switch ($this->configType) { + /* specific configs */ + case 'file': + $this->add_JSExternFile($this->configValue); + break; + case 'text': + $this->add_JSScript($this->configValue); + break; + /* built-in configs */ + case 'default': + case 'advanced': + case 'classic': + case 'simple': + /* get file manager input object */ + if (isset($this->configMore['fm_path']) and isset($this->configMore['fm_url'])) + $this->load_fileManager($this->configMore['fm_path'], $this->configMore['fm_url'], isset($this->configMore['fm_title'])?$this->configMore['fm_title']:''); + else + $this->load_fileManager(); + case 'flash': + /* get page chooser input object */ + $this->load_pageChooser(); + case 'textual': + case 'classic_cs': + case 'simple_cs': + /* get page theme */ + $this->load_themeCSSFile(); + default: + $this->add_JSFile ('configs/'.$this->configType.'.js'); + break; + } + + /* Input generic initialisation */ + parent::initialise(); + } + + /** + * Display input. + * @param string $ta_name + * @return void + */ + public function display($ta_name='') { + /* display with new name */ + if ($ta_name != '') { + $this->ta_name = $ta_name; + } + /* Input generic display */ + parent::display(); + } + + /* specific methods */ + + /** + * Define content information. + * @param string $contentType + * @param string $contentValue + * @param string $contentLg + * @return void + */ + public function set_contentInfos($contentType='text', $contentValue='', $contentLg='') { + $this->contentType = $contentType; + $this->contentValue = $contentValue; + $this->contentLg = $contentLg; + + if ($this->contentType == 'file' and !file_exists ($this->contentValue)) { + $this->contentType = 'text'; + $this->contentValue = ''; + } + } + + /** + * Define config information. + * @param string $configType + * @param string $configValue + * @param array $more + * @return void + */ + public function set_configInfos($configType='default', $configValue='', $more=array()) { + $this->configType = $configType; + $this->configValue = $configValue; + $this->configMore = $more; + } + + /** + * Define textarea information. + * @param string $name + * @param string $sx + * @param string $sy + * @return void + */ + public function set_textareaInfos($name='tinymceta', $sx=null, $sy=null) { + $this->ta_name = $name; + if (isset ($sx)) + $this->ta_sizex = $sx; + if (isset ($sy)) + $this->ta_sizey = $sy; + } + + /** + * Load page theme. + * @param integer $pageid + * @return void + */ + public function load_themeCSSFile($pageid=null) { + global $camyks; + $theme = ''; + + if (!isset($pageid) and isset($_REQUEST['page_id'])) + $pageid = $pageid; + + if (isset ($pageid)) { + /* get page information */ + $page = new ContentPage($pageid); + $page->get_fromDatabase(); + $theme = $page->theme; + } + + if ($theme == '') { + $theme = $camyks->site_conf['site_default_theme']; + } + + if (isset ($camyks->themes[$theme])) { + $theme = $camyks->themes[$theme]->get_editorCSSURL(); + } else { + $theme = $this->theme->get_editorCSSURL(); + } + + /* add script before tinymce config init */ + $this->add_JSPreScript('camyks_css_file="'.$theme.'";'); + } + + /** + * Load filemanager input. + * @param string $fpath + * @param string $furl + * @param string $ftitle + * @return void + */ + public function load_fileManager($fpath='', $furl='', $ftitle='') { + global $camyks; + /* check input availability */ + if (isset($camyks->inputs['FileManager'])) { + + /* get input */ + $this->filemanager = &$camyks->inputs['FileManager']; + $this->filemanager->set_engineValues('requestlink'); + $this->filemanager->set_selectionValues('image_updatevalue'); + if ($fpath != '' and $furl != '') { + $this->filemanager->set_folderValues ($fpath, $furl, $ftitle); + } + $this->filemanager->initialise(); + /* add javascripts callback */ + $this->add_JSScript('function image_callback(field_name, field_value, type, win) {'); + $this->add_JSScript('icb_win = win;'); + $this->add_JSScript('icb_field = field_name;'); + $this->add_JSScript($this->filemanager->get_link('field_value')); + $this->add_JSScript('}'); + $this->add_JSScript('function image_updatevalue (url) {'); + $this->add_JSScript('icb_win.document.forms[0].elements[icb_field].value = url;'); + $this->add_JSScript('}'); + } else { + /* send error message when input is not available */ + $this->add_JSScript('function image_callback() {'); + $this->add_JSScript('alert("FileManager Input not found.");'); + $this->add_JSScript('}'); + } + } + + /** + * Load pagechooser input. + * @return void + */ + public function load_pageChooser() { + global $camyks; + $this->add_JSFile('editor.js'); + + /* check input availability */ + if (isset ($camyks->inputs['PageChooser'])) { + /* get input */ + $this->pagechooser = &$camyks->inputs['PageChooser']; + $this->pagechooser->initialise('pagelink', '', 'page_updatevalue'); + $this->add_JSScript('isPageChooserAvailable = true;'); + /* add content languages */ + $this->add_JSScript('editing_languages = new Array("'.implode('", "', $camyks->get_confValue('editing_languages')).'");', true); + $this->add_JSScript('site_languages = new Array("'.implode('", "', $camyks->get_confValue('site_languages')).'");', true); + } else { + $this->add_JSScript('isPageChooserAvailable = false;'); + } + } + + /** + * Return selected config list. + * @return array + */ + public function get_configList($mode='admin') { + switch($mode) { + case 'admin': + $c = &$this->admin_configs; + break; + case 'client': + $c = &$this->client_configs; + break; + case 'builtin': + $c = &$this->builtin_configs; + break; + } + $configs = array(); + foreach ($c as $i) { + $configs[$c] = $this->get_translation('config_'.$c); + } + return $configs; + } +} +?> diff --git a/plugin/input/TinyMCEv3/html/input.html.inc b/plugin/input/TinyMCEv3/html/input.html.inc index b78e9694..f80a2bc7 100755 --- a/plugin/input/TinyMCEv3/html/input.html.inc +++ b/plugin/input/TinyMCEv3/html/input.html.inc @@ -1,20 +1,26 @@ + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2007 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * @cond Exclude */ ?> - \ No newline at end of file + + diff --git a/plugin/input/TinyMCEv3/js/configs/advanced.js b/plugin/input/TinyMCEv3/js/configs/advanced.js index 6386bb04..fea17fa9 100755 --- a/plugin/input/TinyMCEv3/js/configs/advanced.js +++ b/plugin/input/TinyMCEv3/js/configs/advanced.js @@ -1,23 +1,22 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b1 - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Mar 2011 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input advanced configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/advanced.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,style,layer,table,advimage,advhr,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,pagebreak,camykslink,camyksemaillink,camyksloremipsum,camykscontextmenu" + camyks_ext_plugins, - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,camyksloremipsum,fullscreen,preview,print,code,help,|,bold,italic,underline,strikethrough", theme_advanced_buttons1_add : ",|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect,|,removeformat,", @@ -25,27 +24,27 @@ tinyMCE.init({ theme_advanced_buttons2_add : ",|,bullist,numlist,|,outdent,indent,|,sub,sup,|,image,media,|,link,camyksemaillink,anchor,unlink", theme_advanced_buttons3 : "advhr,|,tablecontrols,separator,insertlayer,moveforward,movebackward,absolute,|,cite,acronym,abbr,attribs,|,charmap,|,cleanup", theme_advanced_buttons4 : "" + camyks_ext_buttons, - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks plugins */ file_browser_callback : "image_callback", page_browser_callback : "page_callback", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, relative_urls : camyks_relative_urls, remove_script_host : camyks_remove_host, - }); +}); diff --git a/plugin/input/TinyMCEv3/js/configs/classic.js b/plugin/input/TinyMCEv3/js/configs/classic.js index 77cb71bb..025024b4 100755 --- a/plugin/input/TinyMCEv3/js/configs/classic.js +++ b/plugin/input/TinyMCEv3/js/configs/classic.js @@ -1,30 +1,29 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Mar 2011 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input classic configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/classic.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,style,advimage,preview,media,searchreplace,print,paste,directionality,noneditable,visualchars,nonbreaking,pagebreak,camykslink,camyksemaillink,camykscontextmenu"+ camyks_ext_plugins, - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,|,preview,print,cleanup,|,bold,italic,underline,strikethrough", theme_advanced_buttons1_add : ",|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect,|,removeformat,", theme_advanced_buttons2 : "pastetext,pasteword,|,search,replace,|,undo,redo,|,ltr,rtl,visualchars,pagebreak", theme_advanced_buttons2_add : ",|,bullist,numlist,|,outdent,indent,|,sub,sup,|,image,media,|,link,camyksemaillink,anchor,unlink,|,charmap", theme_advanced_buttons4 : "" + camyks_ext_buttons, - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", @@ -33,17 +32,17 @@ tinyMCE.init({ theme_advanced_resize_horizontal : false, theme_advanced_resizing_min_height: 360, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks plugins */ file_browser_callback : "image_callback", page_browser_callback : "page_callback", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, diff --git a/plugin/input/TinyMCEv3/js/configs/classic_cs.js b/plugin/input/TinyMCEv3/js/configs/classic_cs.js index 5fc302ce..2f0d67a3 100755 --- a/plugin/input/TinyMCEv3/js/configs/classic_cs.js +++ b/plugin/input/TinyMCEv3/js/configs/classic_cs.js @@ -1,30 +1,29 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Sep 2009 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input classic_cs configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/classic_cs.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,style,advimage,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,pagebreak,camykslink,camyksemaillink", - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,|,preview,print,cleanup,|,bold,italic,underline,strikethrough", theme_advanced_buttons1_add : ",|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect,|,removeformat,", theme_advanced_buttons2 : "pastetext,pasteword,|,search,replace,|,undo,redo,|,ltr,rtl,visualchars,pagebreak", theme_advanced_buttons2_add : ",|,bullist,numlist,|,outdent,indent,|,sub,sup,|,image,media,|,link,camyksemaillink,anchor,unlink,|,charmap", theme_advanced_buttons3 : "", - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", @@ -33,14 +32,14 @@ tinyMCE.init({ theme_advanced_resize_horizontal : false, theme_advanced_resizing_min_height: 360, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, - }); +}); diff --git a/plugin/input/TinyMCEv3/js/configs/default.js b/plugin/input/TinyMCEv3/js/configs/default.js index f625fe2c..25fdfcc1 100755 --- a/plugin/input/TinyMCEv3/js/configs/default.js +++ b/plugin/input/TinyMCEv3/js/configs/default.js @@ -1,23 +1,22 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Mar 2011 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input default configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/default.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,style,layer,table,advimage,advhr,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,pagebreak,camykslink,camyksemaillink,camyksloremipsum,camykscontextmenu," + camyks_ext_plugins, - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,camyksloremipsum,fullscreen,preview,print,code,help,|,bold,italic,underline,strikethrough", theme_advanced_buttons1_add : ",|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect,|,removeformat,", @@ -25,7 +24,7 @@ tinyMCE.init({ theme_advanced_buttons2_add : ",|,bullist,numlist,|,outdent,indent,|,sub,sup,|,image,media,|,link,camyksemaillink,anchor,unlink", theme_advanced_buttons3 : "advhr,|,tablecontrols,separator,insertlayer,moveforward,movebackward,absolute,|,cite,acronym,abbr,attribs,|,charmap,|,cleanup", theme_advanced_buttons4 : "" + camyks_ext_buttons, - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", @@ -34,17 +33,17 @@ tinyMCE.init({ theme_advanced_resize_horizontal : false, theme_advanced_resizing_min_height : 360, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* editor params */ editor_deselector : "mceNoEditor", - + /* camyks plugins */ file_browser_callback : "image_callback", page_browser_callback : "page_callback", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, diff --git a/plugin/input/TinyMCEv3/js/configs/flash.js b/plugin/input/TinyMCEv3/js/configs/flash.js index 170bc876..cd2e0492 100755 --- a/plugin/input/TinyMCEv3/js/configs/flash.js +++ b/plugin/input/TinyMCEv3/js/configs/flash.js @@ -1,48 +1,47 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Jan 2011 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input flash configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/flash.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,style,camykslink,camyksemaillink", - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,cleanup,|,undo,redo,|,bold,italic,underline", theme_advanced_buttons1_add : ",|,styleselect,|,link,unlink,|,charmap", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, apply_source_formatting : true, - + /* valid html tags */ valid_elements : "+a[href|target|class],#p[class|align],#span[class],br,-b,-i,-u,-div[align|class]", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks plugins */ page_browser_callback : "page_callback", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, relative_urls : camyks_relative_urls, remove_script_host : camyks_remove_host, - }); +}); diff --git a/plugin/input/TinyMCEv3/js/configs/simple.js b/plugin/input/TinyMCEv3/js/configs/simple.js index 80f8c0a5..45ad02aa 100755 --- a/plugin/input/TinyMCEv3/js/configs/simple.js +++ b/plugin/input/TinyMCEv3/js/configs/simple.js @@ -1,49 +1,48 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Jul 2011 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input simple configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/simple.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,advimage,camykslink,camyksemaillink", - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,cleanup,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons1_add : ",|,formatselect,styleselect", theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,image,link,camyksemaillink,unlink,|,charmap", theme_advanced_buttons3 : "", - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks plugins */ file_browser_callback : "image_callback", page_browser_callback : "page_callback", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, relative_urls : camyks_relative_urls, remove_script_host : camyks_remove_host, - }); +}); diff --git a/plugin/input/TinyMCEv3/js/configs/simple_cs.js b/plugin/input/TinyMCEv3/js/configs/simple_cs.js index 1578cb99..63df1227 100755 --- a/plugin/input/TinyMCEv3/js/configs/simple_cs.js +++ b/plugin/input/TinyMCEv3/js/configs/simple_cs.js @@ -1,43 +1,42 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0b - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Jul 2008 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input simple_cs configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/simple_cs.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari,inlinepopups,camyksemaillink", - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,cleanup,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons1_add : ",|,formatselect,styleselect", theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,image,link,camyksemaillink,unlink,|,charmap", theme_advanced_buttons3 : "", - + /* editor UI */ theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div,blockquote,address,pre,h1,h2,h3,h4", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks information */ language : camyks_language, content_css : camyks_css_file, - }); +}); diff --git a/plugin/input/TinyMCEv3/js/configs/textual.js b/plugin/input/TinyMCEv3/js/configs/textual.js index b08faf61..66fb1205 100755 --- a/plugin/input/TinyMCEv3/js/configs/textual.js +++ b/plugin/input/TinyMCEv3/js/configs/textual.js @@ -1,41 +1,40 @@ -/* - * CaMykS Engine - * Developed by : camyks.net - * Author : CaMykS Team - * CaMykS Version : 1.0a - * Object Version : 1.0 - * Object Type : Plugin / Input Javascript - * Creation Date : Jul 2008 - * Last Modif Date : Jul 2008 - * - * TinyMCEv3 input : TinyMCE 3 WebEditor Integration config file +/** + * @brief TinyMCEv3 Input textual configuration scripts + * @details Plugin / Input Javascripts + * @file plugin/input/TinyMCEv3/js/configs/textual.js + * @author CaMykS Team + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ - tinyMCE.init({ - mode : "textareas", + mode : "textareas", theme : "advanced", - + /* enabled plugins */ plugins : "safari", - + /* buttons lists */ theme_advanced_buttons1 : "newdocument,cleanup,|,undo,redo,|,bold,italic,underline,strikethrough", theme_advanced_buttons1_add : ",|,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", - + /* editor UI */ theme_advanced_toolbar_location : "bottom", theme_advanced_toolbar_align : "center", theme_advanced_resizing : false, apply_source_formatting : true, - + /* blocks list */ theme_advanced_blockformats : "p,div", - + /* camyks params */ editor_deselector : "mceNoEditor", - + /* camyks information */ language : camyks_language, - }); +}); diff --git a/plugin/input/TinyMCEv3/locale/translation_en.php.inc b/plugin/input/TinyMCEv3/locale/translation_en.php.inc index 16c48204..850599c8 100755 --- a/plugin/input/TinyMCEv3/locale/translation_en.php.inc +++ b/plugin/input/TinyMCEv3/locale/translation_en.php.inc @@ -1,22 +1,22 @@ - - * CaMykS Version : 1.0a - * Object Version : 1.0 - * Object Type : Plugin / Module Dictionnary - * Create Date : Jul 2008 - * Last Modif Date : Jul 2008 - * - * TinyMCEv3 language dictionnary : English - */ -$this->trads['input_tinymcev3_config_advanced'] = 'Advanced'; -$this->trads['input_tinymcev3_config_default'] = 'Default'; -$this->trads['input_tinymcev3_config_classic'] = 'Classic'; -$this->trads['input_tinymcev3_config_simple'] = 'Simple'; -$this->trads['input_tinymcev3_config_textual'] = 'Text'; -$this->trads['input_tinymcev3_config_flash'] = 'Flash'; -$this->trads['input_tinymcev3_config_classic_cs'] = 'Classic - Client-side'; -$this->trads['input_tinymcev3_config_simple_cs'] = 'Simple - Client-side'; -?> \ No newline at end of file + + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ +$this->trads['input_tinymcev3_config_advanced'] = 'Advanced'; +$this->trads['input_tinymcev3_config_default'] = 'Default'; +$this->trads['input_tinymcev3_config_classic'] = 'Classic'; +$this->trads['input_tinymcev3_config_simple'] = 'Simple'; +$this->trads['input_tinymcev3_config_textual'] = 'Text'; +$this->trads['input_tinymcev3_config_flash'] = 'Flash'; +$this->trads['input_tinymcev3_config_classic_cs'] = 'Classic - Client-side'; +$this->trads['input_tinymcev3_config_simple_cs'] = 'Simple - Client-side'; +?> diff --git a/plugin/input/TinyMCEv3/locale/translation_fr.php.inc b/plugin/input/TinyMCEv3/locale/translation_fr.php.inc index bbba702d..ab1d66df 100755 --- a/plugin/input/TinyMCEv3/locale/translation_fr.php.inc +++ b/plugin/input/TinyMCEv3/locale/translation_fr.php.inc @@ -1,22 +1,22 @@ - - * CaMykS Version : 1.0a - * Object Version : 1.0 - * Object Type : Plugin / Module Dictionnary - * Create Date : Jul 2008 - * Last Modif Date : Jul 2008 - * - * TinyMCEv3 language dictionnary : French - */ -$this->trads['input_tinymcev3_config_advanced'] = 'Avancé'; -$this->trads['input_tinymcev3_config_default'] = 'Défaut'; -$this->trads['input_tinymcev3_config_classic'] = 'Classique'; -$this->trads['input_tinymcev3_config_simple'] = 'Simple'; -$this->trads['input_tinymcev3_config_textual'] = 'Texte'; -$this->trads['input_tinymcev3_config_flash'] = 'Flash'; -$this->trads['input_tinymcev3_config_classic_cs'] = 'Classique - Côté client'; -$this->trads['input_tinymcev3_config_simple_cs'] = 'Simple - Côté client'; -?> \ No newline at end of file + + * @version 1.0 + * @date Creation: Jul 2008 + * @date Modification: Jul 2018 + * @copyright 2008 - 2018 CaMykS Team + * @note This program is distributed as is - WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ +$this->trads['input_tinymcev3_config_advanced'] = 'Avancé'; +$this->trads['input_tinymcev3_config_default'] = 'Défaut'; +$this->trads['input_tinymcev3_config_classic'] = 'Classique'; +$this->trads['input_tinymcev3_config_simple'] = 'Simple'; +$this->trads['input_tinymcev3_config_textual'] = 'Texte'; +$this->trads['input_tinymcev3_config_flash'] = 'Flash'; +$this->trads['input_tinymcev3_config_classic_cs'] = 'Classique - Côté client'; +$this->trads['input_tinymcev3_config_simple_cs'] = 'Simple - Côté client'; +?>