Package org.vaadin.hugerte
Enum Class Plugin
- All Implemented Interfaces:
Serializable,Comparable<Plugin>,Constable,ClientSideReference
Plugins of the editor, to be enabled with
HugeRte.configurePlugins(Plugin...). Many Toolbar and
Menubar items need a matching plugin.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdds collapsible accordion sections.Adds more list styles, e.g.Adds inserting anchors (named targets for links).Converts typed URLs automatically to links.Enables the "autoresize" plugin.Stores the content to the browser's local storage and asks to restore it when the editor is opened again.Adds a dialog for inserting special characters.Adds a dialog for editing the HTML source code.Adds inserting and editing code samples with syntax highlighting.Adds toolbar items for the text direction (left-to-right, right-to-left).Adds a dialog for inserting emoticons.Adds a full screen mode for the editor.Adds a help dialog with keyboard shortcuts and plugin information.Adds inserting and editing images.Imports CSS classes from the content CSS to the format menus.Adds inserting the current date and time.Adds inserting and editing links.Normalizes the list behavior, e.g.Adds embedding media, e.g.Adds inserting non-breaking spaces.Adds inserting page breaks.Adds a preview of the content.Adds context toolbars for selected text and empty lines.Adds a save toolbar item.Adds a search and replace dialog.Adds inserting and editing tables.Adds inserting predefined templates.Adds showing block elements visually, e.g.Adds showing invisible characters, e.g.Adds a word count to the status bar. -
Method Summary
-
Enum Constant Details
-
ACCORDION
Adds collapsible accordion sections. -
ADVLIST
Adds more list styles, e.g. roman numbers, to the list toolbar items. RequiresLISTS. -
ANCHOR
Adds inserting anchors (named targets for links). -
AUTOLINK
Converts typed URLs automatically to links. -
AUTORESIZE
Enables the "autoresize" plugin. This will let the editor take as much space as necessary to display all the content.
Please note, that the normal height settings may conflict with the editor's behavior.
To prevent visual glitches or misbehavior, e.g. the toolbar of the editor from being "scrolled out" of the visible area of the field, you should apply min-max height restrictions on the editor directly, e.g.
HugeRte myRte = new HugeRte(); myRte.configurePlugins(Plugin.AUTORESIZE); myRte.setEditorMaxHeight(400);
-
AUTOSAVE
Stores the content to the browser's local storage and asks to restore it when the editor is opened again. -
CHARMAP
Adds a dialog for inserting special characters. -
CODE
Adds a dialog for editing the HTML source code. -
CODESAMPLE
Adds inserting and editing code samples with syntax highlighting. -
DIRECTIONALITY
Adds toolbar items for the text direction (left-to-right, right-to-left). -
EMOTICONS
Adds a dialog for inserting emoticons. -
FULLSCREEN
Adds a full screen mode for the editor. -
HELP
Adds a help dialog with keyboard shortcuts and plugin information. -
IMAGE
Adds inserting and editing images. -
IMPORT_CSS
Imports CSS classes from the content CSS to the format menus. -
INSERT_DATETIME
Adds inserting the current date and time. -
LINK
Adds inserting and editing links. -
LISTS
Normalizes the list behavior, e.g. for indenting list items. -
MEDIA
Adds embedding media, e.g. videos. -
NONBREAKING
Adds inserting non-breaking spaces. -
PAGEBREAK
Adds inserting page breaks. -
PREVIEW
Adds a preview of the content. -
QUICKBARS
Adds context toolbars for selected text and empty lines. -
SAVE
Adds a save toolbar item. It calls the function given in the "save_onsavecallback" option. -
SEARCH_REPLACE
Adds a search and replace dialog. -
TABLE
Adds inserting and editing tables. -
TEMPLATE
Adds inserting predefined templates. The templates are configured with the "templates" option. -
VISUAL_BLOCKS
Adds showing block elements visually, e.g. paragraphs and headings. -
VISUAL_CHARS
Adds showing invisible characters, e.g. non-breaking spaces. -
WORDCOUNT
Adds a word count to the status bar.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getClientSideRepresentation
Description copied from interface:ClientSideReferenceReturns the client side representation of this instance.- Specified by:
getClientSideRepresentationin interfaceClientSideReference- Returns:
- client side representation
-