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");
Content Editor component
Element
ix-content-editor
Example
Refer to the provided examples for each property to gain a deeper understanding of utilizing the getter/setter functionality.