RE: Toggle text class at end of tag

"Peter Bowman" <[email protected]> Mon, 5 Apr 2004 10:38:19 +0100
Newsgroups gmane.editors.bitflux.devel
Message-ID <000201c41af1$bdd91ea0$6400000a@pete>
Thanks - added to Bugzilla.

I wondered if a workaround might be to add a character to the end of the
selection, then perform the toggle, then remove the added character. =
Since
it always works where the selection isn't adjacent to an end tag, this =
would
at least mean that it would work even if it isn't particularly pretty.

At the moment my future users would be faced with a strange situation =
where
their hard work gets mangled if they don't obey an obscure set of rules
(like "don't select up to the end of  a tag").

Thanks,
Pete.

> -----Original Message-----
> From: Christian Stocker [mailto:[email protected]]=20
> Sent: 03 April 2004 10:31
> To: Peter Bowman
> Cc: [email protected]
> Subject: Re: [bx-editor-dev] Toggle text class at end of tag
>=20
>=20
> Hi
>=20
> On 4/2/04 7:32 PM, Peter Bowman wrote:
> > Hi Christian,
> >=20
> > I'm having an interesting problem with toggling of text=20
> classes where=20
> > the selection is right up to the end of the tag.
> >=20
> > For example, if I have
> >=20
> > <para>Some text</para>
> > <para>Some other text</para>
> >=20
> > and I attempt to make "text" in the first <para> tag bold,=20
> the first=20
> > and second para tags then merge into each other. If I make anything=20
> > bold that doesn't include the last "t" of "text", it works=20
> fine. This=20
> > is repeatable in the inline example - but only on text=20
> typed in since=20
> > the editor was loaded.
>=20
> Yes, the selection stuff on element-"borders" is sometimes tricky...
>=20
> > In my own code, I had table <cell> elements, and if I attempted to=20
> > make the last character of text in the element bold or=20
> whatever, the=20
> > bold tag would end up *outside* the <cell> tag! I.e.=20
> > <b><cell>Text</cell></b>. I guess this could be the same problem as=20
> > above.
>=20
> Yes, could be the same problem.
>=20
> I currently don't have a solution to that problem, it's=20
> really hard, to=20
> do the "right" thing in such situations...
>=20
> Could you please file a bugreport, so that it doesn't get forgotten?
>=20
> chregu
>=20
>=20
> --=20
> christian stocker | Bitflux GmbH | schoeneggstrasse 5 |=20
> ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88=20
> 60  | fax +41 1 240 56 71 http://www.bitflux.ch  | =20
> [email protected]  |  gnupg-keyid 0x5CE1DECB
>=20


-- 
bx-editor-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev