After search a way to do this I only found this (not tested) that people
says works

http://stackoverflow.com/questions/15553280/replace-a-textnode-with-html-text-in-javascript

but this depends on linking js script.

* What do you think about this?
* License is MIT what is seems to conform to apache 2 license (so this is
not a problem)
* To use this in HTML.js TextNode.as component I'm doing what should I do ?
a extern? Could you give some guidance on how to do it?

I mean somthing like guide steps I think would be:

1.- copy the linking library to flex-typedefs?
2.- make a file XXX (could be based on YYY)
...




2016-12-14 1:38 GMT+01:00 Alex Harui <[email protected]>:

>
>
> On 12/13/16, 4:15 PM, "[email protected] on behalf of Carlos Rovira"
> <[email protected] on behalf of [email protected]>
> wrote:
>
> >Hi Alex,
> >
> >I remember I tried this approach some time ago and it didn't work, maybe
> >it
> >was since I was returning Text and not a WrappedHTMLElement.
> >Now it compiles and work in example but I have a new problem. It seems a
> >TextNode is always a leaf and can't have html tags for that reason the
> >text
> >in a running example is:
> >
> >Lorem ipsum dolor sit <b>amet</b>, consectetur <i>adipiscing elit</i>.
> >Mauris sagittis pellentesque lacus eleifend lacinia...
> >
> >I'm trying to see how to solve this problem
>
> Yes, I think that Text is plain text.  In your proposed content, you are
> really specifying
>
> <Text>Lorem ipsum dolor sit</Text>
> <b>âmet</b>
> <Text>, consectetur</Text>
> <i>adipiscing elit</i>
> <Text>Mauris sagittis pellentesque lacus eleifend lacinia...</Text>
>
> The issue may be that there are multiple ways to specify and operate on
> innerHTML.  If you want to set it directly, then you shouldn't be able to
> specify any other children.  Hence my earlier suggestion to have a
> DivWithInnerHTML component that doesn't subclass Container and only has an
> innerHTML property.
>
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Reply via email to