Closed hasentopf closed 6 years ago
You can check this JSFiddle https://jsfiddle.net/d6pr6fop/1/
Actually the component will render textarea for you. You no need to add this in your html.
<trumbowyg name="textarea-name-goes-here" v-model="content" :config="config" class="editor"></trumbowyg>
Thanks! So simple! Great!
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior I'm using your Component in a Laravel PHP app and struggling with the name attribute for the submitted textarea.
Minimal reproduction of the problem with instructions In my current component I use a prop to set the textarea[name] and the v-model to sync the trumbowyg content:
Expected behavior A "name" parameter for your component, which add this to the trumbowyg-textarea:
<trumbowyg :config="config" v-model="content" class="form-control" :name="targetInput"></trumbowyg>
<textarea name="content_for_laravel" class="form-control trumbowyg-textarea" tabindex="-1" style="height: 260px;"></textarea>