tiny_noautolink/noautolink

Description:
  • Helper for Tiny noautolink plugin.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Helper for Tiny noautolink plugin.

Members

(static, constant) handleAction

Description:
  • Handle action.

Source:

Handle action.

(static, constant) toggleActiveState

Description:
  • Change the active state of button.

Source:

Change the active state of button.

Methods

(inner) getAnchorElement(editor, selectedElm) → {Element}

Description:
  • Get anchor element.

Source:
Parameters:
Name Type Description
editor TinyMCE
selectedElm Element
Returns:
Type
Element

(inner) getSelectedContent(editor) → {String}

Description:
  • Return the full string based on the position of the cursor within the string.

Source:
Parameters:
Name Type Description
editor TinyMCE
Returns:
Type
String

(inner) isInAnchor(editor, selectedElm) → {boolean}

Description:
  • Check the current selected element is an anchor or not.

Source:
Parameters:
Name Type Description
editor TinyMCE
selectedElm Element
Returns:
Type
boolean
Description:
  • Display notification feedback when applying the noautolink to the selected text.

Source:
Parameters:
Name Type Description
editor TinyMCE
messages object
urlString String

(async, inner) setNoautolinkOnSelection(editor, url)

Description:
  • Wrap the selection with the nolink class.

Source:
Parameters:
Name Type Description
editor TinyMCE
url String

URL the link will point to.

(inner) toggleState(editor, toggler) → {function}

Description:
  • Change state of button.

Source:
Parameters:
Name Type Description
editor TinyMCE
toggler function
Returns:
Type
function
Description:
  • Display notification feedback when removing the noautolink to the selected text.

Source:
Parameters:
Name Type Description
editor TinyMCE
messages object

(async, inner) unsetNoautolinkOnSelection(editor, url)

Description:
  • Remove the nolink on the selection.

Source:
Parameters:
Name Type Description
editor TinyMCE
url String

URL the link will point to.