Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Do not set depth if experimentalTreeDataSupport flag is true
Browse files Browse the repository at this point in the history
  • Loading branch information
GordyD committed Jan 11, 2018
1 parent b505a5e commit 700562a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/model/encoding/convertFromHTMLToContentBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,11 @@ const genFragment = (
lastList = nodeName;
}

if (nodeName === 'li' && node instanceof HTMLElement) {
if (
!experimentalTreeDataSupport &&
nodeName === 'li' &&
node instanceof HTMLElement
) {
depth = getListItemDepth(node, depth);
}

Expand Down

0 comments on commit 700562a

Please sign in to comment.