I have a variable that looks like this:
var simpleText = new Kinetic.Text({
text: 'where text goes',
fontSize: 24
});
How do I insert a line break where the text goes. I've tried:
text: 'where text goes \n where text goes',
text: 'where text goes \n\n where text goes',
text: 'where text goes \r\n where text goes',
text: 'where text goes <br /> where text goes',
text: 'where text goes \n' + 'where text goes \n',
text: 'where text goes ' + 'where text goes ',
text: 'where text goes '
+ 'where text goes ',
text: 'where text goes
where text goes',
Error on my end. \n works
<br />
instead of\n
. Otherwise, your first example should work. – Purity\n
in my work... so the error must be somewhere else. Try to set the breakpoints and dig in – Parham