# Editor ## Examples ```html ${args.children || html`

Here is some bold, italic and underlined text.

  1. First ordered item
  2. Second ordered item
  3. Third ordered item
`}
``` ### SingleAIOption ```html ${args.children} ``` ### MultipleAIOptions ```html ${args.children} ``` ### CustomConfig ```html FI SV NO EN DA ``` ### UpdateContent ```html Initial content Update Content ``` ### UpdateSelection ```html

Select this text and click the button below

Another paragraph

Select text and click here
``` ## Installation As this is a addon component, you need to install the addon first. ```bash npm install @mark/editor @mark/tokens @mark/icons ``` You also need to include the css from froala editor directly to the page where you are using the editor component ```html ``` And finally also include or import the editor. ```javascript // import from installed package import "@mark/tokens/css"; import "@mark/icons"; import "@mark/editor"; // import from the cdn import 'https://cdn.grade.design/mark/editor/0.2.0/index.js'; ``` ## Other Considerations You have to handle the styling of the content with your local applications styles. Either global css or specifically targeted inside the editor. ```css m-editor p, m-editor ul, m-editor ol { margin: 0 0 var(--m-space-m); } ```