-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable options: originalContent and changedContent #9
Comments
Hello @hl222ih - thanks for reporting this. I should really add some tests to this. It started as a quick get-it-done wrapper. For now, can you share a jsfiddle showing the problem? To me, looking at the code, it seems that, if you set the options like this: $(selector).prettyTextDiff({
originalContent: 'foo',
changedContent: 'foobar'
}); ... it should work, since the settings are extended from the given ones. The jsfiddle demo added to the README also shows such an example. |
Hi! What I can see from your jsfiddle demo you are referencing v 1.0.4 kind regards, ------ Originalmeddelande ------
|
@hl222ih is right, I also just stumbled across that problem as well. 1.0.4 does what the readme says, 1.0.3 does not. You must have built 1.0.4 in coffee but then not compiled it to JS and pushed it to the repository, as the JS versions in the repo are still on 1.0.3. I think you should also replace the jquery plugin because your readme is the only real source for documentation and it is confusing that the latest jquery plugin version does not work like the docs indicate. Best, |
Ah that sounds about right. Thanks @fjahr and @hl222ih - this must have been because I merged in PR #6 but forgot to build/push the JS. Thanks for reporting it. It's all fixed now. Also, jQueryPlugins site appears deprecated and suggests to move to npm.js - I published this package there (iunfortunately jQuery-plugins-site is read only and so there is no way to say it there). Also, added a |
Setting originalContent and changedContent didn't work for me. I changed these two lines:
... to
... to use originalContent and changedContent when set, rather than originalContainer and changedContainer.
The text was updated successfully, but these errors were encountered: