...
Code Block | ||
---|---|---|
| ||
public List<TinyMceTemplateElement> TinyMceTemplates = new List<TinyMceTemplateElement>() { new TinyMceTemplateElement() { AssetTypes = new List<string>() { "Default" }, HtmlTemplate = "<a href='#downloadLink#'>#title#</a>" }, new TinyMceTemplateElement() { AssetTypes = new List<string> { "Image" }, HtmlTemplate = "<img alt='#title#' src='#link#' />" }, new TinyMceTemplateElement() { AssetTypes = new List<string>() { "Video" }, HtmlTemplate = "<div style='width:640px; height:360px;'><video poster='#thumb#' controls='controls' style='width:100%; height:100%;'><source type='video/mp4' src='#link#'></video></div>" } }; |
You have the options to add your own configuration in the startup.cs. As a minimum you must add the default assettype. Otherwise nothing will be rendered.