Skip to content

Commit

Permalink
Add information about CSS styles to Tiny plugin doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou authored Jul 1, 2024
1 parent c25bf61 commit e9e4de3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/apis/plugintypes/tiny/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,3 +584,9 @@ export const configure = (instanceConfig) => {
```

</details>

## CSS styles

CSS styles that apply to the editor controls and its popup windows can be placed in the normal Moodle `styles.css` file, because these controls are part of the normal Moodle page.

If there are styles that need to apply to the actual content being edited, this appears in a separate iframe so the normal styles have no effect. These styles should be placed in a file called `editor_styles.css`. You might need to do this if your plugin inserts HTML within the content such as a custom `<span class="...">` tag which needs particular styling.

0 comments on commit e9e4de3

Please sign in to comment.