@ones-editor/editor 0.0.3-beta.200 → 0.0.3-beta.201
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/mathjax/src/mathjax-box/mathjax-editor.d.ts +16 -0
- package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar.d.ts +1 -1
- package/@ones-editor/table-block/src/types.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
import { AbstractCommandBar, Popup } from '../../../../@ones-editor/ui-base';
|
|
1
3
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
4
|
export type OnEditChange = (tex: string, end: boolean) => void;
|
|
5
|
+
export default class MathjaxEditor {
|
|
6
|
+
editMathjaxPopup: Popup | null;
|
|
7
|
+
onChange: OnEditChange | null;
|
|
8
|
+
tex: string;
|
|
9
|
+
private observer;
|
|
10
|
+
editMathjax(elem: HTMLElement, tex: string, onChange: OnEditChange): void;
|
|
11
|
+
handleClose: (commandBar: AbstractCommandBar) => void;
|
|
12
|
+
handleKeyup: (event: KeyboardEvent) => void;
|
|
13
|
+
handleChange: import("lodash").DebouncedFunc<(text: string) => void>;
|
|
14
|
+
createPopupContent(tex: string): HTMLTextAreaElement;
|
|
15
|
+
textareaWatcher(textarea: HTMLTextAreaElement): void;
|
|
16
|
+
getTextarea(): HTMLTextAreaElement;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
}
|
|
3
19
|
export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onChange: OnEditChange): void;
|
|
@@ -2,7 +2,7 @@ import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
|
2
2
|
export declare class TableBorderBar {
|
|
3
3
|
private editor;
|
|
4
4
|
tableBlock: BlockElement;
|
|
5
|
-
private toolbar
|
|
5
|
+
private toolbar?;
|
|
6
6
|
private resizeObserver;
|
|
7
7
|
constructor(editor: OnesEditor, tableBlock: BlockElement);
|
|
8
8
|
close(): void;
|