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 16, 2018

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

5-Regular Member
December 17, 2018

Hi,

 

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