Skip to content

Commit 9a398d9

Browse files
committed
Merge branch 'moodle:main' into app-docs
2 parents d67b35f + b82e228 commit 9a398d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/apis/plugintypes/tiny/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,15 @@ export const configure = (instanceConfig) => {
584584
```
585585

586586
</details>
587+
588+
## CSS styles
589+
590+
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.
591+
592+
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.
593+
594+
:::note
595+
596+
Care should be taken when adding content styles so that generated content is not tied to the editor plugin. If the plugin is removed (or users choose a different editor), it should not break content.
597+
598+
:::

0 commit comments

Comments
 (0)