cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

pasting text into default para /p tag

Regular Member

pasting text into default para /p tag

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 !

9 REPLIES 9

Re: pasting text into default para /p tag

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:

 

<ContextTransformations>
<InsertAroundToFix>
<ElementListItem element="para"/>

 

HTH!

 

Suzanne Napoleon
www.FOSIexpert.com
"WYSIWYG is last-century technology!"

Re: pasting text into default para /p tag

Hi,

I'm  not able to locate the folder. Could you help me please with the location. Thanks !

Re: pasting text into default para /p tag

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.

 

Re: pasting text into default para /p tag

Hi,

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! 

Re: pasting text into default para /p tag

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.

Re: pasting text into default para /p tag

I see InsertAutoWithin and then a Modify Attributes dialog box opens. Could you possibly upload a screenshot of it. Thanks !

Re: pasting text into default para /p tag

DCF.png

 

Re: pasting text into default para /p tag

Hi,

 

I'm putting in the same text, but text dragged outside the para is not yet taking the para tag by default.

Re: pasting text into default para /p tag

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. 

DCF element circled.png