I am using a workflow in Editorial to generate and preview html code.
In my code, I have a textarea (embedded in two div, if this matters) and I need to get the text of the textarea when the user "clicks" on a specific button.
In the same script, I can successfully use document.getElementById(obj).style.display or document.getElementById(obj).name, so the problem is in "value".
Any hints? Any way to get the textarea content?
I found the problem and in fact document.getElementById(obj).value works as it should.
I am getting an empty result because in the textarea there is markdown code with a leading "#", and everything after the hash is not captured.
Can anyone help with this?
If you are passing this via a uri of some kind, you need to use
To escape the various characters that are special in uRIs.
this has solved the problem.