'name', 'preserve_keys' => false, 'update_object' => true, 'related_objects' => array ( 'PluginEvents' => array ( '63cb0de4a973bec029b2481e7cb9cb26' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnRichTextBrowserInit","priority":0,"propertyset":0}', 'guid' => '034bdb99df32c8e622077f99a67796ba', 'native_key' => array ( 0 => 0, 1 => 'OnRichTextBrowserInit', ), 'signature' => '81732eb170e93c8c700e29d70dfcbe2a', ), '55f7ca09c382e2995e817a6ba164467d' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnRichTextEditorRegister","priority":0,"propertyset":0}', 'guid' => 'fac66eb8ce0aa677cb2db81c45f28ab0', 'native_key' => array ( 0 => 0, 1 => 'OnRichTextEditorRegister', ), 'signature' => '4ce15a5ea0bb99ac2325a040cbea5cce', ), 'edc2b8f4af51e25af6b44d91eed3b65b' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), 'class' => 'modPluginEvent', 'object' => '{"pluginid":0,"event":"OnRichTextEditorInit","priority":0,"propertyset":0}', 'guid' => '12859ceb8ab806447579802f634e14d1', 'native_key' => array ( 0 => 0, 1 => 'OnRichTextEditorInit', ), 'signature' => '90acf06e5d815488fb44dd0b50607daf', ), ), ), 'related_object_attributes' => array ( 'PluginEvents' => array ( 'preserve_keys' => true, 'update_object' => false, 'unique_key' => array ( 0 => 'pluginid', 1 => 'event', ), ), ), 'namespace' => 'tinymce', 'resolve' => array ( 0 => array ( 'type' => 'file', 'body' => '{"source":"tinymce-4.3.4-pl\\/modPlugin\\/b48903dfff5489ca2d2554762358c21c\\/0\\/","target":"return MODX_ASSETS_PATH . \'components\\/\';","name":"tinymce"}', ), 1 => array ( 'type' => 'file', 'body' => '{"source":"tinymce-4.3.4-pl\\/modPlugin\\/b48903dfff5489ca2d2554762358c21c\\/1\\/","target":"return MODX_CORE_PATH . \'components\\/\';","name":"tinymce"}', ), 2 => array ( 'type' => 'php', 'body' => '{"source":"tinymce-4.3.4-pl\\/modPlugin\\/b48903dfff5489ca2d2554762358c21c.resolve.whicheditor.resolver","type":"php","name":"resolve.whicheditor"}', ), 3 => array ( 'type' => 'php', 'body' => '{"source":"tinymce-4.3.4-pl\\/modPlugin\\/b48903dfff5489ca2d2554762358c21c.resolve.fix_setting.resolver","type":"php","name":"resolve.fix_setting"}', ), ), 'validate' => NULL, 'vehicle_package' => 'transport', 'vehicle_class' => 'xPDOObjectVehicle', 'guid' => 'de1bc5eb6bcdd04b4307a0747fa03e43', 'package' => 'modx', 'class' => 'modPlugin', 'signature' => 'b48903dfff5489ca2d2554762358c21c', 'native_key' => 1, 'object' => '{"id":1,"source":0,"property_preprocess":0,"name":"TinyMCE","description":"TinyMCE 4.3.4-pl plugin for MODx Revolution","editor_type":0,"category":0,"cache_type":0,"plugincode":"\\/**\\n * TinyMCE RichText Editor Plugin\\n *\\n * Events: OnRichTextEditorInit, OnRichTextEditorRegister,\\n * OnBeforeManagerPageInit, OnRichTextBrowserInit\\n *\\n * @author Jeff Whitfield \\n * @author Shaun McCormick \\n *\\n * @var modX $modx\\n * @var array $scriptProperties\\n *\\n * @package tinymce\\n * @subpackage build\\n *\\/\\nif ($modx->event->name == \'OnRichTextEditorRegister\') {\\n $modx->event->output(\'TinyMCE\');\\n return;\\n}\\nrequire_once $modx->getOption(\'tiny.core_path\',null,$modx->getOption(\'core_path\').\'components\\/tinymce\\/\').\'tinymce.class.php\';\\n$tiny = new TinyMCE($modx,$scriptProperties);\\n\\n$useEditor = $tiny->context->getOption(\'use_editor\',false);\\n$whichEditor = $tiny->context->getOption(\'which_editor\',\'\');\\n\\n\\/* Handle event *\\/\\nswitch ($modx->event->name) {\\n case \'OnRichTextEditorInit\':\\n if ($useEditor && $whichEditor == \'TinyMCE\') {\\n unset($scriptProperties[\'chunk\']);\\n if (isset($forfrontend) || $modx->context->get(\'key\') != \'mgr\') {\\n $def = $tiny->context->getOption(\'cultureKey\',$tiny->context->getOption(\'manager_language\',\'en\'));\\n $tiny->properties[\'language\'] = $modx->getOption(\'fe_editor_lang\',array(),$def);\\n $tiny->properties[\'frontend\'] = true;\\n unset($def);\\n }\\n \\/* commenting these out as it causes problems with richtext tvs *\\/\\n \\/\\/if (isset($scriptProperties[\'resource\']) && !$resource->get(\'richtext\')) return;\\n \\/\\/if (!isset($scriptProperties[\'resource\']) && !$modx->getOption(\'richtext_default\',null,false)) return;\\n $tiny->setProperties($scriptProperties);\\n $html = $tiny->initialize();\\n $modx->event->output($html);\\n unset($html);\\n }\\n break;\\n case \'OnRichTextBrowserInit\':\\n if ($useEditor && $whichEditor == \'TinyMCE\') {\\n $inRevo20 = (boolean)version_compare($modx->version[\'full_version\'],\'2.1.0-rc1\',\'<\');\\n $modx->getVersionData();\\n $source = $tiny->context->getOption(\'default_media_source\',null,1);\\n \\n $modx->controller->addHtml(\'