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 !

5-Regular Member
December 14, 2018

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!