@easylogic/svelte-summernote

0.0.3 • Public • Published

svelte-summernote

Svelte extension for summernote

This library support all summernote features.

install

npm install @easylogic/svelte-summernote 

Getting Started

import 'jquery'
import SvelteSummernoteLite from '@easylogic/svelte-summernote'
import '@easylogic/svelte-summernote/index.css'

const EditorComponent = () => {
  return <SvelteSummernoteLite id="sample" onInit={({ note } ) => {
          note.summernote('pasteHTML', '<span style="font-size:30px">Hello, world for 30px</span>')
        }} />
}

export default EditorComponent

Support Internalization

import 'jquery'
import '@easylogic/jquery-globals'
import SvelteSummernoteLite from '@easylogic/svelte-summernote'
import '@easylogic/svelte-summernote/index.css'
import '@easylogic/svelte-summernote/dist/lang/summernote-ko-KR'

const EditorComponent = () => {
  return <SvelteSummernoteLite id="sample" lang='ko-KR' />
}

export default EditorComponent

development

npm install
npm run dev 

build

npm install
npm run build

storybook

npm install
npm run storybook

Readme

Keywords

none

Package Sidebar

Install

npm i @easylogic/svelte-summernote

Weekly Downloads

2

Version

0.0.3

License

none

Unpacked Size

134 kB

Total Files

220

Last publish

Collaborators

  • easylogic