-
Notifications
You must be signed in to change notification settings - Fork 59
Fix missing toolbar icons shown in configuration of richtext editor #932
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
Fix missing toolbar icons shown in configuration of richtext editor #932
Conversation
@iOvergaard @loivsen seeems like an oversight? |
@bjarnef looks good to me, there is though a TypeScript issue. I assume TinyMCE is not TypeScript, if that's true then I recommend casting you import to |
@nielslyngsoe ahh, I see the failed test. I noticed elsewhere in code where it use Umbraco.CMS.Backoffice/src/packages/core/components/input-tiny-mce/input-tiny-mce.handlers.ts Line 1 in 62c3fc8
but then I get an error:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks!
...tor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts
Show resolved
Hide resolved
Head branch was pushed to by a user without write access
…property-editor-ui-tiny-mce-toolbar-configuration.element.ts Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
@nielslyngsoe is there a reason elsewhere in code it use Umbraco.CMS.Backoffice/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts Line 2 in 527936f
|
@bjarnef when we apply type to the import statement it basically means that we do not want a real import, we just want to borrow the type in the TypeScript compile check. :-) So if the code is actually used, then we should not append type to the import statement :-) |
… actually loaded both in vite and the browser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…same as we do on the production build (this helps with tinymce)
Description
Added missing icons shown at toolbar in configuration of richtext editor.
The
tinymce
doesn't contain a "default" property, butIconManager
directly. Not sure why, but when when output to console in render function, it seems to log twice.Before
After
Types of changes
Motivation and context
How to test?
Screenshots (if appropriate)
Checklist