You are here

function _wysiwyg_template_filter_cleanup in Wysiwyg API template plugin 7.2

Callback to cleanup content from wysiwyg template specific code for editors.

Parameters

$text:

Return value

string

1 string reference to '_wysiwyg_template_filter_cleanup'
wysiwyg_template_filter_info in ./wysiwyg_template.module
Implements hook_filter_info().

File

./wysiwyg_template.module, line 137
Makes TinyMCE Templates available as plugin for client-side editors integrated via Wysiwyg API.

Code

function _wysiwyg_template_filter_cleanup($text) {
  $text = str_replace(array(
    'contenteditable="true"',
    'contenteditable="false"',
  ), '', $text);
  return $text;
}