Skip to content

Commit

Permalink
Use text() method to get textarea value instead html() method
Browse files Browse the repository at this point in the history
because ember 1.7 add script tag around textarea
  • Loading branch information
Anil Maurya committed Jul 3, 2015
1 parent 2565265 commit 3fcc073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
if(trigger !== target) trigger.hide();
var old_value = (
type === 'textarea' ?
target.html().replace(/<br( \/)?>/gm, '\n').replace(/&gt;/gm, '>').replace(/&lt;/gm, '<') :
target.text().replace(/<br( \/)?>/gm, '\n').replace(/&gt;/gm, '>').replace(/&lt;/gm, '<') :
target.text()
).replace(/^\s+/,'').replace(/\s+$/,'');

Expand Down

1 comment on commit 3fcc073

@lucadealfaro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be the cause of bug #7 .

Please # to comment.