From 580e984a8d78346f6c9e565e9950f49063c983e4 Mon Sep 17 00:00:00 2001 From: Nikolay Semernya Date: Wed, 7 Apr 2021 19:52:02 +0800 Subject: [PATCH] Default blockToHTML values for article and section `draft-js` already has support for article and section blocks(https://github.com/facebook/draft-js/pull/2212). Due to the lack of support for these blocks from draft-convert, this results in an error: convertToHTML: missing HTML definition for block with type section --- src/default/defaultBlockHTML.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/default/defaultBlockHTML.js b/src/default/defaultBlockHTML.js index a1707ea..cb9aff0 100644 --- a/src/default/defaultBlockHTML.js +++ b/src/default/defaultBlockHTML.js @@ -26,4 +26,6 @@ export default { }, media:
, atomic:
, + article:
, + section:
, };