Enum Class FallbackEvent.FallbackMode

java.lang.Object
java.lang.Enum<FallbackEvent.FallbackMode>
com.wontlost.ckeditor.event.FallbackEvent.FallbackMode
All Implemented Interfaces:
Serializable, Comparable<FallbackEvent.FallbackMode>, Constable
Enclosing class:
FallbackEvent

public static enum FallbackEvent.FallbackMode extends Enum<FallbackEvent.FallbackMode>
Fallback mode.
  • Enum Constant Details

    • TEXTAREA

      public static final FallbackEvent.FallbackMode TEXTAREA
      Fall back to a native textarea. Retains basic editing capability but loses rich text features.
    • READ_ONLY

      public static final FallbackEvent.FallbackMode READ_ONLY
      Fall back to read-only mode. Content is visible but not editable.
    • ERROR_MESSAGE

      public static final FallbackEvent.FallbackMode ERROR_MESSAGE
      Display an error message. No editing capability provided.
    • HIDDEN

      public static final FallbackEvent.FallbackMode HIDDEN
      Hide the editor. Nothing is displayed.
  • Method Details

    • values

      public static FallbackEvent.FallbackMode[] 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 FallbackEvent.FallbackMode 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
    • getJsName

      public String getJsName()
      Get the JavaScript-side mode name.
      Returns:
      the JS mode name
    • fromJsName

      public static FallbackEvent.FallbackMode fromJsName(String jsName)
      Parse a mode from its JS name.
      Parameters:
      jsName - the JavaScript-side mode name
      Returns:
      the corresponding enum value, or ERROR_MESSAGE if not found