-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rich text editor support with example #1594
Conversation
… container layout
src/packages/admin-ui-components/src/detail-panel/fields/markdown-field/index.tsx
Outdated
Show resolved
Hide resolved
src/packages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar.tsx
Outdated
Show resolved
Hide resolved
src/packages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of things that I think will make this more maintainable, but it's looking great so far!
...kages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar/header-options.tsx
Outdated
Show resolved
Hide resolved
...packages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar/link-button.tsx
Outdated
Show resolved
Hide resolved
...ackages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar/list-options.tsx
Outdated
Show resolved
Hide resolved
...ackages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar/list-options.tsx
Outdated
Show resolved
Hide resolved
...ackages/admin-ui-components/src/detail-panel/fields/markdown-field/menu-bar/list-options.tsx
Outdated
Show resolved
Hide resolved
const handleBoldClick = (event: React.MouseEvent<HTMLButtonElement>) => { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
editor.chain().focus().toggleBold().run(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below, I think we can remove most of this duplication.
by