This is a Sitecore Control that uses the Tiny MCE Editor in place of the default one
- Download Sitecore update package: a) from Github releases if you want stable version; b) from AppVeyor if you want latest version
- Install it using update installation wizard /sitecore/admin/UpdateInstallationWizard.aspx
- Set new field types on tempates that you want
Module introduces 2 new field types: TinyMCERTE
and Rich Text with TinyMCERTE
.
TinyMCERTE
allows to edit field only with TinyMCE editor. Rich Text with TinyMCERTE
remains compatibility with Rich Text
field. You will have same abilities to edit Rich Text field, but additionaly your will get ability to run TinyMCE editor.
TinyMCERTE
and Rich Text with TinyMCERTE
fields are compatible with Rich Text
field. All these fields use HTML format to save data. If you are not happy with editing abilities of any of this field types, you can change field type without losing data in it.
All information below relates to both TinyMCERTE
and Rich Text with TinyMCERTE
fields. When configuration for thsese fields differs, it is described separately.
Similar to classic Rich Text
field, TinyMCERTE
and Rich Text with TinyMCERTE
fields has ability to set editing profiles.
You need to set Source
field value on the template to do it. Format of setting value is: {1}&so_mce={2}. Where:
- {1} - HTML Editor Profile for Rich Text controls. (If applied, because
TinyMCERTE
doesn't use it) - {2} - HTML Editor Profile for TinyMCE controls.
All available TinyMCE editing profiles are located in core database under path /sitecore/system/Settings/TinyMCE Editor Profiles
. Available values provided with intallation package:
- /sitecore/system/Settings/TinyMCE Editor Profiles/TinyMCE Basic Profile
- /sitecore/system/Settings/TinyMCE Editor Profiles/TinyMCE Default Profile
- /sitecore/system/Settings/TinyMCE Editor Profiles/TinyMCE Full Classic Profile
- /sitecore/system/Settings/TinyMCE Editor Profiles/TinyMCE Standard Common Profile
You can create your own editor profiles or configure existing ones depending of your needs. Each profile has next abilities for configuration:
- Editor Toolbar - provides ability to configure buttons that should be available on the toolbar.
- Editor plugins - provides ability to configure usage of different availabe TinyMCE plugins
- Editor Init Callback - allows to run your custom JavaScript on the start of TinyMCE editor. It is required for ability to use some plugins or extend editor by yourself.
- Editor Menubar - controls enabling/disabling of menu bar.
- Editor Branding - turns on and off link "Powered by Tiny" displayed in the status bar.
- Editor Style Formats - enables you to add more advanced style formats for text and other elements.
- Clone repository
- Open command line
- Change dir to ".\Sitecore-TinyMCERTE\sitecore\shell\Controls\Lib"
- Run
npm install
. It will install TinyMCE npm package and all dependencies. - Install and configure Unicorn on your Sitecore instance
- Edit
Sitecore-TinyMCERTE\App_Config\Include\TinyEditor.Serialization.config
file. ChangephysicalRootPath
to correspond your local location of source folder - Use
FolderProfile
publishing profile to publish your project (Create your own profile based on this one or edit existing ones) - Sync TinyMCERTE Unicorn configuration after publishing of project