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
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to