Socket
Socket
Sign inDemoInstall

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

a light editor support basic message type(text/image/link)


Version published
Weekly downloads
14
increased by7.69%
Maintainers
1
Weekly downloads
 
Created
Source

axii-light-editor

a light editor support basic message type(text/image/link)

Philosophy

this editor is different from normal rich text editor, just support simple input content

unrecommended:

  • text format, like bold, italic, head title
  • list
  • program code
  • any other markup

support message types

  • text
  • image
  • link
    • http web
    • [to do] video
    • [to do] file

attentions:

  • user will input complex html by paste
    • handler: add paste listener to format user's clipboard content, just take Text and base64
  • support two way transformation in data and html
    • handler: need to design two parser

message data struct


type IMessage = Array<{
  content: string;
  type: 'text' | 'link' | 'image'
}>

render IMessage to html:

text ->

{content}

link -> {content}

image ->

FAQs

Package last updated on 25 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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