renderFromHTML API method (#654)

* renderFromHTML API method

* Fix case when currentBlock is undefined

* Clear editor before render

* Handle single block processing

* Update paragraph
This commit is contained in:
George Berezhnoy 2019-03-18 23:59:40 +03:00 committed by GitHub
commit a47ffcce44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 77 additions and 45 deletions

View file

@ -22,6 +22,10 @@ export interface API {
Methods that working with Blocks
`render(data)` - render passed JSON data
`renderFromHTML(data)` - parse and render passed HTML string (*not for production use*)
`swap(fromIndex, toIndex)` - swaps two Blocks by their positions
`delete(blockIndex?: Number)` - deletes Block with passed index