Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
i try to prevent RTE from deleting <header> and <section> Tags and extend RTE with Plugin "template" with following in appsetting.json without success.
<header>
<section>
"RichTextEditor": { "ValidElements": "header,section[class]", "InvalidElements": "font", "Plugins": "template", "MenuBar": "insert", "Selector": "textarea", "Templates": [ { "title": "Some title 1", "description": "Some desc 1", "content": "My content" }, { "title": "Some title 2", "description": "Some desc 2", "url": "development.html" } ], "Toolbar": "template" }
Can anybody help?
Hi Klaus,
Is you rich text configuration in the correct place in appsettings.json (see https://docs.umbraco.com/umbraco-cms/reference/configuration/richtexteditorsettings)
I also think you need to add everything that is added by default by umbraco. If I am correct your config will replace the existing one.
You can find the default configuration here : https://github.com/umbraco/Umbraco-CMS/blob/33adbf41fa1f5c5d0759c70a7116114107addf56/src/Umbraco.Core/Configuration/Models/RichTextEditorSettings.cs#L10
Dave
I'm not sure you can use all those options like Templates either.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
RichTextEditor ValidElements does not work
Hello,
i try to prevent RTE from deleting
<header>
and<section>
Tags and extend RTE with Plugin "template" with following in appsetting.json without success.Can anybody help?
Hi Klaus,
Is you rich text configuration in the correct place in appsettings.json (see https://docs.umbraco.com/umbraco-cms/reference/configuration/richtexteditorsettings)
I also think you need to add everything that is added by default by umbraco. If I am correct your config will replace the existing one.
You can find the default configuration here : https://github.com/umbraco/Umbraco-CMS/blob/33adbf41fa1f5c5d0759c70a7116114107addf56/src/Umbraco.Core/Configuration/Models/RichTextEditorSettings.cs#L10
Dave
I'm not sure you can use all those options like Templates either.
is working on a reply...