[Added] New Object Type: WYSIWYG Editor
Posted: Thu Aug 05, 2021 7:53 am
The "Quill Rich Text Editor" has been added as nuBuilder Object.
Code: Select all
function nuOnEditorLoad() {
var myToolbar = [
['bold', 'italic', 'underline', 'strike'], // toggled buttons
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
[{ 'indent': '-1' }, { 'indent': '+1' }], // outdent/indent
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
[{ 'color': [] }], // dropdown with defaults from theme
[{ 'align': [] }]
];
var options = {
modules: {
toolbar: myToolbar
},
fontNames: null,
readOnly: false,
theme: 'snow'
};
$('.nuEditor').each((index, element) => {
nuQuill(element.id, options);
});
}
Code: Select all
function nuOnEditorLoad() {
var options = {
modules: {
toolbar: false
},
fontNames: null,
readOnly: true,
theme: 'snow'
};
$('.nuEditor').each((index, element) => {
nuQuill(element.id, options);
});
}