1.11.2 • Published 1 month ago

pocket-editor v1.11.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

This is yet another wysiwyg editor, it focuses mainly on two things:

  • Very fast load time
  • Reliable markdown output

Install

npm install pocket-editor

What you can do

function pocketEditor(string): {
  get: () => string
  set: (string) => void
  oninput: ((content: string) => void) => void
}

How to use

<body>
    <div id="wrapper"></div>
</body>
import pocketEditor from "pocket-editor"
import "pocket-editor/style.css"

const editor = pocketEditor("wrapper")

editor.set("## Hello world !!")

editor.oninput((content) => {
    console.log(content)
})

Keybindings

KeybindAction
Ctrl + Shift + 1To big heading
Ctrl + Shift + 2To medium heading
Ctrl + Shift + 3To small heading
Ctrl + Shift + 4To bullet list
Ctrl + Shift + 5To todo list
Ctrl + Shift + 6To normal line

Ctrl is Cmd key on MacOS

Developement

# Install pnpm to use these scripts
npm i -g pnpm

# First install all
pnpm i -r

pnpm dev
pnpm preview
pnpm build
1.11.2

1 month ago

1.11.1

1 month ago

1.11.0

1 month ago

1.10.1

2 months ago

1.9.3

7 months ago

1.9.2

7 months ago

1.10.0

6 months ago

1.9.1

9 months ago

1.8.2

11 months ago

1.7.3

11 months ago

1.9.0

10 months ago

1.8.1

11 months ago

1.7.2

11 months ago

1.8.0

11 months ago

1.7.1

11 months ago

1.7.0

12 months ago

1.8.7

11 months ago

1.8.6

11 months ago

1.8.5

11 months ago

1.8.4

11 months ago

1.8.3

11 months ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago