0.1.8 • Published 8 years ago

draft-js-bbcode-converter v0.1.8

Weekly downloads
40
License
-
Repository
github
Last release
8 years ago

DraftJS: Convert to and from BBCode

This is a module for DraftJS that will convert BBCode to editor content and back.

Based on draft-js-import-element and draft-js-export-html

How to use

import converter from 'draft-js-bbcode-converter';

// import from bbcode
const contentState = converter.bbcodeImport('[p]Hello [b]world[/b][/p]')

// export to bbcode
const contentState = editorState.getCurrentContent();
const bbcodeString = converter.bbcodeExport(contentState);
0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago