Set the imagesource of a character to a built in graphic

Richard Gaskin ambassador at fourthworld.com
Mon Jun 26 13:08:39 EDT 2017


Mark Waddingham wrote:

 > There's a form of replace which preserves styling in fields these days
 > (an FE we ran quite a while ago) - take a look at the replace entry in
 > the dictionary.

It works seemingly well, even with chunk expressions, e.g.:

   replace "i" with "X" in line 1 of fld 1 preserving styles

But I found it also does something very weird:  in my test the 
imageSource was applied to the first "i" in the field, and after the 
replace command there was now an "X" immediately before the rendered image.

So while it was good to see the image still rendered, if the "i" was now 
replaced with "X" and the "X" is visible, what is the imageSource 
attached to?

It seems it's attached to nothing.  Getting the htmlText of the field 
after the replace command shows no <img> tag at all.

Reported, with sample stack:
http://quality.livecode.com/show_bug.cgi?id=19956

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list