-
Notifications
You must be signed in to change notification settings - Fork 56
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
ZUIEditor
tools: Ordered list, bullet list, bold and italic
#2479
base: undocumented/ZUI-text-editor
Are you sure you want to change the base?
ZUIEditor
tools: Ordered list, bullet list, bold and italic
#2479
Conversation
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.
I'm approving, but if the "Foo button" text was not intentionally left for later, it needs internationalisation i think.
Also thought about this when i played with it, that I'm not enjoying that the toolbar is open already when i go to the tab. Arriving in this state does not feel smooth to me. Also not for this pr to solve, but noticed it now so writing it now.
const { dispatch, state, tr } = props; | ||
const newNode = this.type.create( | ||
null, | ||
this.type.schema.text('Foo button') |
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.
I'm assuming this is either left in here accidentally, or intentionally left to be internationalised at a later point?
const blockExtensions: ZetkinExtension[] = []; | ||
const otherExtensions: Extension[] = []; | ||
const otherExtensions: AnyExtension[] = []; | ||
const blockExtensions: BlockExtension[] = []; | ||
|
||
if (enableButton) { |
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.
I can't say I like this very long list of "if this - add that" but maybe it is inevitable. Also not to be fixed in this pr, just a thought for now.
Description
This PR integrates four builtin remirror extensions into the editor, and introduces the link extension into the same patterns as all other tools.
Screenshots
Changes
Notes to reviewer
None
Related issues
Undocumented