CodeBlockGadget(options)

Class CodeBlockGadget

new CodeBlockGadget(options)

Creates an instance of CodeBlockGadget.

Parameters:
Name Type Description
options Object

options

Properties
Name Type Description
eventManager EventManager

event manager instance

container HTMLElement

container element

wysiwygEditor WysiwygEditor

wysiwyg editor instance

Extends

Members

active :boolean

is activated.
if this blockOverlay is active, It always be visible unconditionally.

Overrides:

Methods

protected getAttachedElement() → {HTMLElement}

attached element

Returns:
HTMLElement -
  • attached element
Inherited From:

protected getVisibility() → {boolean}

visibility

Returns:
boolean -

visibility

Inherited From:

protected onHide()

called on hide. you may want to override to get the event

Overrides:

protected onShow()

called on show. you may want to override to get the event

Overrides:

protected setVisibility(visibility)

visibility

Parameters:
Name Type Description
visibility boolean

is visible

Inherited From:

protected syncLayout()

update blockOverlay position & size update to attached element
you may want to override this to adjust position & size

Overrides: