fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
162 stars 14 forks source link

TypeError: Cannot read property 'split' of null #81

Closed helllicht closed 5 years ago

helllicht commented 5 years ago

Since updating Kirby to 3.2.x (3.2.3 in our case) the panel is showing the following error when switching pages (e.g. with right/left arrows) from pages that use the markdown field.

Here's the error: Cannot read property 'split' of null It also shows up as a warning in the console.

We're not quite sure if it's really an issue with the plugin or rather something that changed in the panel that now causes the error in combination with the plugin.

LeBenLeBen commented 5 years ago

I confirm I have this issue as well with Kirby 3.2.3. The issue comes from this specific line:

return e.split(/\r\n?|\n/)

Where e is undefined.

Possible duplicate of #75

sylvainjule commented 5 years ago

I cannot reproduce anymore in both Kirby 3.2.5 and 3.3.0-RC4, therefore I'm closing the ticket. If it still happens for you please mention it and I'll reopen.