A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Yes. it's called code!
public void ConfigureContainer(ServiceConfigurationContext context)
{
context.Services.Configure<TinyMceConfiguration>(config =>
{
config.Default()
.AddPlugin("code")
.Toolbar("code")
});
}
Configuring TinyMCE in Episerver:
https://world.episerver.com/documentation/developer-guides/CMS/add-ons/customizing-the-tinymce-editor-v2/
List of what plugins you must add in order to use the different controls:
https://www.tiny.cloud/docs/advanced/editor-control-identifiers/
Yes you can achieve this by creating a initialization module.
Below is the sample class that you can use-
using EPiServer.Cms.TinyMce.Core;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.ServiceLocation;
namespace MyEpiserverSite.Business.Initialization
{
[ModuleDependency(typeof(TinyMceInitialization))]
public class ExtendedTinyMceInitialization : IConfigurableModule
{
public void Initialize(InitializationEngine context)
{
}
public void Uninitialize(InitializationEngine context)
{
}
public void ConfigureContainer(ServiceConfigurationContext context)
{
context.Services.Configure<TinyMceConfiguration>(config =>
{
config.Default()
.AddPlugin("code")
.Toolbar("code")
});
}
}
}
More information-
https://www.epinova.no/en/blog/configuring-default-toolbar-buttons-in-tinymce-4-for-episerver/
Is there an option that will show me the source code of the stuff inside tiny mce editor ?