Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE Removes site base url

Tags:

tinymce

im using TinyMCE Wysiwyg editor, and when i enter a link, or an image from the same website, it removes the base url

for example, if i enter: http://www.domain.com/somelink.php - i'll get - somelink.php

any ideas how to solve it?

thanks!

like image 300
WEBProject Avatar asked Jul 29 '10 06:07

WEBProject


People also ask

How do you hyperlink in TinyMCE?

Add hyperlinks to content. The toolbar button and menu item called link are included in TinyMCE's default configuration. The link menu item can be found in the Insert menu. The link plugin also includes a context menu and context toolbar.

How do you get rid of the menu bar on TinyMCE?

Example: Disabling/removing the menu bar To disable the menu bar, the menubar option should be provided a boolean value of false .

Is TinyMCE API key free?

Running TinyMCE from the cloudGet started with a free API key (with a 14-day trial of our premium plugins) and load the TinyMCE package as follows, replacing no-api-key with your own.


2 Answers

Add this few lines in your tinyMCE.init function :

convert_urls:true,
relative_urls:false,
remove_script_host:false,
like image 192
Epharion Avatar answered Sep 21 '22 10:09

Epharion


(Old thread I know but in case anyone else is googling this:)

I had to set convert_urls to false as well.

I am using TinyMCE within Umbraco, so I needed to make the changes in /config/tinyMceConfig.config and then restart the website.

like image 36
lucyconnuk Avatar answered Sep 19 '22 10:09

lucyconnuk