grav-plugin-add-page-by-form icon indicating copy to clipboard operation
grav-plugin-add-page-by-form copied to clipboard

Textarea does not use SimpleMDE when option is enabled

Open MrSoupman opened this issue 1 year ago • 2 comments

Hello, On a fresh install of Grav + Admin Panel, I installed this plugin and made sure the "Use the editor class" is enabled. I then copied the Example 2 YAML in the readme.md to the header of a new page.

After saving and navigating to the newly created form page, I clicked in the textarea but was not shown an editor.

Opening a developer tools I can see that the textarea does have the class "form-input editor long". However, it still does not become a simpleMDE editor.

  • OS: Rocky Linux 8.6/8.8
  • PHP Version: 8.0.27
  • Grav Version: 1.7.43
  • Plugin version: 3.3
  • Using apache

MrSoupman avatar Oct 20 '23 03:10 MrSoupman

This is clearly a bug. It will be fixed in the next release.

In the meantime to get the editor included, you can rename the form into: 'addpage.blogpost' so without the underscore.

bleutzinn avatar Oct 20 '23 12:10 bleutzinn

Thank you for the response! Renaming the form works for now.

MrSoupman avatar Oct 20 '23 21:10 MrSoupman