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

@ -16,6 +16,13 @@ export interface Blocks {
*/
render(data: OutputData): Promise<void>;
/**
* Render passed HTML string
* @param {string} data
* @return {Promise<void>}
*/
renderFromHTML(data: string): Promise<void>;
/**
* Removes current Block
*/