Skip to main content
4 events
when toggle format what by license comment
Mar 4, 2021 at 13:32 comment added Mark Grimshaw-Aagaard setItalic – again, in my attempt to be clear, I did note what it was and where it came from (it's a google script method that is the only means to convert text to italic as it is inserted in the document). If I comment out that line where I try to actually use it, the script runs fine. I wouldn't know how to do a stacktrace within the google scripts environment. I will go back and make all these things even clearer.
Mar 4, 2021 at 13:28 comment added Mark Grimshaw-Aagaard Thanks for the quick responses. I spent some time explaining before I posted the snippet what the code was supposed to do and, after the snippet, what I was aiming for (to provide context). The code snippet itself points out where the error is and what the error is. As noted, I assume the error is in the setFunc method assignment of matchArray's object and that's where I need help – I've done something wrong there and I don't know what.
Mar 4, 2021 at 12:38 comment added rene It looks like that setFunc is assigned by setFunc = function() {setItalic(textStart, textEnd, true)}; but we miss setItalic. I assume a stacktrace would also help to verify the right line is indicated where/when the error pops up.
Mar 4, 2021 at 12:32 history answered Cerbrus CC BY-SA 4.0