Ticket #3273: fix-links-with-preview-on-first-edit.patch

File fix-links-with-preview-on-first-edit.patch, 657 bytes (added by Alexander Sulfrian, 9 years ago)
  • FCKeditorEditPage.body.

    old new  
    3232                if (!$this->isCssJsSubpage) {
    3333                        wfRunHooks( 'EditPageBeforePreviewText', array( &$this, $this->previewOnOpen() ) );
    3434                        if ($this->previewOnOpen()) {
    35                                 $result = html_entity_decode(parent::getPreviewText());
     35                                $result = html_entity_decode(preg_replace('/&lt;a href="<a href="([^"]+)" class="external free" title="\\1" rel="nofollow">\\1<\\/a>/i', '&lt;a href="\\1" class="external free" rel="nofollow"', parent::getPreviewText()));
    3636                        }
    3737                        else {
    3838                                $result = parent::getPreviewText();
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy