You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when you change the FORM from form_for(@page) to remote_form_for(@page) if you have 'wysihat_engine_pack' included in the javascript it won't work. It will fall back to regular posting.
You can see this in the demo app, just edit app/views/pages/new.html.erb and chnage from_for to remote_form_for and see that it just posts as normal.
If you remove the 'wysihat_engine_pack' from the app/views/layouts/pages.html.erb and click create, the page will not change and using firebug you can see the ajax call.
Unfortunately I don't know enough about why the wysihat-engine is taking over from the remote_form_for, though I suspect that it would relate to how it monitors the forms.
Hope this is an easy fix as I am sure others want to use remote_form_for and the wysihat engine at the same time. :-)
The text was updated successfully, but these errors were encountered:
i have the same error
on firefox, firebug tells me :
setting a property that has only a getter
anonymous(iframe#lexicon_article_content_editor.editor)form_fun...271940477 (line 130)
anonymous(iframe#lexicon_article_content_editor.editor)prototype.js (line 706)
each(function(), Object name=context)prototype.js (line 705)
new_form_style_for_iframes()form_fun...271940477 (line 119)
form_functions.js?1271940477()
whereas google chrome tells me :
Uncaught Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7 wysihat_engine_pack.js:367
I noticed that when you change the FORM from form_for(@page) to remote_form_for(@page) if you have 'wysihat_engine_pack' included in the javascript it won't work. It will fall back to regular posting.
You can see this in the demo app, just edit app/views/pages/new.html.erb and chnage from_for to remote_form_for and see that it just posts as normal.
If you remove the 'wysihat_engine_pack' from the app/views/layouts/pages.html.erb and click create, the page will not change and using firebug you can see the ajax call.
Unfortunately I don't know enough about why the wysihat-engine is taking over from the remote_form_for, though I suspect that it would relate to how it monitors the forms.
Hope this is an easy fix as I am sure others want to use remote_form_for and the wysihat engine at the same time. :-)
The text was updated successfully, but these errors were encountered: