-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding TinyMCE Plugins #506
Comments
Have you looked at customizing the TinyMCE config? Any custom config fields you supply overwrite the default config, so you should be able to add your custom plugin selection and toolbar configuration there. E.g. I could add this via a json file like so: ExampleDataModel .cs public class ExampleDataModel : ICustomEntityDataModel
{
[Html(ConfigFilePath = "/content/html-editor-config.json")]
public string Content { get; set; }
} html-editor-config.json {
"toolbar": "preview forecolor backcolor",
"plugins": "preview textcolor",
} Doing so will overwrite the existing plugin configuration, so you'll want to include any other plugin references you may need. The default Cofoundry selection is |
Yes, I found and read the HTML page and tried many things that were wrong, hence needing to raise my question, but I had no idea how simple you have made it for us. I've used a HtmlEditorConfigSource class dictionary and it works. Thank you very much. |
Perhaps the documentation is not clear/detailed enough, would an example similar to above have helped? |
Definitely, yes. |
Docs updated, will be published with the release of Cofoundry v0.11 |
Is it possible to add TinyMCE Plugins to enhance the existing offerings? I'm needing Forecolor, Backcolor and Preview. I've looked at the Installing Plugins and HTML docs pages and have done some experimenting without success. I do not understand if TinyMCE Plugins can be included and, if they can, I don't know how.
The text was updated successfully, but these errors were encountered: