mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-11 09:08:42 +00:00
26 lines
1.5 KiB
PHP
Executable File
26 lines
1.5 KiB
PHP
Executable File
<div id="<?= $this->renderId(); ?>" class="tabview tab-2 m-editor wf-100">
|
|
<ul class="tab-links">
|
|
<li><label tabindex="0" for="<?= $this->renderId(); ?>-c-tab-1"><?= $this->getHtml('Text', 'Editor'); ?></label>
|
|
<li<?= empty($this->plain) ? '' : ' class="active"'; ?>><label tabindex="0" for="<?= $this->renderId(); ?>-c-tab-2"><?= $this->getHtml('Preview', 'Editor'); ?></label>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<input type="radio" id="<?= $this->renderId(); ?>-c-tab-1" name="tabular-1"<?= empty($this->plain) ? ' checked' : ''; ?>>
|
|
<div class="tab">
|
|
<textarea
|
|
tabindex="0"
|
|
id="i<?= $this->renderName(); ?>"
|
|
style="height: 200px"
|
|
name="<?= $this->renderName(); ?>"
|
|
form="<?= $this->renderForm(); ?>"
|
|
data-tpl-text="<?= $this->renderTplText(); ?>"
|
|
data-tpl-value="<?= $this->renderTplValue(); ?>"><?= \str_replace(["\r\n", "\n"], [' ', ' '], $this->renderPlain()); ?></textarea>
|
|
<input type="hidden" id="<?= $this->renderId(); ?>-parsed">
|
|
</div>
|
|
|
|
<input type="radio" id="<?= $this->renderId(); ?>-c-tab-2" name="tabular-1"<?= empty($this->plain) ? '' : ' checked'; ?>>
|
|
<div class="tab">
|
|
<article data-tpl-text="<?= $this->renderTplText(); ?>" data-tpl-value="<?= $this->renderTplValue(); ?>"><?= $this->renderPreview(); ?></article>
|
|
</div>
|
|
</div>
|
|
</div>
|