[eluser]webberoo[/eluser]
Here is my revised editor plugin.
+adds a link to tinyMCE within the assets folder
+adds tinyMCE config options in between the html tags
+allows for custom tinyMCE options to be set using yaml files
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* =======================================================
*
*
* Editor Plugin for CodeExtinguisher
* Revised by webberoo
* -------------------------
*
* YAML Configuration Options:
*
* +=============+================+================+
* | Required? | Name | Value |
* +=============+================+================+
* | Yes | class | Editor |
* | No | Attributes | Rows, Cols |
* | No | Label | Label |
* | No | Params | theme, options |
* +-------------+----------------+----------------+
*
* Example:
*
* field_name:
* class: Editor
* attributes:
* rows: 10 <-sample row length
* cols: 50 <-sample col length
* label: This is a sample Label
* params:
* theme: advanced
* options:
* tinyMCE_configuration_option: sample value
*
* =======================================================
*/
class Editor extends codexForms
{
function Editor($name,$params) {
codexForms::initiate($name,$params);
}