Vue.filter('striphtml', function (value) {
var div = document.createElement("div");
div.innerHTML = value;
var text = div.textContent || div.innerText || "";
return text;
});
- Added some code to automatically change the
data-gtmaction attribute to download if the href has PDF, XLS, or XLSX in it.
- Basics work really well, but getting asynchronous to work is a bit trickier.
- So it works fine if you want to redirect to a thank you page, but when I try to follow the instructions for asynchronous form submittals, they say to post to the same page, or the home page, however, that always gets a 404 and the form doesn't send through. Tabling this for now.
- Prismic Nuxt
- Finally got the configuration correct and am getting some data, but I over-installed and have some Prismatic preview stuff I don't necessarily need.
- Need to figure out how to get the data I need smoothly.