axii-light-editor

0.1.8 • Public • Published

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 ->

Readme

Keywords

none

Package Sidebar

Install

npm i axii-light-editor

Weekly Downloads

0

Version

0.1.8

License

ISC

Unpacked Size

915 kB

Total Files

17

Last publish

Collaborators

  • zhouyg