I fixed this problem with JEditable 1.7.1 in my application. The solution is almost identical to the Symmitch solution.
Starting at line 204, there is a block of code that defines how JEditable should load its data.
var input_content; if (settings.loadurl) { ... } else if (settings.data) { ... } else { ... } content.apply(form, [input_content, settings, self]);
Add jQuery trim-function before the last line (line 239 in my version) so that you get:
var input_content; if (settings.loadurl) { ... } else if (settings.data) { ... } else { ... } try { input_content = input_content.trim(); } catch(e) {
The reason I put it in try-catch is because when you use JEditable with textarea or text input like input_content, it is basically a string. When you use select input_content, it is an object and will not respond well to cropping.
There is probably a nicer way to do this, instead of using try-catch, but it does its job.
Johan bjorling
source share