TinyMCE.php
changeset 2 8c7e79d37074
parent 0 c78d206bf01c
equal deleted inserted replaced
1:5f58dd1540b4 2:8c7e79d37074
    17 function render_text_tinymce($text)
    17 function render_text_tinymce($text)
    18 {
    18 {
    19 	return '?>' . RenderMan::render($text, RENDER_INLINE);
    19 	return '?>' . RenderMan::render($text, RENDER_INLINE);
    20 }
    20 }
    21 
    21 
    22 $plugins->attachHook('get_page_source', 'get_page_src_tinymce($result["src"]);');
    22 $plugins->attachHook('get_page_source', 'get_page_src_tinymce($return["src"]);');
    23 
    23 
    24 function get_page_src_tinymce(&$text)
    24 function get_page_src_tinymce(&$text)
    25 {
    25 {
    26 	// gently process headings to make tinymce format them correctly
    26 	// gently process headings to make tinymce format them correctly
    27 	if ( preg_match_all('/^ *?(={1,6}) *(.+?) *\\1 *$/m', $text, $matches) )
    27 	if ( preg_match_all('/^ *?(={1,6}) *(.+?) *\\1 *$/m', $text, $matches) )