Enum Class Plugin

java.lang.Object
java.lang.Enum<Plugin>
org.vaadin.hugerte.Plugin
All Implemented Interfaces:
Serializable, Comparable<Plugin>, Constable

public enum Plugin extends Enum<Plugin>
  • Enum Constant Details

    • ACCORDION

      public static final Plugin ACCORDION
    • ADVLIST

      public static final Plugin ADVLIST
    • ANCHOR

      public static final Plugin ANCHOR
    • AUTORESIZE

      public static final Plugin AUTORESIZE

      Enables the "autoresize" plugin. This will let take the editor as much space as necessary to display all the content.

      Be aware, that the editor might be smaller than a fixed height that you have set. To prevent any issues regarding that, the editor will remove the "height" inline styling. Also be aware, that the editor will take all available space, when growing. This may lead to unintuitive scrolling behavior.

      To prevent the toolbar of the editor from being "scrolled out" of the visible area of the field, you need to configure a max-height for the editor by providing the configuration flag max-height:

      HugeRte myRte = new HugeRte();
      myRte.configurePlugins(Plugin.AUTORESIZE);
      myRte.configure("max_height", 400);
       

      Please note, that the editor only accepts numerical values. That value is interpreted as pixels and cannot be changed, while the editor is attached. This is a limitation of the underlying editor engine. When providing a max-height this way, it is not necessary to also provide a normal css max-height.

    • AUTOSAVE

      public static final Plugin AUTOSAVE
    • CHARMAP

      public static final Plugin CHARMAP
    • CODE

      public static final Plugin CODE
    • CODESAMPLE

      public static final Plugin CODESAMPLE
    • DIRECTIONALITY

      public static final Plugin DIRECTIONALITY
    • EMOTICONS

      public static final Plugin EMOTICONS
    • FULLSCREEN

      public static final Plugin FULLSCREEN
    • HELP

      public static final Plugin HELP
    • IMAGE

      public static final Plugin IMAGE
    • IMPORT_CSS

      public static final Plugin IMPORT_CSS
    • INSERT_DATETIME

      public static final Plugin INSERT_DATETIME
    • LISTS

      public static final Plugin LISTS
    • MEDIA

      public static final Plugin MEDIA
    • NONBREAKING

      public static final Plugin NONBREAKING
    • PAGEBREAK

      public static final Plugin PAGEBREAK
    • PREVIEW

      public static final Plugin PREVIEW
    • QUICKBARS

      public static final Plugin QUICKBARS
    • SAVE

      public static final Plugin SAVE
    • SEARCH_REPLACE

      public static final Plugin SEARCH_REPLACE
    • TABLE

      public static final Plugin TABLE
    • TEMPLATE

      public static final Plugin TEMPLATE
    • VISUAL_BLOCKS

      public static final Plugin VISUAL_BLOCKS
    • VISUAL_CHARS

      public static final Plugin VISUAL_CHARS
    • WORDCOUNT

      public static final Plugin WORDCOUNT
  • Field Details

    • pluginLabel

      public final String pluginLabel
  • Method Details

    • values

      public static Plugin[] 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

      public static Plugin valueOf(String name)
      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 name
      NullPointerException - if the argument is null