commit 7ad79115bf42a48f3df36a8f0571ea13337487e7 parent 0b625ca8cfaee94d5f07217b0db5474198ec5e56 Author: Jan Dankert <devnull@localhost> Date: Fri, 1 Dec 2017 23:45:04 +0100 Fix Komponente Editor: Variable 'mode' richtig ausgeben. Diffstat:
themes/default/include/html/editor/Editor.class.php | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/themes/default/include/html/editor/Editor.class.php b/themes/default/include/html/editor/Editor.class.php @@ -4,6 +4,7 @@ class EditorComponent extends Component { public $type; public $name; + public $mode='html'; protected function begin() { @@ -26,7 +27,7 @@ class EditorComponent extends Component case 'ace': case 'code': - echo '<textarea name="'.$this->htmlvalue($this->name).'" data-mode="'.$attr_mode.'" class="editor__code-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; + echo '<textarea name="'.$this->htmlvalue($this->name).'" data-mode="'.$this->htmlvalue($this->mode).'" class="editor__code-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; break;