API Docs for: 1.0.0
Show:

CKEDITOR.plugins.ezpaste Class

Configure the paste behaviour so that it matches what RichText and our current implementation of AlloyEditor/CKEditor actually support.

Constructor

CKEDITOR.plugins.ezpaste

()

Methods

applyPasteFilter

(
  • editor
  • htmlCode
)
String private

Applies the paste filter to the given html code.

Parameters:

  • editor CKEDITOR.editor
  • htmlCode String

Returns:

String:

stripParagraphFromListItem

(
  • htmlCode
)
String private

Strips the paragraph from the list item ie transform

<ul><li><p>Foo <b>bar</b></p></li></ul>

into

<ul><li>Foo <b>bar</b></li></ul>

Parameters:

  • htmlCode String

Returns:

String: