Class TinyMCEStyleFormatter
Parses a specified css file for css classes to create the format options in Tiny MCE.
Inheritance
System.Object
TinyMCEStyleFormatter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Editor.TinyMCE
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class TinyMCEStyleFormatter
Constructors
TinyMCEStyleFormatter()
Initializes a new instance of the TinyMCEStyleFormatter class.
Declaration
public TinyMCEStyleFormatter()
TinyMCEStyleFormatter(LocalizationService)
Initializes a new instance of the TinyMCEStyleFormatter class.
Declaration
public TinyMCEStyleFormatter(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | The resource locator that should be used by the instance to get localized strings. |
Methods
CreateStyleFormats(Stream)
Creates the style formatsfor TinyMCE.
Declaration
public IEnumerable<object> CreateStyleFormats(Stream styleSheet)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | styleSheet | The style sheet. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | IEnumerable of objects that can be serialized to javascript. If style sheet is null or empty string null is returned. |
CreateStyleFormats(String)
Creates the style formats.
Declaration
public IEnumerable<object> CreateStyleFormats(string styleSheet)
Parameters
Type | Name | Description |
---|---|---|
System.String | styleSheet | The style sheet. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |