mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-29 08:38:17 +08:00
client: Add some JSDoc
This commit is contained in:
parent
85ee7def84
commit
6a11f9c073
@ -16,6 +16,12 @@ const TPL = `\
|
|||||||
</style>
|
</style>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles the editing toolbar when the CKEditor is in decoupled mode.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* The ribbon item is active by default for text notes, as long as they are not in read-only mode.
|
||||||
|
*/
|
||||||
export default class ClassicEditorToolbar extends NoteContextAwareWidget {
|
export default class ClassicEditorToolbar extends NoteContextAwareWidget {
|
||||||
get name() {
|
get name() {
|
||||||
return "classicToolbar";
|
return "classicToolbar";
|
||||||
|
@ -107,6 +107,12 @@ function buildListOfLanguages() {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The editor can operate into two distinct modes:
|
||||||
|
*
|
||||||
|
* - Ballon block mode, in which there is a floating toolbar for the selected text, but another floating button for the entire block (i.e. paragraph).
|
||||||
|
* - Decoupled mode, in which the editing toolbar is actually added on the client side (in {@link ClassicEditorToolbar}), see https://ckeditor.com/docs/ckeditor5/latest/examples/framework/bottom-toolbar-editor.html for an example on how the decoupled editor works.
|
||||||
|
*/
|
||||||
export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||||
static getType() { return "editableText"; }
|
static getType() { return "editableText"; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user