Skip to content

Commit

Permalink
Merge pull request #200 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Fix a typo
  • Loading branch information
mauricewijnia authored Mar 28, 2024
2 parents bdc23df + 63142ae commit 40a5a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ In order to edit content on an already existing model we have to set the value o
<textarea id="[id_here]" name="[name_here]" hidden>{{ $model->content }}</textarea>
```

To initialize the editor all we have to do is call the initialize function with the id of the textarea. You probably want to do this insde a DOMContentLoaded event.
To initialize the editor all we have to do is call the initialize function with the id of the textarea. You probably want to do this inside a DOMContentLoaded event.

And that's it! The editor will replace the textarea in the DOM and on a form submit the editor content will be available in the textarea's value attribute.

Expand Down

0 comments on commit 40a5a36

Please sign in to comment.