-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
17 (might be in 15 and 16 too, haven't tested)
Bug summary
Renaming an RTE extension yields a strange "missing extension" skeleton in the editor.
Specifics
No response
Steps to reproduce
Start by adding a styleMenu extension like this:
{
"name": "My TipTap",
"alias": "My.TipTap",
"extensions": [
{
"type": "tiptapToolbarExtension",
"kind": "styleMenu",
"alias": "My.TipTap.StyleMenu",
"name": "My Tiptap Style Menu",
"meta": {
"alias": "myCustomStyleMenu",
"icon": "icon-palette",
"label": "My styles"
},
"items": [
{
"label": "Code",
"data": { "tag": "code" }
}
]
}
]
}...and configure an RTE data type to use the style menu:
Also, create some content using the RTE data type.
Now rename the style menu alias (and label for visibility):
{
"name": "My TipTap",
"alias": "My.TipTap",
"extensions": [
{
"type": "tiptapToolbarExtension",
"kind": "styleMenu",
"alias": "My.New.TipTap.StyleMenu",
"name": "My Tiptap Style Menu",
"meta": {
"alias": "myCustomStyleMenu",
"icon": "icon-palette",
"label": "My new styles"
},
"items": [
{
"label": "Code",
"data": { "tag": "code" }
}
]
}
]
}Restart the site (to ensure that the extension changes are picked up) and go back to the RTE data type configuration. The previous style menu is gone (which is to be expected), and the new style menu is available:
Pick the new style menu and save the RTE data type. Now go back to the content that was previously created. You'll see a skeleton-kind of representation of the old style menu next to the new one:
Expected result / actual result
Most important
Missing RTE extensions should not be rendered for the editors.
Nice have
Perhaps it could be made explicitly visible at configuration time that something is missing?
This item has been added to our backlog AB#57883