0.1.8 • Published 9 years ago

draft-js-bbcode-converter v0.1.8

Weekly downloads
40
License
-
Repository
github
Last release
9 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

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago