Skip to content

Latest commit

 

History

History
86 lines (54 loc) · 1.23 KB

editor.md

File metadata and controls

86 lines (54 loc) · 1.23 KB

Editor

blur

Removes focus from the editor.

Methods

blur()

Examples

quill.blur();

disable

Shorthand for enable(false).

enable

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 input

focus

Focuses the editor and restores its last range.

Methods

focus()

Examples

quill.focus();

hasFocus

Checks if editor has focus. Note focus on toolbar, tooltips, does not count as the editor.

Methods

hasFocus(): Boolean

Examples

quill.hasFocus();

update

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();