Try our conversational search powered by Generative AI!

Constants for Episerver TinyMCE plugin names

Vote:
 

Prior to upgrading to TinyMCE 2 I was able to find which buttons/plugins that was available using 

EPiServer.Editor.TinyMCE.TinyMCEButtons

I.e.

TinyMCEButtons.EPiServerLink,
TinyMCEButtons.Unlink,
TinyMCEButtons.Anchor,
TinyMCEButtons.Image,

I understand that you might have decided skip that approach for the standard TinyMCE buttons/plugins since that would require you to mirror and keep up with TinyMCE.

However it would be nice to have some constants for the Epi buttons so one doesn't have to consult the docs to find the correct name/label.

Currently only 4 available as I understand.

  • epi-link
  • epi-personalized-content
  • epi-image-editor
  • epi-dnd-processor
#193274
May 28, 2018 11:07
Vote:
 

Hi Peter, if you are after the TinyMCE constants (these control identifiers: https://www.tinymce.com/docs/advanced/editor-control-identifiers/) then I did a view scripts that extracted the information from TinyMCE site. Also another script to create constants out of the plugin folder names that are included with Episerver TinyMCE.

Everything in GitHub: https://github.com/alasvant/Swapcode.TinyMce.Constants

Use as you want or don't use :D

#193317
May 28, 2018 18:53
Vote:
 

Thanks for the tip Antti!

Still would like to see some constants added into the EPiServer.CMS.TinyMce package though. :)

#193324
May 29, 2018 9:29
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.