Morley:
My solution has an RTF area field for preparing letters. Works well.
Now I’d like to enable the user to insert a page break within the text. The RTF code is “\page”. How does one do this?
Typing “\page” to the text stream simply adds an escaped sequence – \page.
Does this call for a plug-in or is there a means I’m unaware of?
I posted a tip on Servoymagazine a few weeks ago about using (calculated) returns in RTF fields. In which I explain how I found how to make this work.
In short. Try to add a \n behind the RTF code.
I should have expressed myself more clearly. I’m looking to give the user a means to insert the RTF code```
\page
The problem is how to identify where that cursor currently is. Once that location is known, inserting the proper code shouldn't be an issue. It's my suspicion this calls for a plug-in which lets the user key "control-enter" or "command-enter", depending on platform, which then inserts the proper RTF code at that location.
By the way, MS Word or Apple's TextEdit apps are good ways to generate RTF code to learn what it is. Then open the resulting file with a tool such as BBEdit, which ignores RTF code and simply renders it.
Marcel Trapman is absolutely right about the necessity of a word space after RTF's \codes, in order for them to be interpreted.