When using version 2.8.2r1 of YUI module, the node add form fails to save content. After the content is captured and the save button is clicked, the form appears again, now populated with the captured content, but the node is not created.

If rich text is disabled before clicking save, the node is created as expected.

My guess is that there is a piece of JS that disables the rich text fields before sending a node form (that behavior is seen when using TinyMCE) but it's failing to do so with that version of YUI in webkit.

Comments

noel.rivas’s picture

Testing further, I found that the problem only occurs when there are two (or more, I guess) YUI editors in the same form.

Additionally, when I click save, there is a JS error (that quickly disappears because the form is sent and the form starts loading again):

TypeError: Result of expression 'this.cfg' [null] is not an object. /sites/all/libraries/yui/build/container/container-min.js?v:9

There are two identical errors in a form with two YUI wysiwyg fields.

twod’s picture

Thanks for further investigating this!
I'll try to take a look at it this weekend and see if there's something we can do in the YUI implementation, unless you beat me to it. ;)

twod’s picture

Status: Active » Closed (duplicate)

I'm pretty sure this was caused by something which got fixed by #1388224: editors detach on AJAX form submission.
Please reopen this issue if the problem is still present for you with Wysiwyg 6.x-2.x-dev.