Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axii-light-editor

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axii-light-editor - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/assets/index.ed9d5d64.css

5

lib/editor.jsx

@@ -55,2 +55,7 @@ /** @jsx createElement */

}
return () => {
if (tipEditorEle.current) {
tipEditorEle.current.destroy()
}
}
})

@@ -57,0 +62,0 @@

22

lib/parser.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc