In my package PackageMaker.jl , I’m implementing saving/recalling configurations.
The package uses Blink.jl to create GUI. Some of the inputs are intended to take an array of strings, and implemented as multiline textarea
.
On recalling a config, the inputs values are set via JS. However if saved value contained multiple lines (i.e. a String with "\n"
in it), something goes wrong and the corresponding textarea
stays unchanged. If there is just a single line - it will be set as expected.
I’ve tried every reasonable tip from Internet, did it with pure JS and with JQuery - all with the same effect: as soon as there is \n
there, the field is not set.
Opening the same HTML file with Mozilla, and runnung in the console e.g.
jQuery("#GeneralOptions_proj_pkg").val("Pk1\nPk2")
sets the corresponding textarea
contents as expected.
Any ideas?