Loading ...

Tiny MCE: URL problem in content

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » Tiny MCE: URL problem in content

Tiny MCE: URL problem in content

Posts under the topic: Tiny MCE: URL problem in content

Posted: 12/9/2010

Lurker 115  points  Lurker
  • Joined on: 10/11/2010
  • Posts: 15

Dear Friends,

 

While save the content of TinyMCE into the SQL Server database, the full URL of the image was not saved.

It was saved as logo/mylogo.jpg instead of http://www.mysite.com/logo/mylogo.jpg

The image link was broken while send the content using html email.


Suresh


Posted: 12/11/2010

Lurker 115  points  Lurker
  • Joined on: 10/11/2010
  • Posts: 15
  Answered

Hai,

I found the solution myself through the web search.

        // add these two lines for absolute urls
        remove_script_host : false,
        convert_urls : false,

Suresh


Posted: 12/12/2010

Professional 8505  points  Professional
  • Joined on: 5/3/2010
  • Posts: 391

vagaisuresh said:

user="suresh v"]

Hai,

I found the solution myself through the web search.

 

        // add these two lines for absolute urls
        remove_script_host : false,
        convert_urls : false,


Suresh

These properties are specific to the plugin I think.

However, you can also concatenate the string to your logo/mylog.jpg path.

You can easily get the current page or website url using Page.Request.Url and it's properties, like Page.Request.Url.Authority or Page.Request.Url.DnsSafeHost or AbsoluteUri etc.

On the other hand, on client side you can get the page host using JavaScript window.location.host

Anyway, this is just an additional suggestion :). You can freely use the solution you already have since you won't need of any additional coding ;).

Regards,
Hajan

 


Page 1 of 1 (3 items)