axii-light-editor
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -55,2 +55,7 @@ /** @jsx createElement */ | ||
} | ||
return () => { | ||
if (tipEditorEle.current) { | ||
tipEditorEle.current.destroy() | ||
} | ||
} | ||
}) | ||
@@ -57,0 +62,0 @@ |
@@ -19,15 +19,15 @@ import { Editor } from '@tiptap/core' | ||
*/ | ||
const e = new Editor({ | ||
extensions: [ | ||
Image, | ||
Document, | ||
Paragraph, | ||
Text, | ||
Link | ||
], | ||
content: '' | ||
}) | ||
export function generateHTML (json) { | ||
const e = new Editor({ | ||
extensions: [ | ||
Image, | ||
Document, | ||
Paragraph, | ||
Text, | ||
Link | ||
], | ||
content: json | ||
}) | ||
console.log('e.getHTML(): ', e.getHTML()); | ||
e.commands.setContent(json) | ||
return e.getHTML() | ||
} |
{ | ||
"name": "axii-light-editor", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"type": "module", | ||
"description": "a light editor support basic message type(text/image/link)", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
430301
15
1643
1