mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
refactor(ckeditor5): add explicit types
This commit is contained in:
parent
3eddb55aa2
commit
b5f2c2d557
@ -2,7 +2,7 @@
|
|||||||
* https://github.com/TriliumNext/Notes/issues/1002
|
* https://github.com/TriliumNext/Notes/issues/1002
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Command, DocumentSelection, Element, Plugin } from 'ckeditor5';
|
import { Command, DocumentSelection, Element, Node, Plugin } from 'ckeditor5';
|
||||||
|
|
||||||
export default class MoveBlockUpDownPlugin extends Plugin {
|
export default class MoveBlockUpDownPlugin extends Plugin {
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ export default class MoveBlockUpDownPlugin extends Plugin {
|
|||||||
|
|
||||||
abstract class MoveBlockUpDownCommand extends Command {
|
abstract class MoveBlockUpDownCommand extends Command {
|
||||||
|
|
||||||
abstract getSelectedBlocks(selection: DocumentSelection);
|
abstract getSelectedBlocks(selection: DocumentSelection): Element[];
|
||||||
abstract getSibling(selectedBlock: Element);
|
abstract getSibling(selectedBlock: Element): Node | null;
|
||||||
abstract get offset(): "before" | "after";
|
abstract get offset(): "before" | "after";
|
||||||
|
|
||||||
override refresh() {
|
override refresh() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user