pixiebrix-extension
pixiebrix-extension copied to clipboard
Slice 3: Add a “Rich Text” Document Builder Element
Implementation sketch
See https://www.notion.so/pixiebrix/Phase-1-Implement-Rich-Text-Editor-f74aea6b845847c0ad25f81d8236da3c?pvs=4#12843b21a25380c4bda7e2220d1f2af2
Acceptance Criteria
Ability to Add Rich Text Document Builder Element
- Given a Document Renderer brick being edited via the Document Builder
- When a user clicks on the add element three-dot menu
- Then the list of available elements should contain a “Rich Text”
Editing Rich Text Document Builder Element
- Given a rich text element is selected in the Document Builder
- When the user views the element configuration pane
- Then the available fields should contain the following fields
- Rich text
- Hidden
Rendering Rich-Text Field Output
- Given a mod with a form that contains a “Rich Text Editor” field whose output is rendered in a renderer brick (e.g. a Document Renderer)
- When the mod is run
- Then the rendered HTML should adhere to the default and custom stylesheets applied to the Document Renderer