This is a tutorial on the rte software

About: DevGuru Tutorials

The is the rte edit box javascript that is relativitizing our images thereby breaking them in permalinks.  Am needing go delve deep into that code. funzy, huh ...

Tags

  1. rte
  2. programming
  3. tutorieals
  4. tutorials

Comments


Seth says
Note that images form the web are spared the relativising

Seth says
Here "relativising" refers to changing a HTML reference like src="https://fastblogit.com/media/__1126557725.jpg" into src="../media/__1126557725.jpg" ... the latter malfucntions from a page that is not the root ... hense our problem.

Seth says
The prob is that upload.php sends a good absolute reference, but richtext.js relativises it. Where that happens in richtext.js is not easy to find.

Seth says
here is an example of a manfunctioning relativized image permalink for item 921 .. note that when displaying that page, the reference to the image becomes src=http://fastblogit.com/aaaads/item/media/__1126557725.jpg ... but the media directory is obviously not under ...aaaads/item/

Seth says
Note also that hyperlinks back to this domain are also being relativised. A case in point is the one in the item above. Now what code in richtext.js is shared by both upload image and insert hyperlink but not ececuited on image from the web ?

Seth says
... err ... i was almost expecting the assembeled multitudes to just answer that question ... after all i have pointed to richtext.js a number of times .. and in case you missed it here it is again

unknown says
Is there a way to alter your schema of directories so that it will work? I am not a js expert & would begin an investigation late into this arena

Seth says
... no, altering the virtual directories would be fighting a loosing battle. The solution is to find where the javascript is altering the references and stop it from doing that.

Seth says
Problem was that oRTE.document.execCommand('insertHTML', false, html); in richtext.js relativises links to the local server. There does not appear to be any way to stop it. Nore do i know of a work around that is sufficiently browser compatable. So the only solution was to look for ../ and replace it with http://fastblogit.com/ ... ugg

unknown says









seth 2005-09-13 07:26:07 925
Note that images form the web are spared the relativising


See Also

  1. Thought Now have ability to style individual thoughts with CSS style sheets with 66 viewings related by tag "rte".
  2. Thought Footer problem on individual page at speaktomecatalog.com with 19 viewings related by tag "programming".
  3. Thought Promotions in the Speak To Me Catalog Shopping Basket with 7 viewings related by tag "programming".
  4. Thought Fixing the "unfixable" bugs in CKEditor with 7 viewings related by tag "rte".
  5. Thought Invisible characters found in editor output. with 6 viewings related by tag "rte".
  6. Thought is tag navigation working better now ? with 4 viewings related by tag "rte".
  7. Thought Test of the Opera Browser with 3 viewings related by tag "rte".
  8. Thought RTE Matrix with 3 viewings related by tag "rte".
  9. Thought icons with 3 viewings related by tag "rte".
  10. Thought about: Writely - The Web Word Processor with 3 viewings related by tag "rte".
  11. Thought SQL for selecting triples inside of one field. with 3 viewings related by tag "programming".
  12. Thought propogate logic from front door to rooms and refactor with 2 viewings related by tag "programming".
  13. Thought Difficult project of correlating inserted in-line styles in RTE and then removing all styles and scripts with 2 viewings related by tag "rte".
  14. Thought Pride an Glory in Your Code with 2 viewings related by tag "programming".
  15. Thought about: Then each went to his own home with 1 viewings related by tag "programming".
  16. Thought rte symbols used on gmail with 1 viewings related by tag "rte".
  17. Thought How can i deactivate paste in a rich text edit box ? with 1 viewings related by tag "rte".
  18. Thought the rte box should be exactly as wide as the item display with 1 viewings related by tag "rte".
  19. Thought about: try ruby! (in your browser) with 1 viewings related by tag "programming".
  20. Thought Checking out the word Watch with 1 viewings related by tag "rte".
  21. Thought many useful php routines with 1 viewings related by tag "programming".
  22. Thought unzip for install.php with 1 viewings related by tag "programming".
  23. Thought some thoughts on trans domain data transfer with 1 viewings related by tag "programming".
  24. Thought a good place to satisfy question~answer with 0 viewings related by tag "programming".
  25. Thought about: Micro Persuasion: Blog Directly from Firefox with 0 viewings related by tag "rte".
  26. Thought sources of php code with 0 viewings related by tag "programming".
  27. Thought about: how to fry herbs by kelly boyer with 0 viewings related by tag "tutorials".
  28. Thought sql explained for group tagroom with 0 viewings related by tag "programming".
  29. Thought How come Winnies does not have one of these? with 0 viewings related by tag "rte".
  30. Thought related tags with 0 viewings related by tag "programming".
  31. Thought deactivate HTML in comments - or how and where to escape with 0 viewings related by tag "programming".
  32. Thought RTE nastiness with 0 viewings related by tag "rte".
  33. Thought rte for item needs convenient exit for consistency with 0 viewings related by tag "rte".
  34. Thought Ok ... so we can do rich text editing ... with 0 viewings related by tag "rte".
  35. Thought this is what we are trying to prtect the rte box against with 0 viewings related by tag "rte".
  36. Thought test with 0 viewings related by tag "rte".
  37. Thought Does Color Work ? with 0 viewings related by tag "rte".
  38. Thought bad url removes RTE contents with 0 viewings related by tag "rte".
  39. Thought Test image with 0 viewings related by tag "rte".
  40. Thought Square brackets and rte with 0 viewings related by tag "rte".
  41. Thought we have two variations of permalink uri floating around with 0 viewings related by tag "rte".
  42. Thought ok here is the sizing algorithm that will go into testing with 0 viewings related by tag "programming".
  43. Thought rte (rich text editor) package deployed by fastblogit.com with 0 viewings related by tag "rte".
  44. Thought test with 0 viewings related by tag "rte".
  45. Thought Test - I lost bold comments on a specific [item 1460] with 0 viewings related by tag "rte".
  46. Thought Advanced RTE doesn't seem to have sound with 0 viewings related by tag "rte".
  47. Thought right mouse click menu should have a paste option for the RTE with 0 viewings related by tag "rte".
  48. Thought I declare victory over RTE !!!!!!! with 0 viewings related by tag "rte".
  49. Thought Pasting Google in blogspot 's RTE box with 0 viewings related by tag "rte".
  50. Thought another rte with 0 viewings related by tag "rte".