newbthenewbd / grav-plugin-tinymce-editor

TinyMCE Editor Integration Plugin for Grav
Other
60 stars 10 forks source link

TinyMCE not displayed on new page #56

Open beejay41 opened 3 years ago

beejay41 commented 3 years ago

When flex objects plugin is enabled and folder Pages is also enabled, the default editor is displayed on new pages. Once saved, TinyMCE appears as expected. With folder Pages disabled in Flex objects, TinyMCE appears for new pages.

Grav: 1.7.7 Admin: 1.10.6 Flex objects: 1.0.3 TinyMCE: 1.3.3

mnutze commented 3 years ago

workaround override in file {root}/system/blueprints/pages/default.yaml key form.fields.tabs.fields.content.fields.content with

type: tinymce
validate:
  type: textarea

instead of

type: markdown
validate:
  type: textarea

solves problem ... til next grav update

beejay41 commented 3 years ago

I added the following code to tinymce-editor.php: public $features = [ 'blueprints' => 1000, ]; as per Cookbook > Admin Recipes 3.

This appears to solve the problem.

dryland404 commented 10 months ago

Cookbook > Admin Recipes 3.

can you link to this page please > What cookbook ?

beejay41 commented 10 months ago

Cookbook > Admin Recipes 3.

can you link to this page please > What cookbook ?

The Grav website documentation: [https://learn.getgrav.org/17/cookbook/admin-recipes#add-a-custom-yaml-file]()