feat(RTE): replace pseudo list elements#2673
Conversation
🦋 Changeset detectedLatest commit: c594468 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for fondue-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| }, | ||
| [ELEMENT_UL]: ({ classNames, children }) => `<ul dir="auto" class="${UL_CLASSES} ${classNames}">${children}</ul>`, | ||
| [ELEMENT_OL]: ({ classNames, children }) => `<ol dir="auto" class="${OL_CLASSES} ${classNames}">${children}</ol>`, | ||
| [ELEMENT_LI]: ({ classNames, children, node, styles }) => |
Check warning
Code scanning / CodeQL
Unsafe HTML constructed from library input Medium
| [ELEMENT_UL]: ({ classNames, children }) => `<ul dir="auto" class="${UL_CLASSES} ${classNames}">${children}</ul>`, | ||
| [ELEMENT_OL]: ({ classNames, children }) => `<ol dir="auto" class="${OL_CLASSES} ${classNames}">${children}</ol>`, | ||
| [ELEMENT_LI]: ({ classNames, children, node, styles }) => | ||
| `<li dir="auto" class="${classNames} ${LI_CLASSNAMES}" style="${reactCssPropsToCss( |
Check warning
Code scanning / CodeQL
Unsafe HTML constructed from library input Medium
| [ELEMENT_LIC]: ({ classNames, children, node, bulletHtml }) => | ||
| `<p dir="auto" class="${classNames} ${getLicElementClassNames(node, false)}">${bulletHtml}<span class="${LIST_ITEM_SPAN_CLASSES}">${children}</span></p>`, | ||
| [ELEMENT_LINK]: ({ node, children, classNames, styles }) => linkNode(node, children, classNames, styles), | ||
| [ELEMENT_BUTTON]: ({ node, children, classNames, styles }) => |
Check warning
Code scanning / CodeQL
Unsafe HTML constructed from library input Medium
✅ Deploy Preview for fondue-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for fondue-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| if (originalOnKeyDown) { | ||
| subPlugin.handlers = { | ||
| ...subPlugin.handlers, | ||
| onKeyDown: (editor, plugin) => { |
There was a problem hiding this comment.
Can we extract this fn? It's getting kinda crazy in here.
There was a problem hiding this comment.
Sure! Moved some stuff around
2a50556 to
f47f71e
Compare
|
Lead time: 5 hours, 2 minutes, 43 seconds (5.05 total hours) from first commit to close.
|
<li>