Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Issue with Encoded Edits #110

Closed
danjohnso opened this issue Nov 7, 2013 · 1 comment
Closed

Issue with Encoded Edits #110

danjohnso opened this issue Nov 7, 2013 · 1 comment

Comments

@danjohnso
Copy link

Lines 173-175 of jquery.jeditable.js:
self.editing = true;
self.revert = $(self).html();
$(self).html('');

When your text is an encodable character (ie &), then the form element gets set to the encoded value (& instead of just &) which isn't very user friendly, especially since if you save the value back it changes the value. I changed it to this and have not seen any adverse side effect:

self.revert = $(self).text();

NicolasCARPi added a commit that referenced this issue Feb 6, 2018
@NicolasCARPi
Copy link
Owner

Hello, thanks for your contribution. Your change has been incorporated in the code :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants