From f4f0c1fdb711034a396028c4c558c3d48f584f14 Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Wed, 18 Mar 2015 17:44:29 +0900 Subject: [PATCH] refs #1543 : added - button injection to tinyMCE editor - --- plugins/WikiCube/index.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/WikiCube/index.php b/plugins/WikiCube/index.php index 2eda90ba7..44c899fa0 100644 --- a/plugins/WikiCube/index.php +++ b/plugins/WikiCube/index.php @@ -60,24 +60,28 @@ function WikiCube_FormatErrorPage($target) { } function WikiCube_AddButton($target) { + $result = ''; + $context = Model_Context::getInstance(); + if ($context->getProperty('suri.directive') == '/owner/entry/post' || $context->getProperty('suri.directive') == '/owner/entry/edit') { ob_start(); ?>