I’ve recently updated my site to 3.7, however, a user has reported a bug with the editor. They are seeing the following (below) when they try to add another text field.
undefined is not an object (evaluating 'this.$store.state.system.info')
Further to this, the rich editing features seem to be lost and the text renders like plain text.
I’ve just come across this issue thread - and it sounds like it might be related.
Still I feel there is some information missing. Are you using a custom block with the markdown field (because you linked to the plugin issues)? Or is this a standard markdown block that comes with the blocks field?
Check if the Editor plugin is installed in /site/plugins/ and if you have a field type editor in your blueprints. The Editor plugin was replaced by the blocks field in Kirby 3.5. You might have missed that if you updated from an earlier version.
I assume you did not create the site if you don’t know that?
Hmm… no Editor plugin and no field type editor in the blueprints…
No, I didn’t create this version of the site - the developer has since moved on. I built the initial site five years ago, so I’m coming back to it a bit rusty…
Ok, thanks, I tested this field now in a 3.8.8.1 Starterkit and it works without issues. Haven’t tested with 3.7 yet. When updating the site to 3.7, did you also update the markdown plugin?
Hm, I can’t tell what happened, they should not be there.
The standard text block in a blocks field uses a writer field internally. When you use this standard text block, content is stored with these p tags.
So the developer who set up this blocks field replaced the original writer field with a markdown field for some reason.
In my test with your setup, however, there are no p tags stored when using the Markdown field.
So you probably either have to remove those p tags again from your content files, or live with them being stored and displaying in the Panel (guess it doesn’t make any difference on the frontend?).
Check if you get any p tags when you create a new page with the updated Markdown field.