PublicLab.Editor icon indicating copy to clipboard operation
PublicLab.Editor copied to clipboard

Error preventing posting - related to domador <li>?

Open jywarren opened this issue 7 years ago • 4 comments

When posting some bulleted content copied from this post, into a "new question" at https://publiclab.org/questions/new, I'm seeing this error on hitting "publish":

Uncaught RangeError: Invalid array length
    at many (PublicLab.Editor.js:4333)
    at padLeft (PublicLab.Editor.js:4337)
    at Domador.li (PublicLab.Editor.js:4453)

That's for this line, in Domador:

function many (text, times) {
  return new Array(times + 1).join(text);
}

To reproduce, try pasting the bullet points from the above-linked post and hitting publish; I was able to get it to happen again, but perhaps the exact circumstances are not simple.

jywarren avatar Oct 27 '17 02:10 jywarren

@jywarren What exactly did you copy?

rexagod avatar Feb 01 '19 03:02 rexagod

PUBLISHED to GCI dashboard

SidharthBansal avatar Nov 27 '19 17:11 SidharthBansal

@jywarren I guess your circumstances differ from the "normal" ones. I am unable to reproduce the issue.

VladimirMikulic avatar Dec 15 '19 15:12 VladimirMikulic

@jywarren what's the current status of this issue, are you still able to reproduce it? This is a very old issue and a button has changed to "Ask" instead of "Publish".

VladimirMikulic avatar Jan 11 '20 02:01 VladimirMikulic