Ticket #3273: fix-links-with-preview-on-first-edit.patch
File fix-links-with-preview-on-first-edit.patch, 657 bytes (added by , 14 years ago) |
---|
-
FCKeditorEditPage.body.
old new 32 32 if (!$this->isCssJsSubpage) { 33 33 wfRunHooks( 'EditPageBeforePreviewText', array( &$this, $this->previewOnOpen() ) ); 34 34 if ($this->previewOnOpen()) { 35 $result = html_entity_decode(p arent::getPreviewText());35 $result = html_entity_decode(preg_replace('/<a href="<a href="([^"]+)" class="external free" title="\\1" rel="nofollow">\\1<\\/a>/i', '<a href="\\1" class="external free" rel="nofollow"', parent::getPreviewText())); 36 36 } 37 37 else { 38 38 $result = parent::getPreviewText();