1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-11 00:26:18 +02:00
Files
php-monstra/plugins/box/editor/editor.plugin.php
2013-01-08 22:54:02 +02:00

43 lines
871 B
PHP

<?php
/**
* Editor plugin
*
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012-2013 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/
// Register plugin
Plugin::register( __FILE__,
__('Editor', 'editor'),
__('Editor plugin', 'editor'),
'1.0.0',
'Awilum',
'http://monstra.org/',
null,
'box');
// Add action
Action::add('admin_editor', 'Editor::render', 10, array());
/**
* Editor class
*/
class Editor
{
/**
* Render editor
*
* @param string $val editor data
*/
public static function render($val = null)
{
echo ('<div id="editor_panel"></div><div><textarea id="editor_area" name="editor" style="width:100%; height:320px;">'.$val.'</textarea></div>');
}
}