RTFText, HTMLText, and Formatted Content in RR
Wolfgang M. Bereuter
wmb at internettrainer.com
Fri Jul 18 12:26:01 EDT 2003
On Friday, Jul 18, 2003, at 16:45 Europe/Vienna, Dan Shafer wrote:
> I don't quite know what you mean abou tsetting the textfield to RTF
> *before* you paste the text. Do you "set the rtfText of field 1 to
> 'a'" or some such thing? I think the rtfText of a field can only be
> set by supplying it with a string (which is generally something read
> from a file, I think). Or am I missing something?
>
I
I do it with this script in the Message Box (hehe, its the first time a
used that "animal")
How and why this exactly works I dont know, maybe one of the scripting
Gurus can help out...
Here is the great posting from Vikram, with which I learned to do that.
----
RTF vs HTML
Reply-To: use-revolution at lists.runrev.com
I can't talk of the benefits of exporting rtf as files, but if you are
copy-pasting from other apps this may interest you:
Copy a portion of a webpage. In the message box type:
set the rtftext of fld 1 to clipboarddata["rtf"]
And viceversa, paste into Word after copying the rtftext of a field:
set the clipboarddata["rtf"] to the rtftext of fld 1
etc..
Rgds,
Vikram
-----
copy the rtf (exported) text (from any fileformat you have) to the
clipboard
select any textfield in rev
-- to the message box:
set the rtftext of fld 1 to clipboarddata["rtf"]
Enter
And the formated text is in the textfield
Select "basic properties" in the property palette if it is open
after pasting you can select "contents" to make some fine tuning...)
dont select content before pasting, that does not work here...
means all is in the textfield, but does not appear in the content of
the palette
Why?? -- One of this thousand rev miracles..?
Hope that helps, if not pls tell me.
regards
Wolfgang M. Bereuter
Learn easy with trainingsmaps©
INTERNETTRAINER Wolfgang M. Bereuter
Edelhofg. 17/11, A-1180 Wien, Austria
...............................
http://www.internettrainer.com, wmb at internettrainer.com
...............................
Tel: ++43/1/ 961 0418, Fax: ++43/1/ 479 2539
More information about the use-livecode
mailing list