Home > Archive > Programming with dBASE > December 2005 > Html tags in editor









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Html tags in editor
Ruud van den Bosch

2005-12-12, 11:23 am

I've imported an file from another program. All the memo fields are imported
as well and when I look in the memofield
spaces, blank lines and

breaks in

lines are shown (like you see here) but there is no formatting in the file.

When I now change the memo field in the editor (for example making some text
Bold) the formating is added on the spot and everything goes fine. However
when I automaticly add the memo fields with some html text like

m_text="<p><b>Info</b></p>'+m_ref.fields["text"].value

it goes wrong there al the original text is placed without breaks or
line-ends. How can I force the formatting to be added ??

Kind Regards

Ruud van den Bosch
Derckx Weert BV


*Lysander*

2005-12-12, 11:23 am

In article <13iiEIz$FHA.1232@news-server>, ruud@derckx.nl says...

> it goes wrong there al the original text is placed without breaks or=20
> line-ends. How can I force the formatting to be added ??


check the value of the "evaltags"-property of your editor-objects.

keep in mind, that the editor-class only supports a part of HTML, and=20
not the full set of tags according to HTML 4


--=20
ciao,
Andr=E9
Ruud van den Bosch

2005-12-12, 11:23 am

That's the problem

There are no tags in the files but nevertheless the cr/lf are correct.

But when I copy a memo field which has HTML tags in it and the memo field
without the tags but with the correct cr/lf the cr/lf of the second
memofield will disapear which is not the meaning

Ruud



"*Lysander*" <nobody@nowhere.com> schreef in bericht
news:MPG. 1e07b915d60afc199899
8c@news.dbase.com...
In article <13iiEIz$FHA.1232@news-server>, ruud@derckx.nl says...

> it goes wrong there al the original text is placed without breaks or
> line-ends. How can I force the formatting to be added ??


check the value of the "evaltags"-property of your editor-objects.

keep in mind, that the editor-class only supports a part of HTML, and
not the full set of tags according to HTML 4


--
ciao,
André


*Lysander*

2005-12-12, 11:23 am

In article <HU7GnXz$FHA.1232@news-server>, ruud@derckx.nl says...

> But when I copy a memo field which has HTML tags in it and the memo=20

field=20
> without the tags but with the correct cr/lf the cr/lf of the second=20
> memofield will disapear which is not the meaning


I hope, that I understand correctly.
You are copying data from an external file into a memofield, and=20
everything is correct.

Then you copy the data from memofield_a to memofield_b and the cr/lf is=20
vanished?

For this, I would not have any explanation. But I am not soooo much=20
using HTML-tags in memofields, so maybe someone else can jump in with a=20
good solution.
=20

--=20
ciao,
Andr=E9
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com