newbthenewbd / grav-plugin-tinymce-editor

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

Error: Required jwt token provider not defined. (0) #48

Closed josecarvalhoSigned closed 3 years ago

josecarvalhoSigned commented 4 years ago

Hi, when i upload an image i get this error.

image

I know it has something to do with JWT authentication to ensure the security of my images, and from what I read I have to insert a token generated in my Tiny Cloud account somewhere, I just don't know where. Can you help me?

newbthenewbd commented 4 years ago

You can add the JWT token provider URL to the parameters in user/config/plugins/tinymce-editor.yaml (if it doesn't exist, copy the tinymce-editor.yaml from user/plugins/tinymce-editor/tinymce-editor.yaml there first), like this:

parameters:
  -
    name: fontsize_formats
    value: '6pt 7pt 8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 18pt 20pt 22pt 24pt 26pt 28pt 32pt 36pt 40pt 44pt 48pt 54pt 60pt 66pt 72pt 80pt 88pt 96pt'
  -
    name: paste_data_images
    value: '1'
  -
    name: tinydrive_token_provider
    value: 'you-know-better-what-to-put-here'
newbthenewbd commented 3 years ago

Closing due to inactivity.