eibersji
eibersji

Reputation: 1216

how can I display saved values from the database to wysiwyg tinymce

Apparently, I can't use

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

now that I am using a WYSIWYG(tinymce), it works with textarea alone but with WYSIWYG integrated in a textarea, No. How can I show the value of the description in a WYSIWYG? do I have to use Javascript?

Upvotes: 0

Views: 388

Answers (1)

user8034901
user8034901

Reputation:

<textarea> doesn't have a value attribute. Put contents between the tags:

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

Upvotes: 5

Related Questions