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 Now have ability to style individual thoughts with CSS style sheets with 66 viewings related by tag "rte".
  2. Thought Getting a new emoticon at fastblogit with 36 viewings related by tag "icons".
  3. Thought We can enter unicode into fastblogit ! with 30 viewings related by tag "bug".
  4. Thought Footer problem on individual page at speaktomecatalog.com with 19 viewings related by tag "programming".
  5. Thought Fixing the "unfixable" bugs in CKEditor with 5 viewings related by tag "rte".
  6. Thought The CSS font-size statement does not work on the MacAir in Chrome with 4 viewings related by tag "bug".
  7. Thought about: Writely - The Web Word Processor with 3 viewings related by tag "rte".
  8. Thought about: oreilly.com -- Online Catalog: What Are Syndication Feeds, First Edition with 2 viewings related by tag "icons".
  9. Thought Invisible characters found in editor output. with 2 viewings related by tag "rte".
  10. Thought test of tags with blank in front of word with 2 viewings related by tag "bug".
  11. Thought Local Fitnesse Wiki with 2 viewings related by tag "bug".
  12. Thought rte symbols used on gmail with 1 viewings related by tag "rte".
  13. Thought about: try ruby! (in your browser) with 1 viewings related by tag "programming".
  14. Thought SQL for selecting triples inside of one field. with 1 viewings related by tag "programming".
  15. Thought Who are the Racists Here? with 1 viewings related by tag "bug".
  16. Thought A Gremlin on your items ? with 1 viewings related by tag "bug".
  17. Thought some thoughts on trans domain data transfer with 1 viewings related by tag "programming".
  18. Thought about: Microsoft Team RSS Blog : Icons: still orange with 1 viewings related by tag "icons".
  19. Thought a good place to satisfy question~answer with 0 viewings related by tag "programming".
  20. Thought about: Micro Persuasion: Blog Directly from Firefox with 0 viewings related by tag "rte".
  21. Thought Please report grammar problems with references on this link with 0 viewings related by tag "bug".
  22. Thought Reference validation has holes in it with 0 viewings related by tag "bug".
  23. Thought sources of php code with 0 viewings related by tag "programming".
  24. Thought about: Then each went to his own home with 0 viewings related by tag "programming".
  25. Thought Please FIx with 0 viewings related by tag "bug".
  26. Thought [title (785)] with 0 viewings related by tag "bug".
  27. Thought Is this a bug? with 0 viewings related by tag "bug".
  28. Thought Are all the tags in FastBlogIt in the taglist on the left of the display? with 0 viewings related by tag "bug".
  29. Thought collecting facts for feeds best practices manual with 0 viewings related by tag "bug".
  30. Thought Announcement: [google x] as a wiki reference with 0 viewings related by tag "bug".
  31. Thought sql explained for group tagroom with 0 viewings related by tag "programming".
  32. Thought How come Winnies does not have one of these? with 0 viewings related by tag "rte".
  33. Thought related tags with 0 viewings related by tag "programming".
  34. Thought dynamic cartoons with 0 viewings related by tag "bug".
  35. Thought deactivate HTML in comments - or how and where to escape with 0 viewings related by tag "programming".
  36. Thought RTE nastiness with 0 viewings related by tag "rte".
  37. Thought propogate logic from front door to rooms and refactor with 0 viewings related by tag "programming".
  38. Thought rte for item needs convenient exit for consistency with 0 viewings related by tag "rte".
  39. Thought Difficult project of correlating inserted in-line styles in RTE and then removing all styles and scripts with 0 viewings related by tag "rte".
  40. Thought Ok ... so we can do rich text editing ... with 0 viewings related by tag "rte".
  41. Thought this is what we are trying to prtect the rte box against with 0 viewings related by tag "rte".
  42. Thought test with 0 viewings related by tag "rte".
  43. Thought Does Color Work ? with 0 viewings related by tag "rte".
  44. Thought bad url removes RTE contents with 0 viewings related by tag "bug".
  45. Thought Test image with 0 viewings related by tag "rte".
  46. Thought Square brackets and rte with 0 viewings related by tag "rte".
  47. Thought we have two variations of permalink uri floating around with 0 viewings related by tag "bug".
  48. Thought ok here is the sizing algorithm that will go into testing with 0 viewings related by tag "programming".
  49. Thought about: Better Living Through Software - Who's the Master? with 0 viewings related by tag "bug".
  50. Thought Promotions in the Speak To Me Catalog Shopping Basket with 0 viewings related by tag "programming".