Fix tab bug

This commit is contained in:
Dennis Eichhorn 2019-01-13 22:46:41 +01:00
parent 91f7e14bbf
commit 020d2af33e

View File

@ -1,16 +1,15 @@
<div id="<?= $this->printHtml($this->getId()); ?>" class="tabular m-editor">
<div id="<?= $this->printHtml($this->getId()); ?>" class="tabview tab-2 m-editor">
<ul class="tab-links">
<li><label for="<?= $this->printHtml($this->getId()); ?>-c-tab-1"><?= $this->getHtml('Text', 'Editor'); ?></label>
<li><label for="<?= $this->printHtml($this->getId()); ?>-c-tab-2"><?= $this->getHtml('Preview', 'Editor'); ?></label>
</ul>
<div class="tab-content">
<input type="radio" id="<?= $this->printHtml($this->getId()); ?>-c-tab-1" name="tabular-1" checked>
<div class="tab">
<textarea style="height: 300px" placeholder="&#xf040;" name="<?= $this->printHtml($this->getName()); ?>" form="<?= $this->printHtml($this->getForm()); ?>"><?= $this->printHtml(isset($doc) ? $doc->getPlain() : ''); ?></textarea><input type="hidden" id="<?= $this->printHtml($this->getId()); ?>-parsed">
</div>
<input type="radio" id="<?= $this->printHtml($this->getId()); ?>-c-tab-2" name="tabular-1">
<input type="radio" id="<?= $this->printHtml($this->getId()); ?>-c-tab-2" name="tabular-1">
<div class="tab">
<?= $this->printHtml(isset($doc) ? $doc->getContent() : ''); ?>
</div>