Skip to content
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

Desktop: Fixes #8504: Support FontAwesome icons in the WYSIWYG toolbar #8519

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jul 21, 2023

Summary

Allows plugins to use FontAwesome icons in the TinyMCE toolbar.

Fixes #8504.

Notes

  • This pull request passes HTML data as the second argument to editor.ui.registry.addIcon, rather than SVG data. While this seems to work in both TinyMCE 5 and 6, editor.ui.registry.addIcon is documented to accept SVG, not HTML data.
  • If the TinyMCE editor is open on application startup, Desktop: Rich text editor: Plugin icons invisible on startup #8518 is still an issue.

Note: This uses HTML and not SVG data as an argument to `.addIcon`.
While this works, `addIcon` is documented to accept only SVG data.
@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: Fixes #8504: Support FontAwesome icons in the TinyMCE toolbar Desktop: Fixes #8504: Support FontAwesome icons in the WYSIWYG toolbar Jul 21, 2023
@laurent22 laurent22 merged commit 776b6d8 into laurent22:dev Jul 21, 2023
10 checks passed
@laurent22
Copy link
Owner

Thanks, that's great, I didn't think it would be so straightforward to load the plugin toolbar icons.

By the way, we use the term "Rich Text editor"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In the rich text editor, display the plugin icons instead of gear icons
2 participants