Skip to content

Commit

Permalink
Normalises files format, indents more nicely the code and makes the T…
Browse files Browse the repository at this point in the history
…inyMCEv3 input, ready to be parsed by Doxygen.
  • Loading branch information
JB Lebrun committed Jul 31, 2018
1 parent 7ef379c commit 3d85dc0
Show file tree
Hide file tree
Showing 12 changed files with 590 additions and 577 deletions.
727 changes: 371 additions & 356 deletions plugin/input/TinyMCEv3/TinyMCEv3.php.inc

Large diffs are not rendered by default.

36 changes: 21 additions & 15 deletions plugin/input/TinyMCEv3/html/input.html.inc
@@ -1,20 +1,26 @@
<?php
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team
* CaMykS Version : 1.0a
* Object Version : 1.0
* Object Type : Plugin / Input Layout
* Creation Date : Mar 2007
* Last Modif Date : Mar 2007
*
* TinyMCE input : TinyMCE WebEditor Integration html file
/**
* @brief TinyMCEv3 Input layout
* @details Plugin / Input layout
* @file plugin/input/TinyMCE/html/input.html.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @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
*/
?>
<textarea name="<?=$this->ta_name;?>" id="<?=$this->ta_name;?>" <?=$this->contentLg!=''?'language="'.$this->contentLg.'" ':'';?>style="width:<?=$this->ta_sizex?>;height:<?=$this->ta_sizey?>;" cols="40" rows="8"><?php if ( $this->contentType=='text') : ?>
<?=$this->contentValue?>
<?php elseif ( $this->contentType=='file' and file_exists( $this->contentValue ) ) : ?>
<textarea name="<?= $this->ta_name; ?>" id="<?= $this->ta_name; ?>" <?=$this->contentLg!=''?'language="'.$this->contentLg.'" ':'';?>style="width:<?= $this->ta_sizex; ?>;height:<?= $this->ta_sizey; ?>;" cols="40" rows="8"><?php if ($this->contentType=='text') : ?>
<?= $this->contentValue; ?>
<?php elseif ($this->contentType=='file' and file_exists($this->contentValue)) : ?>
<?php require_once $this->contentValue; ?>
<?php endif; ?>
</textarea>
</textarea>
<?php
/**
* @endcond Exclude
*/
?>
41 changes: 20 additions & 21 deletions plugin/input/TinyMCEv3/js/configs/advanced.js
@@ -1,51 +1,50 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* 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,",
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",
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,
});
});
37 changes: 18 additions & 19 deletions plugin/input/TinyMCEv3/js/configs/classic.js
@@ -1,30 +1,29 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* 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",
Expand All @@ -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,
Expand Down
39 changes: 19 additions & 20 deletions plugin/input/TinyMCEv3/js/configs/classic_cs.js
@@ -1,30 +1,29 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* 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",
Expand All @@ -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,
});
});
39 changes: 19 additions & 20 deletions plugin/input/TinyMCEv3/js/configs/default.js
@@ -1,31 +1,30 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* 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,",
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",
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",
Expand All @@ -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,
Expand Down
41 changes: 20 additions & 21 deletions plugin/input/TinyMCEv3/js/configs/flash.js
@@ -1,48 +1,47 @@
/*
* CaMykS Engine
* Developed by : camyks.net
* Author : CaMykS Team <camyks.contact@gmail.com>
* 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,
});
});

0 comments on commit 3d85dc0

Please sign in to comment.