stfalcon / TinymceBundle

Bundle for connecting TinyMCE (WYSIWYG editor) to your Symfony2 project
259 stars 154 forks source link

Disable relative path #183

Closed Eldhelion closed 8 years ago

Eldhelion commented 8 years ago

So, on tinymce, I could use:

to force tinymce use full path for images, I put these on config.yml but keep getting relative path.

I`m using tinymce to create a newsletter that will be sent via email, so I need full path for the images

here is my config

stfalcon_tinymce:
  include_jquery: false
  tinymce_jquery: false
  selector: ".tinymce"
  language: "pt_BR"
  theme:
    simple:
      theme: "modern"
      plugins: [ "anchor link image table  code fullscreen preview textcolor lists" ]
      toolbar: ["undo redo | bold italic | forecolor backcolor | table | link image | alignleft aligncenter alignright | code | fullscreen | preview"]
      statusbar:  false,
      menubar:    false,
      relative_urls: false,
      convert_urls: false,
      width: "349px"

I don't know if my fault or a bug, I didn't saw anything on the documentation of this bundle

LogansUA commented 8 years ago

@Eldhelion Hi. Thanks for issue. I'll check it.

LogansUA commented 8 years ago

@Eldhelion did you see this issue #44? As i see you didn't specify document_base_url

Eldhelion commented 8 years ago

@LogansUA I had not saw it before, gave a look at it now. I have to say that before creating this issue I had put document_base_url, but outside the theme scope

stfalcon_tinymce:
    document_base_url: <url>

and it not worked, but after some time working on other things I realised that I had copy/paste my config from pure tinymce, and so my config.yml still had "," at the end of each parameter, as you can see on my first post on

  statusbar:  false**,**
  menubar:    false**,**
  relative_urls: false**,**
  convert_urls: false**,**

Fixed it, and man, it works o/, thank you very much for the quick response, and sorry for the trouble

LogansUA commented 8 years ago

@Eldhelion oh, yeah now i see :smile:

No problem. Good luck.