如何将数据库中保存的值显示为wysiwyg tinymce

问题描述 投票:0回答:1

显然,我不能使用

<div>
  <label for="description">Description</label>
  <textarea class="form-control" id="description"  name="description" rows="3" value="{{ $product->description }}"></textarea>
</div>

既然我正在使用WYSIWYG(tinymce),它只与textarea一起使用,但是在WazIswpoi中集成了WYSIWYG,不能。我怎样才能在WYSIWYG中显示textarea的价值?我必须使用Javascript吗?

php laravel-5 wysiwyg
1个回答
4
投票

description没有<textarea>属性。将内容放在标签之间:

value
© www.soinside.com 2019 - 2024. All rights reserved.