Theme
arya
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga
vela
SunEditor

The SunEditor is a lightweight, flexible, customizable WYSIWYG text editor for your web applications.

Based on https://github.com/JiHong88/suneditor by Yi JiHong.

Components and more
Documentation pe:sunEditor
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a naming container.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar Name of the client side widget.
value Value of the component.
height Height of the editor with CSS units, set as an inline style. For example 500px or 100%/code>. Default value: auto
width Width of the editor with CSS units, set as an inline style. For example 500px or 100%/code>. Default value: 100%.
readonly Defines if the editor is readonly.
disabled Defines if the editor is disabled.
tabindex The tab index to assign to the editor. If not given, no tab index will be assigned.
required Marks component as required.
escape Defines if the content of the component should be escaped or not.
secure Secure the component with the HTML Sanitizer library on the classpath. Default is true.
allowFormatting Whether to allow formatting to be included when secure=true and the HTML is sanitized. Default true.
allowBlocks Whether to allow blocks to be included when secure=true and the HTML is sanitized. Default true.
allowStyles Whether to allow styles to be included when secure=true and the HTML is sanitized. Default true.
allowLinks Whether to allow links to be included when secure=true and the HTML is sanitized. Default true.
allowImages Whether to allow images to be included when secure=true and the HTML is sanitized. Default true.
allowMedia Whether to allow audio/video to be included when secure=true and the HTML is sanitized. Default true.
allowTables Whether to allow tables to be included when secure=true and the HTML is sanitized. Default true.
requiredMessage Message to display when required field validation fails.
converterMessage Message to display when conversion fails.
validatorMessage Message to display when validation fails.
validator A method expression referring to a method validationg the input.
style CSS style(s) to be applied when this component is rendered.
styleClass Style class of the main container element. Default value is null.
mode Editor mode : classic, inline, balloon, balloon-always. Default classic.
locale String or java.util.Locale representing user locale. Default is a locale specified in view root.
dir Defines text direction, valid values are "ltr" (default) and "rtl".
extender Name of javascript function to extend the options of the underlying SunEditor configuration.
toolbar JSON array of array using single quote that defines the toolbar.
Events (move mouse over the names to see classes)
Name Description
changeon change
scrollon scroll
mousedownon mouseDown
clickon click
inputon input
keydownon keyDown
keyupon keyUp
focuson focus
bluron blur
pasteon paste
copyon copy
cuton cut
dropon drop
saveon save
PrimeFaces Extensions Showcase - © 2011-2023,PrimeFaces: 13.0.0,PrimeFaces Extensions: 13.0.1,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: jetty/9.4.36.v20210114,Build time: 2023-09-11 19:07