forked from opentiny/tiny-vue
chore(fluent-editor): upgrade quill to 2.0.0 (#1785)
This commit is contained in:
parent
59bc73b23d
commit
a18a7c895f
|
@ -54,7 +54,7 @@
|
|||
"dependencies": {
|
||||
"highlight.js": "^10.2.0",
|
||||
"html2canvas": "^1.0.0-rc.7",
|
||||
"quill": "2.0.0-dev.4",
|
||||
"quill": "^2.0.0",
|
||||
"quill-delta": "^5.1.0"
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill'
|
||||
import Quill from 'quill'
|
||||
|
||||
const Delta = Quill.imports['delta']
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { LANG_CONF } from '../config';
|
||||
import { ICounterOption } from '../config/types';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill'
|
||||
import Quill from 'quill'
|
||||
import {
|
||||
ERROR_IMAGE_PLACEHOLDER_CN,
|
||||
ERROR_IMAGE_PLACEHOLDER_EN,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import Action from './actions/Action';
|
||||
import ImageBlot, { ImageContainerBlot } from './image';
|
||||
import DefaultOptions, { Options } from './Options';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import Action from './Action';
|
||||
|
||||
export default class DeleteAction extends Action {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { isNullOrUndefined, sanitize } from '../config/editor.utils';
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
const Inline = Quill.imports['blots/inline'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill'
|
||||
import Quill from 'quill'
|
||||
|
||||
import {
|
||||
FILE_UPLOADER_MIME_TYPES,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import emojiMap from '../emoji-map';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import emojiList from '../emoji-list';
|
||||
|
||||
const Module = Quill.imports['core/module'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { EMOJI_SPRITE as emojiSprite } from '../../config/base64-image';
|
||||
import emojiList from '../emoji-list';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { sanitize } from '../../config/editor.utils';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import File from './formats/file';
|
||||
import FileBar from './modules/file-bar';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill'
|
||||
import Quill from 'quill'
|
||||
// devui-internal api: utils\public-api.ts
|
||||
|
||||
import { unshiftString } from '../../utils/method';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
|
||||
const BlockEmbed = Quill.imports['blots/block/embed'];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { ON_DOC_LINK_REMOVE } from '../constants';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { ON_WIKI_LINK_REMOVE } from '../constants';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { ON_WORK_ITEM_LINK_REMOVE } from '../constants';
|
||||
import { createTable } from '../utils/createTable';
|
||||
const BlockEmbed = Quill.imports['blots/block/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { getEventComposedPath } from '../config/editor.utils';
|
||||
import CustomerWidgetLink from './formats/customer-widget-link';
|
||||
import DocumentLink from './formats/doc-link';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Quill from 'quill'
|
||||
|
||||
// import * as Quill from 'quill';
|
||||
// import Quill from 'quill';
|
||||
const Parchment = Quill.imports['parchment'];
|
||||
|
||||
const LineHeightStyle = new Parchment.StyleAttributor('lineheight', 'line-height', {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { sanitize } from '../../config/editor.utils';
|
||||
const Inline = Quill.imports['blots/inline'];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import LinkBlot from './formats/link';
|
||||
import Tooltip from './modules/tooltip';
|
||||
const icons = Quill.imports['ui/icons'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { debounce } from '../../../src/utils/debounce';
|
||||
import { LANG_CONF } from '../../config/editor.config';
|
||||
import { isNullOrUndefined } from '../../config/editor.utils';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { isNullOrUndefined } from '../config/editor.utils';
|
||||
import { DEFAULT_MENTION_CHAR, ON_MENTION_LINK_REMOVE } from './constants';
|
||||
import MentionLink from './MentionLink';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { DEFAULT_MENTION_CHAR, MENTION_CHAR, ON_MENTION_LINK_REMOVE } from './constants';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
|
||||
interface QuickMenuOptions {
|
||||
container: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import Html2Canvas from 'html2canvas';
|
||||
import { isPureIE } from '../config/editor.utils';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
|
||||
const Embed = Quill.imports['blots/embed'];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
const Inline = Quill.imports['blots/inline'];
|
||||
|
||||
// @dynamic
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import * as hljs from 'highlight.js';
|
||||
|
||||
const Syntax = Quill.imports['modules/syntax'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import {
|
||||
getEventComposedPath,
|
||||
insideTable,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { isNullOrUndefined } from '../../config/editor.utils';
|
||||
import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
|
||||
|
||||
const Block = Quill.imports['blots/block'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { compare } from '../../utils/method'
|
||||
import { isNullOrUndefined } from '../../config/editor.utils';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { CELL_MIN_HEIGHT, CELL_MIN_WIDTH, COL_TOOL_HEIGHT, PRIMARY_COLOR, ROW_TOOL_WIDTH } from '../table-config';
|
||||
import { css } from '../utils';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { LANG_CONF } from '../../config/editor.config'
|
||||
import { elementRemove, arrayFrom, css, getRelativeRect } from '../utils';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { TableCell } from '../formats/table';
|
||||
import { ERROR_LIMIT, LINE_POSITIONS, PRIMARY_COLOR } from '../table-config';
|
||||
import { css, getRelativeRect } from '../utils';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { omit, splitWithBreak } from '../../config/editor.utils';
|
||||
import { cellId as tableCellId, rowId as tableRowId, TableViewWrapper } from '../formats/table';
|
||||
import { CELL_MIN_WIDTH } from '../table-config';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { isNullOrUndefined } from '../config/editor.utils';
|
||||
const SnowTheme = Quill.imports['themes/snow'];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as Quill from 'quill';
|
||||
import Quill from 'quill';
|
||||
import { sanitize } from '../config/editor.utils';
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue