Fix support for the placeholder property in RichEditor FormWidgets

This commit is contained in:
Luke Towers 2018-12-27 15:28:10 -06:00
parent 9f304d2ef8
commit 400ce2391e
1 changed files with 6 additions and 3 deletions

View File

@ -22,9 +22,12 @@
<?php if ($tableCellStyles): ?>data-table-cell-styles="<?= e(json_encode($tableCellStyles)) ?>"<?php endif ?>
data-links-handler="<?= $this->getEventHandler('onLoadPageLinksForm') ?>"
data-ace-vendor-path="<?= Url::asset('/modules/backend/formwidgets/codeeditor/assets/vendor/ace') ?>"
placeholder="<?= e(trans($field->placeholder)) ?>"
data-control="richeditor">
<textarea name="<?= $name ?>" id="<?= $this->getId('textarea') ?>"><?= e($value) ?></textarea>
<textarea
placeholder="<?= e(trans($field->placeholder)) ?>"
name="<?= $name ?>"
id="<?= $this->getId('textarea') ?>"
><?= e($value) ?></textarea>
<div class="height-indicator"></div>
</div>
<?php endif ?>