Re: Wiki Save & Preview Error - Duplication
I looked and noticed that the link for the main page edit button is:
http://..../tiki-index.php?page=HomePage#main
and the link for the Section Edit button is
http://..../tiki-editpage.php?page=HomePage&hdr=1
If I edit the page as a whole using:
http://..../tiki-editpage.php?page=HomePage
the page edit works as I would expect and gets not duplication with the normal editor.
Edit:
Ok, the top button link seems to have a OnClink function that calls the function "loadComponent()" with a parameter for "tiki-editpage.php"
The problem seems to have something to do with ajax, maybe if you disabled ajax support, it might go away. I have not figured out how to fix the problem yet, but I did find this in the change log.
------------------
r17728 | jonnybradley | 2009-03-31 16:18:22 +0200 (Tue, 31 Mar 2009) | 6 lines
FIX AJAX loadComponent() JavaScripts now work
Specifically for tiki-editpage.php called via the topline page edit icon (so mostly tested with that)
Quicktags, "lose changes" and "edit timeout" (maybe more) now work, overlib tooltips don't, but no longer cause an error.
I'm not sure why the link on the main edit button is different. I am going to experiment on some php files and see if I can change the link on the edit button and see if that will fix the problem for me.