Hi..i was wondering whether i can copy/paste text by default into its own para/p tag. Are there any settings for this ? Currently, when i paste text there is no tag (unless pasted in an existing p tag) and the para/p tag has to be added individually. Thanks !
You can specify this in the .dcf file (doctype configuration file), which is located in the same directory as the .dtd file.
The relevant element in the .dcf file is <ElementListItem>, which is within the <InsertAroundToFix> element, which is within the <ContextTransformations> element. You will have to insert any of these elements that are not already present.
Set the element attribute on <ElementListItem> to the name of the tag you want to be automatically inserted when you paste text. For example:
"WYSIWYG is last-century technology!"
A directory for the doctype is probably in Arbortext Editor\custom\doctypes. For example, if your doctype is abc, then the file you want would be Arbortext Editor\custom\doctypes\abc\abc.dcf.
I've attached a screenshot of the folder at my end. Which folder do i go into. I'm unable to see the tags that you mentioned. Also, could you possibly attach a screenshot of the file and include the changes to be made. That would really help me know whether i'm on the right track. Thanks a ton!
It occurs to me there is a better way to find this out.
1. Open your document in Arbortext Editor.
2. Select Help>Session.
3. Open the Document tab.
4. Find Doctype configuration in the first column.
5. The DCF file with full pathname is shown in the second column.
I see InsertAutoWithin and then a Modify Attributes dialog box opens. Could you possibly upload a screenshot of it. Thanks !
I'm putting in the same text, but text dragged outside the para is not yet taking the para tag by default.
Maybe my example was not clear. You need to specify the element(s) you want. It is not clear if it is <p>, <para>, or both. If the DCF has the correct element(s), inserting text and dragging and dropping text will insert the specified tag. If you are still having problems, I suggest you contact technical support.