From 182ac905691e45146536796b39ef9f1420fb79b5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 24 Jan 2013 15:17:01 +0100 Subject: fix custom editor loading Custom editors can also be loaded when not a section is given. For example this happens on a preview click where the page is already separated into pre, suf and text. --- inc/html.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/html.php b/inc/html.php index f4e6af663..5c1c75cf6 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1390,8 +1390,7 @@ function html_edit(){ $data = array('form' => $form, 'wr' => $wr, 'media_manager' => true, - 'target' => ($INPUT->has('target') && $wr && - $RANGE !== '') ? $INPUT->str('target') : 'section', + 'target' => ($INPUT->has('target') && $wr) ? $INPUT->str('target') : 'section', 'intro_locale' => $include); if ($data['target'] !== 'section') { -- cgit v1.2.3