<?php /* Check plugin.tinymce.php for details */ if (!defined('MODX_BASE_PATH')) { die('What are you doing? Get out of here!'); } // Init if (!file_exists(MODX_BASE_PATH . "assets/lib/class.modxRTEbridge.php")) { // Add Fall-Back for now require_once MODX_BASE_PATH . "assets/plugins/tinymce4/class.modxRTEbridge.php"; } else { require_once MODX_BASE_PATH . "assets/lib/class.modxRTEbridge.php"; } require_once MODX_BASE_PATH . "assets/plugins/tinymce4/bridge.tinymce4.inc.php"; $rte = new tinymce4bridge($options); $rte->setDebug(false); // true or 'full' for Debug-Infos in HTML-comments // Overwrite theme // $rte->force('width', '75%', 'string' ); // Overwrite width parameter // $rte->force('height', isset($height) ? $height : '400px', 'string' ); // Get/set height from plugin-configuration // $rte->force('height', NULL ); // Removes "height" completely from editor-init // Internal Stuff - Don´t touch! $showSettingsInterface = true; // Show/Hide interface in Modx- / user-configuration $editorLabel = $rte->pluginParams['editorLabel']; $editableClass = !empty($rte->pluginParams['editableClass']) ? $rte->pluginParams['editableClass'] : 'editable'; $e =& $modx->event; switch ($e->name) { // register for manager case "OnRichTextEditorRegister": $e->output($editorLabel);