@ones-editor/editor 1.1.18-beta.9 → 1.1.19-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +1 -0
- package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +2 -2
- package/@ones-editor/list-block/src/index.d.ts +2 -1
- package/@ones-editor/list-block/src/local-events/paste-handler.d.ts +6 -0
- package/@ones-editor/sharedb-doc/src/types.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/link-popup/index.d.ts +4 -1
- package/dist/index.js +841 -77590
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3,13 +3,16 @@ import { Placement } from '../../../../@ones-editor/ui-base';
|
|
|
3
3
|
import './index.scss';
|
|
4
4
|
type OnFinished = (linkText: string, linkUrl: string) => void;
|
|
5
5
|
type OnClose = () => void;
|
|
6
|
+
type OnBeforeFormatUrl = (linkUrl: string) => string | false;
|
|
6
7
|
interface LinkEditorOptions {
|
|
7
8
|
target: HTMLElement;
|
|
8
9
|
linkText: string;
|
|
9
10
|
linkUrl: string;
|
|
10
11
|
onFinished: OnFinished;
|
|
11
12
|
onClose?: OnClose;
|
|
13
|
+
onBeforeFormatUrl?: OnBeforeFormatUrl;
|
|
12
14
|
placement?: Placement;
|
|
13
15
|
}
|
|
14
|
-
export
|
|
16
|
+
export type LinkOptions = Pick<LinkEditorOptions, 'onBeforeFormatUrl'>;
|
|
17
|
+
export declare function editLink(editor: OnesEditor, options: LinkEditorOptions): void;
|
|
15
18
|
export {};
|