Skip to content

Commit 52ec23e

Browse files
committed
fix: RT-258 consider element having inline attribute as inline
1 parent 3dca8b5 commit 52ec23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fromRedactor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ export const fromRedactor = (el: any, options?:IHtmlToJsonOptions) : IAnyObject
819819
}
820820
let noOfInlineElement = 0
821821
Array.from(el.parentNode?.childNodes || []).forEach((child: any) => {
822-
if (child.nodeType === 3 || child.nodeName === 'SPAN' || child.nodeName === 'A') {
822+
if (child.nodeType === 3 || child.nodeName === 'SPAN' || child.nodeName === 'A' || child.getAttribute('inline')) {
823823
noOfInlineElement += 1
824824
}
825825
})

0 commit comments

Comments
 (0)