WebsiteBaker Support (2.8.x) > jQuery
admin wysiwyg editor JSON save function
imqqmi:
thanks for trying!
did you upload both files?
I've used version 2.83 sp1, please make sure you're using that version.
unexpected character usually means that the form that was sent is empty and saveJSON.php redirects to the home page.
let me know if the above suggestions work, thanks!
josha
dbs:
WB Rev. 1638 = WB 2.8.3 SP1
Yes, both files are uploaded.
Have added section_anchor, changed language to english, multi_tab disabled ... but nothing helps.
imqqmi:
Could you please send me the html source of the page you're trying to edit? The source html when you hit ctrl+u in firefox. I might locate the problem there.
Here's a changed modify.php with some console.log added to see what is going on:
http://www.jmbfoto.nl/modify.zip
Let me know what firebug reports, if the contents of the fck editor returns anything. And what the saveJSON.php returns (probably the home page html).
Thanks!
imqqmi:
I've checked with an older version WB 2.8.2 and it worked immediately when I uploaded the 2 files. Very strange it isn't working in your situation. Is it a clean install of WB or is it heavily modified/added lots of modules or changes to jquery? I used the installed version (1.7.x I believe).
dbs:
Ok, "nothing happens" was wrong. It saved the changes, but i don't saw a success-something, only the firebug-SyntaxError.
With the new modify.php:
--- Code: ---<br />
<b>Notice</b>: Undefined variable: tid in <b>...\modules\wysiwyg\saveJSON.php</b> on line <b>78</b><br />
<br />
<b>Notice</b>: Undefined variable: formData in <b>...\modules\wysiwyg\saveJSON.php</b> on line <b>79</b><br />
{"success":"true","success1":"Save succesful.","id":null,"name":null}
--- End code ---
A test with 3 sections and hit 3x "save" will save all 3 sections.
It works. :wink:
Something in green/red for every action would be nice.
The SyntaxError is still there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version