...
The editor is used in several files. Here is the list of the files and what they are responsible for.
File name | Purpose | Called tinymce/ wrapper part |
---|---|---|
include_con_content_list.php | Displays raw data of articles | editorclass.php |
template.con_content_list.html | Template included by include_con_content_list.php to render its page | con_tiny.js, tiny_mce.js |
include.con_editcontent.php | Displays the editor page of article | editorclass.php |
template.con_editcontent.html | Template included by include.con_editcontent.php to render its page | con_tiny.js, tiny_mce.js |
include.CMS_HTML.php | Editor page for content type CMS_HTML | editor.php |
include.CMS_HTMLHEAD.php | Editor page for content type CMS_HTMLHEAD | editor.php |
...
Called by Contenido's pre-defined content types that allow HTML markup. It first loads the editor class then sets the editor's width and height and injects a textarea tag into the output. Outputs "tinymce.tpl.html" to pass settings to output for further processing.
editorclass.php
This file defines the class cTinyMCEEditor which extends cWYSIWYGEditor. It configures TinyMCE so that the editor does fit nicely into Contenido. To achieve such a task a lot of settings have passed to TinyMCE. This file uses results from "list.php".
Here is a short list of tasks cTinyMCEEditor deals with:
...
As TinyMCE is based on JavaScript this file does not directly do this these tasks but puts options into output of functions. These results are then in turn passed to template files.
list.php
This file computes link, image, flash and media lists for tinyMCE. Flash lists do not work however because the flash plugin is gone in tinyMCE 3.
con_tiny.js
JavaScript that defines "Con.Tiny".
. This file applies the settings specified in template files by passing them to tinyMCE.
Another purpose of this file is directly integrating tinyMCE into contenido. As such it registers Contenido's own image and file browser and deals with element focus in browser.
con_tiny.css
CSS to adjust look of tinyMCE.
Interfaces/Dependencies
Often "editor.php" is called
...
tiny_mce_gzip.php
This file compresses the TinyMCE JavaScript using GZip and enables the browser to do two requests instead of one for each .js file.
tiny_mce_gzip.js
This file is dead. If content should be gzip compressed the file is search inside jscripts/tiny_mce but it is in the same folder where jscripts resides. If it is called it will invoke tiny_mce_gzip.php for compression.
Changes to TinyMCE
There are a few changes made to TinyMCE 3 to integrate it into Contenido's backend.
...