-
Notifications
You must be signed in to change notification settings - Fork 9
Enable html input begrootmodule #1293
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?
Enable html input begrootmodule #1293
Conversation
Openstad Headless
|
||||||||||||||||||||||||||||
| Project |
Openstad Headless
|
| Branch Review |
OP-589/url-naar-gebruikersonderzoek-kunnen-toevoegen-begrootmodule-upstream
|
| Run status |
|
| Run duration | 21m 35s |
| Commit |
|
| Committer | Oscar |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
51
|
| View all changes introduced in this branch ↗︎ | |
rudivanhierden
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.
Can you change the admin-server configuration so a Rich Text Editor is used for these properties like introText? This ensures the user can use the editor to format the text correctly. By then using the rte-formatting package we give the user more flexibility, while staying within the NLDesign elements.
| <div className="stem-begroot-budget-list-used-budgets"> | ||
| <div className="stem-begroot-helptext-and-budget-section-helptext"> | ||
| <Paragraph>{introText}</Paragraph> | ||
| <div dangerouslySetInnerHTML={{ __html: introText }} /> |
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.
Can you use the RenderContent method from the rte-formatting package? This allows us to transform the HTML to NLDesign elements
import RenderContent from '../../../ui/src/rte-formatting/rte-formatting'
// ...
return (
<div className="rte" dangerouslySetInnerHTML={{ __html: RenderContent(content) }} />
)…onderzoek-kunnen-toevoegen-begrootmodule-upstream
added the rte formatting. A richt text editor will be added later. First need to counsel |
No description provided.