-
Hi, I'm trying to handle RTL format. is there any way to do it? I've come up with a solution, but I'm having trouble to do it: createParagraphPlugin({ props: { dir: 'auto' } }) but it does not work on headings (does not add 'dir' attribute to the node in html): createHeadingPlugin({ props: { dir: 'auto' } }) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Because the heading plugin is composed of many plugins, you need to use |
Beta Was this translation helpful? Give feedback.
-
thanks @zbeyens , saved a day. I used reduce to apply it on all headings { overrideByKey: KEYS_HEADING.reduce((acc, key) => ({ ...acc, [key]: { props: { dir: 'auto' } } }), {}) } |
Beta Was this translation helpful? Give feedback.
Because the heading plugin is composed of many plugins, you need to use
overrideByKey: { h1: ... } }