Rich Text Input
Overview
Use the rich text input component to prompt the user for “rich text”, which is text with basic formatting embedded. Typical formatting options include bold, italic, underline, font face/color/weight, lists, links, etc.
Development
Web component development
Component reference
jodit
Allows user to edit rich text
Implementation
Begin by adding a textarea element with an id.
Include jodit
in package.json
, where x.y.z is the currently supported version number for this framework specified here. Use npm install
to install this framework.
Next, update the JS and CSS bundles in the angular.json
file to include these assets.
In the typescript, create an HTMLTextAreaElement
and assign it to a new Jodit
object, sending in the id of the textarea, in the AfterViewInit
lifecycle hook.
Angular component development
Component reference
jodit
Allows user to edit rich text
Implementation
Begin by adding a textarea element with an id.
Include jodit
in package.json
, where x.y.z is the currently supported version number for this framework specified here. Use npm install
to install this framework.
Next, update the JS and CSS bundles in the angular.json
file to include these assets.
In the typescript, create an HTMLTextAreaElement
and assign it to a new Jodit
object, sending in the id of the textarea, in the AfterViewInit
lifecycle hook.
Design
Figma design
Dev Component | Design Component Name |
---|---|
Rich text editor | RUI / Forms / Rich Text Editor |
Adobe XD design
- Sample App - Editing Form Data
Dev Component | Design Component Name |
---|---|
Rich text editor | JHA / Forms / Rich Text Editor |