Re: Tikiwiki 1.10 remove XML
Well, I got that and now I understand better Tikiwiki - Tikiwiki is my friend 🎅
In tiki-preview.tpl, we have this reference: _/div>{$parsed}_/div>, If we delete that, preview text don't appear. LOL, I had to write _/div>{$parsed}_/div> because here in this forum, the same problem happen and that would be removed 😛
After I went looking for the $parsed and I did discover that was coming from tiki-editpage.php. There, I did discover this:
// apply the optional post edit filters before preview
if(isset($_REQUEST%22preview%22) || ($wiki_spellcheck 'y' && isset($_REQUEST%22spellcheck%22) &&$_REQUEST%22spellcheck%22 'on')) {
//$parsed = $tikilib->apply_postedit_handlers($edit_data);
//$parsed = $tikilib->parse_data($parsed,$is_html);
} else {
$parsed = "";
}
I just commented that 2 lines of code and add this one 😀
$parsed=$edit_data;
So, EDIT_DATA will not be parsed 😀 - maybe I will know a better way to do this hack, in a cleaner way 🎅