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

Issue with Encoded Edits #110

@danjohnso

Description

@danjohnso

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions