Tools_Wysiwyg

class Nos\Tools_Wysiwyg

Provides static methods to work with WYSIWYG.

::parse()

static Nos\Tools_Wysiwyg::parse($content)
Parameters:
Returns:

Prepare wysiwyg content for display.

Replace enhancers by their content.
Replace Model_Page and Model_Media IDs by theirs URLs
Wysiwyg anchors are processed in case the href attribute begin with # :
  • If it begins with only one # then the href will be prefixed by the page url.
  • If if begins with two ## then it is transformed to only one #.