axii-light-editor
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -41,4 +41,4 @@ /** @jsx createElement */ | ||
<button type="button" onClick={() => { | ||
output.value = JSON.stringify(editorRef.current.editor.getAttributes(), null, 2); | ||
}}>attributes</button> | ||
editorRef.current.setContent('') | ||
}}>clear content</button> | ||
<pre> | ||
@@ -45,0 +45,0 @@ <code > |
@@ -31,2 +31,5 @@ /** @jsx createElement */ | ||
return tipEditor.current | ||
}, | ||
setContent (content) { | ||
tipEditor.current.commands.setContent(content) | ||
} | ||
@@ -33,0 +36,0 @@ } |
{ | ||
"name": "axii-light-editor", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"type": "module", | ||
"description": "a light editor support basic message type(text/image/link)", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"repository": { | ||
@@ -38,5 +33,12 @@ "type": "git", | ||
"devDependencies": { | ||
"@jsdevtools/version-bump-prompt": "^6.1.0", | ||
"axii": "^1.5.5", | ||
"less": "^4.1.2" | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"release": "npm run build && bump --commit \"release: v%s\" --push && pnpm publish --no-git-checks" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
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
94982
291
3
2