newbthenewbd / grav-plugin-tinymce-editor

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

Keeps changing my urls #22

Closed nconroy closed 6 years ago

nconroy commented 6 years ago

I have a folder with subpages and cant get the links working.

Tried using the absolute URL "/folder/page" the url is converted to ../page Tried using the relative path from the folder "page" but it also gets converted to ../page I have added relative_urls=false to the config but it has had no effect

newbthenewbd commented 6 years ago

Have You set the relative_urls parameter under parameters? This is roughly how it should look in tinymce-editor.yaml to get properly interpreted:

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: relative_urls
    value: '0'

Edit: By the way, the links are unfortunately indeed pretty broken right now, as mentioned in #18 and #21. I will probably try to overhaul how they are implemented under the hood soon, but can't promise anything yet.

newbthenewbd commented 6 years ago

Fixed in v1.2.0, URLs aren't converted around by default anymore.