Merge pull request #2515 from LukeTowers/patch-9

Respect whitespace on disabled codeeditors
This commit is contained in:
Samuel Georges 2016-12-03 08:13:17 +11:00 committed by GitHub
commit fad4d52e79
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
<?php if ($this->previewMode): ?>
<div class="form-control"><?= e($value) ?></div>
<div class="form-control">
<pre><?= e($value) ?></pre>
</div>
<?php else: ?>
<div
id="<?= $this->getId() ?>"
@ -65,4 +67,4 @@
</div>
<textarea name="<?= $name ?>" id="<?= $this->getId('textarea') ?>"><?= e($value) ?></textarea>
</div>
<?php endif ?>
<?php endif ?>