Removes focus from the editor.
Methods
blur()Examples
quill.blur();Shorthand for enable(false).
Set ability for user to edit, via input devices like the mouse or keyboard. Does not affect capabilities of API calls, when the source is "api" or `"silent".
Methods
enable(enabled: boolean = true)Examples
quill.enable();
quill.enable(false); // Disables user inputFocuses the editor and restores its last range.
Methods
focus()Examples
quill.focus();Checks if editor has focus. Note focus on toolbar, tooltips, does not count as the editor.
Methods
hasFocus(): BooleanExamples
quill.hasFocus();Synchronously check editor for user updates and fires events, if changes have occurred. Useful for collaborative use cases during conflict resolution requiring the latest up to date state. Source may be "user", "api", or "silent".
Methods
update(source: String = 'user')Examples
quill.update();