diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2013-01-24 15:17:01 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2013-01-24 15:17:01 +0100 |
commit | 182ac905691e45146536796b39ef9f1420fb79b5 (patch) | |
tree | 6620535067eb0ca56a2b7e7c5ef12bcb312203dc | |
parent | 4dfbea875bd419fca4d9a5248c53c98c1e2af376 (diff) | |
download | rpg-182ac905691e45146536796b39ef9f1420fb79b5.tar.gz rpg-182ac905691e45146536796b39ef9f1420fb79b5.tar.bz2 |
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.
-rw-r--r-- | inc/html.php | 3 |
1 files changed, 1 insertions, 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') { |