Abstract
Abstract
placeholderThe placeholder attribute specifies a short hint that describes the expected value of the input field and will be displayed before the user enters a value.
// sets the placeholder
contentEditor.placeholder = "Please add some content";
// returns the placeholder -> "Please add some content";
contentEditor.placeholder;
Abstract
readonlyMakes the Content-Editor not mutable, meaning the user can not edit the value.
// sets the readonly state
contentEditor.readonly = true;
// returns the readonly state -> true;
contentEditor.readonly;
Abstract
requiredIndicates that the user must specify a value for the Content-Editor before the owning form can be submitted.
// sets the required state
contentEditor.required = true;
// returns the required state -> true;
contentEditor.required;
Abstract
valueReturns/Sets the current value of the control.
// sets the value
contentEditor.value = "Hello World";
// returns the value -> "Hello World";
contentEditor.value;
Abstract
getAbstract
setAbstract
setSwitch the editor's display mode to "Markdown" or "WYSIWYG".
WYSIWYG offers visual real-time editing similar to the final result, while Markdown uses plain text with simple formatting codes to structure content for later conversion.
// sets the view to markdown
contentEditor.setView("markdown");
// sets the view to wysiwyg
contentEditor.setView("wysiwyg");
The Content Editor component is a WYSIWYG (What You See Is What You Get) editor, providing a user-friendly interface for creating and editing rich text content.
It offers real-time preview of changes, enhancing the user experience and supports both Markdown and WYSIWYG modes, catering to different user preferences and use cases.
Element
ix-content-editor
Example
Understanding properties and methods
Refer to the provided examples for each property to gain a deeper understanding of utilizing the getter/setter functionality.
Note
The Content Editor utilizes the Textarea view control when displaying content on view pages. Refer to this documentation for guidance on its use on view pages as well.