开发者

tinymce wordpress copy and paste losing http:// prefix

开发者 https://www.devze.com 2023-01-17 00:17 出处:网络
when copying and pasting images in tinymce (in wordpress) the url of the image l开发者_如何学JAVAoses its prefix. is there some way to fix this. I am using wordpress mu 2.9.2 and tinymce advanced.Here

when copying and pasting images in tinymce (in wordpress) the url of the image l开发者_如何学JAVAoses its prefix. is there some way to fix this. I am using wordpress mu 2.9.2 and tinymce advanced.


Here is the solution:

from: http://nerdee.blogspot.com/2009/02/tinymce-relative-path-img-problem.html

TinyMCE relative path IMG problem I've been using TinyMCE as a WYSIWYG editor on my website www.puppages.com. I absolutely LOVE it. There was one issue that was a little frustrating. When someone tried to link back to another page on the site (or an image/document on the site), the TinyMCE code would convert the absolute path into a relative path and the relative path would not work. I was able to fix this by doign some javascript editing.

Here's the solution:

  1. Open the tiny_mce.js file.
  2. Find all references to the function: toRelative(u)
  3. replace with return u
  4. save
0

精彩评论

暂无评论...
验证码 换一张
取 消