Skip to main content
5-Regular Member
December 7, 2018
Question

pasting text into default para /p tag

  • December 7, 2018
  • 1 reply
  • 4290 views

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 !

1 reply

12-Amethyst
December 7, 2018

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!"

5-Regular Member
December 11, 2018

Hi,

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

12-Amethyst
December 11, 2018

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.