diff --git a/app/src/components/composer-editor/base-block-plugins.jsx b/app/src/components/composer-editor/base-block-plugins.jsx index b0a45cd65..1d8a6520d 100644 --- a/app/src/components/composer-editor/base-block-plugins.jsx +++ b/app/src/components/composer-editor/base-block-plugins.jsx @@ -57,11 +57,24 @@ export const BLOCK_CONFIG = { type: 'div', tagNames: ['div', 'br', 'p'], render: ({ node, attributes, children, targetIsHTML }) => { + let explicitHTMLAttributes = undefined; + + if (targetIsHTML) { + explicitHTMLAttributes = {}; + if (node.isLeafBlock() && node.getTextDirection() === 'rtl') { + explicitHTMLAttributes.dir = 'rtl'; + } + } + if (targetIsHTML && nodeIsEmpty(node)) { return
; } return ( -
+
{children}
);