What seems to be the problem:
I am able to post from my text editor but would like to reset the field afterwards, could someone please assist in showing gm how I can reset the field after it has been submitted? It would be greatly appreciated!
Steps to Reproduce:
Textarea
<textarea wire:model="text" class="summernote" id="summernote" name="text" wire:offline.attr="disabled"></textarea>
JS
<script type="text/javascript">
"use strict";
// Class definition
var KTSummernoteDemo = function () {
// Private functions
var demos = function () {
$('.summernote').summernote({
height: 400,
tabsize: 2,
toolbar: [
[ 'style', [ 'style' ] ],
[ 'font', [ 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear'] ],
[ 'fontname', [ 'fontname' ] ],
[ 'fontsize', [ 'fontsize' ] ],
[ 'color', [ 'color' ] ],
[ 'para', [ 'ol', 'ul', 'paragraph', 'height' ] ],
[ 'table', [ 'table' ] ],
[ 'insert', [ 'link', 'picture'] ],
[ 'view', [ 'undo', 'redo', 'fullscreen', 'codeview', 'help' ] ]
],
callbacks: {
onChange: function(e) {
@this.set('text', e);
}
}
});
}
return {
// public functions
init: function() {
demos();
}
};
}();
// Initialization
jQuery(document).ready(function() {
KTSummernoteDemo.init();
});
})
</script>
And then the standard Livewire controller
Are you using the latest version of Livewire:
Yes
Do you have any screenshots or code examples: