@alxgrn/prose-editor 0.0.42 → 0.0.44
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/dist/lib/index.d.ts +2 -1
- package/dist/lib/utils/convert.d.ts +6 -0
- package/dist/prose-editor.es.js +6704 -8366
- package/dist/prose-editor.es.js.map +1 -1
- package/dist/prose-editor.umd.js +23 -26
- package/dist/prose-editor.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { default as Notes } from './prose/ProseNotes';
|
|
|
2
2
|
import { default as Editor } from './prose/ProseEditor';
|
|
3
3
|
import { default as Viewer } from './prose/ProseViewer';
|
|
4
4
|
import { default as DOM } from './prose/ProseViewerDom';
|
|
5
|
+
import { htmlToProse } from './utils/convert';
|
|
5
6
|
import { TEditorSaver, TImageUploader, TNotesSaver, TPublication, TPublicationFormat } from './types';
|
|
6
|
-
export { Notes, Editor, Viewer, DOM, };
|
|
7
|
+
export { Notes, Editor, Viewer, DOM, htmlToProse, };
|
|
7
8
|
export type { TEditorSaver, TImageUploader, TNotesSaver, TPublication, TPublicationFormat, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Конвертация документа в формате HTML в формат Prose
|
|
3
|
+
* @param html строка с документом в формате HTML
|
|
4
|
+
* @param simple флаг того что надо использовать упрощенную схему документа
|
|
5
|
+
*/
|
|
6
|
+
export declare const htmlToProse: (html?: string, simple?: boolean) => string;
|