mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
refactor: use traditional imports
This commit is contained in:
parent
929ec25a0d
commit
22ad52c11d
@ -1,4 +1,6 @@
|
||||
import { inlineAutoformatEditing, Text, TextProxy, type Autoformat, type Editor, type Element, type Range } from 'ckeditor5';
|
||||
import { type Editor } from 'ckeditor5/src/core.js';
|
||||
import { Text, TextProxy, type Element, type Range } from 'ckeditor5/src/engine.js';
|
||||
import { type Autoformat, inlineAutoformatEditing } from "@ckeditor/ckeditor5-autoformat";
|
||||
|
||||
import { COMMANDS, ELEMENTS } from '../constants.js';
|
||||
import { modelQueryElement, modelQueryElementsAll } from '../utils.js';
|
||||
|
@ -1,10 +1,6 @@
|
||||
import {
|
||||
type DowncastConversionApi,
|
||||
type Editor,
|
||||
type ViewContainerElement,
|
||||
Element,
|
||||
toWidget,
|
||||
toWidgetEditable } from 'ckeditor5';
|
||||
import { type Editor, } from 'ckeditor5/src/core.js';
|
||||
import { type DowncastConversionApi, type ViewContainerElement, Element } from "ckeditor5/src/engine.js";
|
||||
import { toWidget, toWidgetEditable } from 'ckeditor5/src/widget.js';
|
||||
|
||||
import { ATTRIBUTES, CLASSES, ELEMENTS } from '../constants.js';
|
||||
import { viewQueryElement } from '../utils.js';
|
||||
|
@ -5,15 +5,18 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
Autoformat,
|
||||
Element,
|
||||
Plugin,
|
||||
viewToModelPositionOutsideModelElement,
|
||||
Widget,
|
||||
type Batch,
|
||||
type RootElement,
|
||||
type Writer
|
||||
} from 'ckeditor5';
|
||||
} from 'ckeditor5/src/engine.js';
|
||||
|
||||
import { Autoformat } from "@ckeditor/ckeditor5-autoformat";
|
||||
import { Plugin } from "ckeditor5/src/core.js";
|
||||
import { Widget } from 'ckeditor5/src/widget.js';
|
||||
import { viewToModelPositionOutsideModelElement } from '@ckeditor/ckeditor5-widget';
|
||||
|
||||
import { type ViewElement } from "ckeditor5/src/engine.js";
|
||||
|
||||
import '../footnote.css';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { Schema } from 'ckeditor5';
|
||||
import type { Schema } from 'ckeditor5/src/engine.js';
|
||||
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { ATTRIBUTES, ELEMENTS } from '../constants.js';
|
||||
|
@ -1,11 +1,6 @@
|
||||
import {
|
||||
addListToDropdown,
|
||||
Collection,
|
||||
createDropdown,
|
||||
Plugin,
|
||||
ViewModel,
|
||||
type ListDropdownItemDefinition
|
||||
} from 'ckeditor5';
|
||||
import { Plugin } from 'ckeditor5/src/core.js';
|
||||
import { addListToDropdown, createDropdown, ViewModel, type ListDropdownItemDefinition } from '@ckeditor/ckeditor5-ui';
|
||||
import { Collection } from 'ckeditor5/src/utils.js';
|
||||
|
||||
import {
|
||||
ATTRIBUTES,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Plugin } from 'ckeditor5';
|
||||
import { Plugin } from 'ckeditor5/src/core.js';
|
||||
|
||||
import FootnoteEditing from './footnote-editing/footnote-editing.js';
|
||||
import FootnoteUI from './footnote-ui.js';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Command, type Element, type RootElement, type Writer } from 'ckeditor5';
|
||||
import { Command } from 'ckeditor5/src/core.js';
|
||||
import { type Element, type RootElement, type Writer } from "ckeditor5/src/engine.js";
|
||||
|
||||
import { ATTRIBUTES, ELEMENTS } from './constants.js';
|
||||
import { modelQueryElement } from './utils.js';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { type Editor, Element, Text, TextProxy, ViewElement } from 'ckeditor5';
|
||||
import { type Editor } from 'ckeditor5/src/core.js';
|
||||
import { Element, Text, TextProxy, ViewElement } from 'ckeditor5/src/engine.js';
|
||||
|
||||
// There's ample DRY violation in this file; type checking
|
||||
// polymorphism without full typescript is just incredibly finicky.
|
||||
|
Loading…
x
Reference in New Issue
Block a user