newbthenewbd / grav-plugin-tinymce-editor

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

404 Uncaught ReferenceError: tinymce is not defined #32

Closed KennethJoris closed 5 years ago

KennethJoris commented 5 years ago

Where does the error take place:

Grav allows you to add extra fields in your site configuration tab: schermafbeelding 2019-02-15 om 09 57 52

To do this your have to make an extra yaml file in 'user -> blueprints -> config -> newfile.yaml' (in the preview this file is called pau.yaml)

schermafbeelding 2019-02-15 om 10 00 29

if you define fields as type: tinymce you get the error Uncaught ReferenceError: tinymce is not defined (next: Preview of the defined fields. Last field is defined as tinymce)

schermafbeelding 2019-02-15 om 10 06 37

(next: Preview of how the tinymce field renders in admin) schermafbeelding 2019-02-15 om 10 12 28

What did i already try

(Preview installed plugins and versions:) schermafbeelding 2019-02-15 om 10 22 08

newbthenewbd commented 5 years ago

I suppose that's how prematurely optimizing the plugin to load TinyMCE only when pages are being edited ends... :upside_down_face:

Fixed in v1.2.6, hopefully. Thanks for reporting!