-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@easylogic/react-summernote-lite': patch | ||
'@easylogic/react-summernote-bs4': patch | ||
--- | ||
|
||
update README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,25 @@ | ||
# react-summernote | ||
React extension for summernote | ||
# @easylogic/react-summernote-bs4 | ||
|
||
This library support all summernote features. | ||
React extension for summernote bs4 | ||
|
||
This library support all summernote features. | ||
|
||
# install | ||
|
||
# install | ||
``` | ||
npm install @easylogic/react-summernote | ||
npm install jquery summernote bootstrap popper.js @easylogic/react-summernote-bs4 | ||
``` | ||
|
||
# Getting Started | ||
# Getting Started | ||
|
||
```js | ||
import 'jquery' | ||
import ReactSummernoteLite from '@easylogic/react-summernote' | ||
import '@easylogic/react-summernote/index.css' | ||
import {ReactSummernoteBS4} from '@easylogic/react-summernote-bs4' | ||
|
||
const EditorComponent = () => { | ||
return <ReactSummernoteLite id="sample" onInit={({ note }: any ) => { | ||
return <ReactSummernoteBS4 id="sample" onInit={({ note }: any ) => { | ||
note.summernote('pasteHTML', '<span style="font-size:30px">Hello, world for 30px</span>') | ||
}} /> | ||
} | ||
|
||
export default EditorComponent | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
# development | ||
|
||
``` | ||
npm install | ||
npm run dev | ||
``` | ||
|
||
# build | ||
|
||
``` | ||
npm install | ||
npm run build | ||
``` | ||
|
||
# storybook | ||
|
||
``` | ||
npm install | ||
npm run storybook | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters