-
Notifications
You must be signed in to change notification settings - Fork 0
✨ [oip-#3442] Implement storybook for prosemirror editors #18
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
base: main
Are you sure you want to change the base?
Conversation
d10cf4b to
80d1344
Compare
9cd67b5 to
c378eb7
Compare
c378eb7 to
2b25a83
Compare
97324f1 to
ff11171
Compare
jiromaykin
left a comment
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.
An impressive amount of stories, though my browser can hardly handle it. It takes such a long while to load the Storybook stories, wondering why that is. Since this does not seem to be a problem when running the rich text-editors in Django.
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| # - name: Get Playwright version |
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.
These are all commented out - is this for documentation only? Or not needed at all?
| // All nodes and marks enabled | ||
| allowedNodes: Object.values(NodeType), | ||
| allowedMarks: Object.values(MarkType), | ||
| resize: "both", |
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.
These resize controls don't seem to do anything in none of the stories?
So the whole list with:
- both
- horizontal
- vertical
- block
- inline
- none
| resize: { | ||
| control: "radio", | ||
| options: [ | ||
| "both", |
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.
What effect should we see from these?
| expectedJSON = baseBlockquoteJSONContent; | ||
| editor = await waitForEditor(canvasElement); | ||
| blockquoteBtn = await canvas.findByTitle("Change to block quote"); | ||
| // styleDropdown = await canvas.findByText("Style"); |
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.
Commented out? not needed?
| ["caption", ["string|null"], "The caption of the image"], | ||
| ], | ||
| }, | ||
| // TODO [WIP] |
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.
Will you need a new PR for this? :-) then its fine.
Description
Implement multiple tools to have as much frontend coverage as possible:
Current coverage
Storybook preview