diff --git a/Theme/Backend/Components/Editor/TextView.php b/Theme/Backend/Components/Editor/TextView.php index cf14e5c..225a70b 100644 --- a/Theme/Backend/Components/Editor/TextView.php +++ b/Theme/Backend/Components/Editor/TextView.php @@ -30,11 +30,13 @@ use phpOMS\Views\View; */ class TextView extends View { - private $id = ''; - private $name = ''; - private $form = ''; - private $plain = ''; - private $preview = ''; + private $id = ''; + private $name = ''; + private $form = ''; + private $plain = ''; + private $preview = ''; + private $tplText = ''; + private $tplValue = ''; /** * {@inheritdoc} @@ -70,16 +72,28 @@ class TextView extends View return $this->plain; } + public function getTplText() : string + { + return $this->tplText; + } + + public function getTplValue() : string + { + return $this->tplValue; + } + /** * {@inheritdoc} */ public function render(...$data) : string { - $this->id = $data[0] ?? ''; - $this->name = $data[1] ?? ''; - $this->form = $data[2] ?? ''; - $this->plain = $data[3] ?? ''; - $this->preview = $data[4] ?? ''; + $this->id = $data[0] ?? ''; + $this->name = $data[1] ?? ''; + $this->form = $data[2] ?? ''; + $this->plain = $data[3] ?? ''; + $this->preview = $data[4] ?? ''; + $this->tplText = $data[5] ?? ''; + $this->tplValue = $data[6] ?? ''; return parent::render(); } diff --git a/Theme/Backend/Components/Editor/inline-editor-tools.tpl.php b/Theme/Backend/Components/Editor/inline-editor-tools.tpl.php index 025f681..b05e880 100644 --- a/Theme/Backend/Components/Editor/inline-editor-tools.tpl.php +++ b/Theme/Backend/Components/Editor/inline-editor-tools.tpl.php @@ -1,3 +1,4 @@ +