thought

....if you drag an icon from the rte box, you are not dragging an image, you are dragging the whole functional button. 

Here is the html that you insert into the box:

<img width="30" height="30" onclick="addemotlet('rte1', '../emotlets/razberry%20blue/happy.gif')" title="Happy" alt="happy" src="https://fastblogit.com/emotlets/razberry%20blue/happy.gif" class="XrteImage" />

Note that that the image is not the normal src="url".   This is why my routine that tries to make absolute addresses from relative ones does not work. 

hmmm ... why don't i just write the links as absolute to begin with ?

because somewhere in the javascript it just gets relativized again

so does this mean that i need to generalize my absoluting routine to look inside the construct
"addemotlet('rte1', '../emotlets/razberry%20blue/happy.gif')"  ???

In any case this needs to be fixed in common.php
function BoxToDb($s) {
    global $host;
    # Make rte relative URI absolute
    # change src="https://fastblogit.com/  to  $host
    $o =preg_replace('@src=..\.\./@', 'src="'.$host, $s);
    $text =preg_replace('@href=..\.\./@', 'href="'.$host, $o);
    $text = removeEvilTags($text);
    # can we get it through the sql by changing single quotes to &#39; ??
    $text=str_replace("'","&#39;",$text);
    return $text;
}
just find what other patterns need to be scanned for.

Tags

  1. programming
  2. rte
  3. bug
  4. icons
  5. boxtodb

Comments


louis vuitton sale says
we were most definitely peaceful, happy, loving ... content.

See Also

  1. Thought We can enter unicode into fastblogit ! with 127 viewings related by tag "bug".
  2. Thought Getting a new emoticon at fastblogit with 71 viewings related by tag "icons".
  3. Thought Now have ability to style individual thoughts with CSS style sheets with 66 viewings related by tag "rte".
  4. Thought Footer problem on individual page at speaktomecatalog.com with 19 viewings related by tag "programming".
  5. Thought about: oreilly.com -- Online Catalog: What Are Syndication Feeds, First Edition with 14 viewings related by tag "icons".
  6. Thought Promotions in the Speak To Me Catalog Shopping Basket with 8 viewings related by tag "programming".
  7. Thought Invisible characters found in editor output. with 8 viewings related by tag "rte".
  8. Thought Fixing the "unfixable" bugs in CKEditor with 8 viewings related by tag "rte".
  9. Thought Local Fitnesse Wiki with 8 viewings related by tag "bug".
  10. Thought about: Microsoft Team RSS Blog : Icons: still orange with 7 viewings related by tag "icons".
  11. Thought Test of the Opera Browser with 6 viewings related by tag "rte".
  12. Thought RTE Matrix with 6 viewings related by tag "rte".
  13. Thought is tag navigation working better now ? with 6 viewings related by tag "bug".
  14. Thought The Rest Of The Story with 6 viewings related by tag "icons".
  15. Thought buggy queue with 6 viewings related by tag "bug".
  16. Thought calculation of offset in tag rooms fails at end of room with 6 viewings related by tag "bug".
  17. Thought dynamic cartoons with 5 viewings related by tag "bug".
  18. Thought Difficult project of correlating inserted in-line styles in RTE and then removing all styles and scripts with 5 viewings related by tag "rte".
  19. Thought JavaScript based HTML editor with 5 viewings related by tag "rte".
  20. Thought icons with 5 viewings related by tag "icons".
  21. Thought The CSS font-size statement does not work on the MacAir in Chrome with 5 viewings related by tag "bug".
  22. Thought Nugget & bug with 5 viewings related by tag "bug".
  23. Thought Announcement: [google x] as a wiki reference with 4 viewings related by tag "bug".
  24. Thought Pride an Glory in Your Code with 4 viewings related by tag "programming".
  25. Thought Checking out the word Watch with 4 viewings related by tag "rte".
  26. Thought Tags I like with 4 viewings related by tag "bug".
  27. Thought SQL for selecting triples inside of one field. with 4 viewings related by tag "programming".
  28. Thought Flashing Chat Room with 4 viewings related by tag "bug".
  29. Thought Who are the Racists Here? with 4 viewings related by tag "bug".
  30. Thought Are all the tags in FastBlogIt in the taglist on the left of the display? with 3 viewings related by tag "bug".
  31. Thought propogate logic from front door to rooms and refactor with 3 viewings related by tag "programming".
  32. Thought test with 3 viewings related by tag "bug".
  33. Thought How can i deactivate paste in a rich text edit box ? with 3 viewings related by tag "bug".
  34. Thought Had problem explaining RTE vs cartoon way to get pictures with 3 viewings related by tag "bug".
  35. Thought about: Writely - The Web Word Processor with 3 viewings related by tag "rte".
  36. Thought Pictures with 3 viewings related by tag "bug".
  37. Thought about: Better Living Through Software - Who's the Master? with 2 viewings related by tag "bug".
  38. Thought Advanced RTE doesn't seem to have sound with 2 viewings related by tag "rte".
  39. Thought the rte box should be exactly as wide as the item display with 2 viewings related by tag "bug".
  40. Thought test of tags with blank in front of word with 2 viewings related by tag "bug".
  41. Thought about: Then each went to his own home with 1 viewings related by tag "programming".
  42. Thought [title (785)] with 1 viewings related by tag "bug".
  43. Thought rte symbols used on gmail with 1 viewings related by tag "rte".
  44. Thought about: try ruby! (in your browser) with 1 viewings related by tag "programming".
  45. Thought many useful php routines with 1 viewings related by tag "programming".
  46. Thought unzip for install.php with 1 viewings related by tag "programming".
  47. Thought A Gremlin on your items ? with 1 viewings related by tag "bug".
  48. Thought some thoughts on trans domain data transfer with 1 viewings related by tag "programming".
  49. Thought a good place to satisfy question~answer with 0 viewings related by tag "programming".
  50. Thought about: Micro Persuasion: Blog Directly from Firefox with 0 viewings related by tag "rte".