1<?php 2 3namespace dokuwiki\Action; 4 5/** 6 * Class Preview 7 * 8 * preview during editing 9 * 10 * @package dokuwiki\Action 11 */ 12class Preview extends Edit { 13 14 /** @inheritdoc */ 15 public function preProcess() { 16 header('X-XSS-Protection: 0'); // FIXME is it okay to send it right away here? 17 act_draftsave('fixme'); // reimplement thisutility function and take of duplicate code in ajax.php 18 19 parent::preProcess(); 20 } 21 22 /** @inheritdoc */ 23 public function tplContent() { 24 global $TEXT; 25 html_edit(); 26 html_show($TEXT); 27 } 28 29} 30