Yesterday, jQuery 1.7.2 has been released:
In this context we should revisit the following issues:
They might have been related to the following bug that has been fixed with the jQuery release:
PS: It seems like the Duplicator script is not using .clone(true) at the moment (maybe because it didn't work?). Adding true and updating to jQuery 1.7.2 should make it possible to revert #990 and #1106.
Update jQuery and fix Duplicator event handling
- closes #1193
- partly revert fixes from #990 and #1106 that are no longer needed
Since switching to .clone(true) it is no longer possible to enter a return in a textarea if it is inside of a duplicator.
Interesting. Are you sure that this is related to the Duplicator and not to another script that attaches event handlers?
While I can't be entirely sure, the issue was easily fixed by removing true.
Well, that makes sense because in that case no events will be cloned. But we need to clone events to keep tag lists etc. working.
So I guess something in the core (or in an extension) is doing something on event level to prevent returns.
Yep, the culprit is my Doccy formatter. It adds autocompletion to the textarea. I'll try and find out why this happens, because it doesn't block you from entering returns normaly.
It appears that it looses track of the element that it's attatched to. I think I'll have a shot of fixing this from the formatter itself.
I think the logic should be:
Wonder if other formatters will need this.
Yep, and here's how it works:
Closing since it's really not a core issue, but good to keep handy if this happens again.