equal
deleted
inserted
replaced
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) ) |