prettydiff icon indicating copy to clipboard operation
prettydiff copied to clipboard

Use prettydiff in the browser

Open bbaret opened this issue 8 years ago • 4 comments

Hi,

I would like to import prettydiff in my app. I followed the instruction to build (README) and those you gave on #482 but I couldn't use it correctly even after importing node_modules/parse-framework/js/browser.js and js/prettydiff.js in my page.

Am I missing something ?

Thank you !

bbaret avatar Nov 20 '18 15:11 bbaret

Try calling Pretty Diff like this:

myResult = window.prettydiff.mode(options);

Let me know if that doesn't work either. Are you getting any errors?

prettydiff avatar Nov 22 '18 16:11 prettydiff

Actually I think I see the problem. I just made a code update. Try this:

myResult = window.prettydiff(options);

prettydiff avatar Nov 22 '18 16:11 prettydiff

I woke up this morning realizing I broke the application with rushed incomplete advice. I am putting together formal documentation to address this matter.

prettydiff avatar Nov 23 '18 04:11 prettydiff

Try this: https://prettydiff.com/thirdparty.html

That should solve this problem. I am wrong and still don't my stuff together please please please reopen this issue and I will continue to work this.

prettydiff avatar Nov 23 '18 07:11 prettydiff