The "Quill Rich Text Editor" has been added as nuBuilder Object.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
[Added] New Object Type: WYSIWYG Editor
[Added] New Object Type: WYSIWYG Editor
You do not have the required permissions to view the files attached to this post.
Re: [Added] New Object Type: WYSIWYG Editor
Example to load the WYSIWYG editor with a minimal toolbar. (min. Files Version: V.4.5-2021.10.04.01)
Add in the form's Custom Code:
Add in the form's Custom Code:
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);
});
}
You do not have the required permissions to view the files attached to this post.
Re: [Added] New Object Type: WYSIWYG Editor
Example to hide the toolbar and set the editor to read-only mode:
Code: Select all
function nuOnEditorLoad() {
var options = {
modules: {
toolbar: false
},
fontNames: null,
readOnly: true,
theme: 'snow'
};
$('.nuEditor').each((index, element) => {
nuQuill(element.id, options);
});
}
You do not have the required permissions to view the files attached to this post.