Class type Goog.​Geditor.​Plugins.​enterHandler

class type enterHandler = object..end

Inherits


method getTrogClassId : Js.js_string Js.t Js.meth

Returns The ID unique to this plugin class. Note that different instances off the plugin share the same classId.

method handleKeyPress : Goog.Events.browserEvent Js.t -> bool Js.t Js.meth

Handles keypress. It is run before handleKeyboardShortcut and if it returns true handleKeyboardShortcut will not be called.

Returns Whether the event was handled and thus should *not* be propagated to other plugins or handleKeyboardShortcut.

method handlerKeyUp : Goog.Events.browserEvent Js.t -> bool Js.t Js.meth

Handles keyup.

Returns Whether the event was handled and thus should *not* be propagated to other plugins.

Prepares the given HTML for editing. Strips out content that should not

appear in an editor, and normalizes content as appropriate. The inverse of cleanContentsHtml.==

This op is invoked even on disabled plugins.