Index: trunk/extensions/FCKeditor/FCKeditorEditPage.body.php |
— | — | @@ -8,6 +8,9 @@ |
9 | 9 | */ |
10 | 10 | public function previewOnOpen() { |
11 | 11 | global $wgRequest, $wgUser; |
| 12 | + if ( !$wgUser->getOption( 'riched_disable' ) ) { |
| 13 | + return false; |
| 14 | + } |
12 | 15 | if( $wgRequest->getVal( 'preview' ) == 'yes' ) { |
13 | 16 | // Explicit override from request |
14 | 17 | return true; |
— | — | @@ -31,11 +34,7 @@ |
32 | 35 | function getPreviewText() { |
33 | 36 | if( !$this->isCssJsSubpage ) { |
34 | 37 | wfRunHooks( 'EditPageBeforePreviewText', array( &$this, $this->previewOnOpen() ) ); |
35 | | - if( $this->previewOnOpen() ) { |
36 | | - $result = html_entity_decode( parent::getPreviewText() ); |
37 | | - } else { |
38 | | - $result = parent::getPreviewText(); |
39 | | - } |
| 38 | + $result = parent::getPreviewText(); |
40 | 39 | wfRunHooks( 'EditPagePreviewTextEnd', array( &$this, $this->previewOnOpen() ) ); |
41 | 40 | } else { |
42 | 41 | $result = parent::getPreviewText(); |