Skip to content

Commit

Permalink
Added more options for the rich-textarea input
Browse files Browse the repository at this point in the history
  • Loading branch information
dtvmedia committed Mar 18, 2024
1 parent 7ba7b42 commit 4234c71
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/resources/js/FormView.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,18 @@ Nodus.FormView = class {
const input = document.querySelector('#' + id + '_text');

const editor = new Quill(element, {
theme: 'snow'
theme: 'snow',
modules: {
toolbar: [
['bold', 'italic', 'underline', 'strike'],
['blockquote', 'code-block', { 'color': [] },{ 'align': [] }],
['link', 'image'],
[{ 'list': 'ordered'}, { 'list': 'bullet' }, { 'list': 'check' }],
[{ 'indent': '-1'}, { 'indent': '+1' }],
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
['clean']
]
},
});

editor.on('text-change', function() {
Expand Down

0 comments on commit 4234c71

Please sign in to comment.