You are here: Administrators Reference > Site Administration > Authoring Tools > Rich Text Editor Settings > Rich Text Editor Properties > Paste Options Tab

Paste Options Tab

This tab gives you fine control over:

You can allow or deny the ability to paste formatted, unformatted, or HTML code (plain text is always available). You can also allow or force removal of class and style attributes from pasted content, and allow or force removal of pasted HTML <font> tags.

Use this dialog to set standards for pasted content and simplify text-entry for your contributors.

Note: By default Chrome and Mozilla browsers are configured to disallow cut, copy, and paste operations, as described under Important Notes below. The Rich Text Editor includes options for handling these clipboard security restrictions.

Select the default paste action, then pick from each Default Cleanup Action dropdown to define how CommonSpot should "clean up" output for any Microsoft-specific attributes, css class and style attributes, and font tags contained in the input.

Default Paste Action

Default Cleanup Action

Paste Formatted - Includes all character and layout formatting copied from the content source. Use this to paste all heading and paragraph formatting, as well as character formatting, such as bold, italic, etc.

Non-standard HTML Markup - Controls how non-conforming HTML is handled and which options display to contributors, as described below for MS Office Markup. Contributors see this as a Paste option if you enable either of the last two options.

 

Microsoft Office Markup - Controls how the RTE handles HTML generated from Microsoft-specific input:

  • always remove - Strips all Microsoft attributes from the output.
  • never remove - Maintains all Microsoft formatting attributes in the RTE output. Output source looks like the following:

  • remove by default - Makes "remove" the default, but allows the contributor to override this setting
  • leave by default - Makes "keep" the default, but allows the contributor to override this setting

Paste without Formatting - Excludes all character formatting, but honors line and paragraph breaks when pasted.

class attributes - Controls how the RTE handles HTML generated from css class input:

  • always remove - Strips all css class attributes from the output.
  • never remove - Retains all css class attributes in the RTE output.
  • remove by default - Makes "remove" class attributes the default, but allows the contributor to override this setting
  • leave by default - Makes "keep" class attributes the default, but allows the contributor to override this setting

Paste Code - Renders HTML code with tag delimiter characters < > escaped so they won't be interpreted as HTML by the user's browser. Use this option when you need to represent HTML code within your text.

style attributes - Controls how the RTE handles syles contained in the pasted input:

  • always remove - Strips all styles from the output.
  • never remove - Retains all css style attributes in the RTE output.
  • remove by default - Makes "remove" styles the default, but allows the contributor to override this setting
  • leave by default - Makes "keep" styles the default, but allows the contributor to override this setting

Paste Plain - Removes all character and layout formatting and pastes as plain text.

font tags - Controls how the RTE handles any font tags contained in the pasted input:  

  • always remove - Strips all font controls from the output
  • never remove - Retains font tags in the RTE output.
  • remove by default - Makes "remove" font tags the default, but allows the contributor to override this setting
  • leave by default - Makes "keep" font tags the default, but allows the contributor to override this setting

Paste Options Dialog - Check Invoke the 'Paste Options' dialog when content is pasted into the RTE to show contributors the options shown above for handling the Paste function. CommonSpot applies the Clipboard Security Handling you select when it detects that the browser restricts access to the clipboard. See the description below.

The Paste Plain option is always available. You can control how the other options display, as follows

Editable, On - Displays as an editable checkbox, checked

Editable, Off - Displays as an editable checkbox, unchecked

Non-editable, On - Displays as a read-only checkbox, checked and non-modifiable

Non-Editable, Off - Displays as a read-only checkbox, unchecked and non-modifiable

Clipboard Security Handling - Based on the Cleanup Action, CommonSpot can present an "options" dialog for pasting content into the RTE. This dialog gives users choices on how pasted content should be handled. By default, certain browsers restrict access to the clipboard, which can prevent normal pasting (see Important Notes below).

CommonSpot supports three ways to handle Command/CTRL-V and Paste Toolbar button actions:

Text Replacements - You can use the text field in the Text Replacements section to specify freeform regular expression replacements for all pasted content. On each line, enter a search string and corresponding replacement string, separated by a tilde ~. Searches are case-insensitive and global (all instances found will be replaced). If no replacement string is provided, all instances of the search string are deleted (replaced by nothing). JavaScript regular expression syntax may be used for the search and replacement strings.

Note: Changes to regular expressions execute before options to remove class, style, and fonts. Therefore, if you have a regular expression to change values in all of the style attributes when content is pasted into a text block, and then you check an option to remove style or class attributes, the regular expression changes will not matter because the entire style attribute will be removed.

Important Notes

For the latest on browser support, see http://www.paperthin.com/support/tech-specs.cfm

Note that the latest version of Chrome does not support automatic download and installation of a clipboard helper for cut, copy, and paste operations in CommonSpot. For security reasons Firefox 17 ESR does not include programmatic clipboard access.

 

Related Links


You can download PDF versions of the Content Contributor's, Administrator's, and Elements Reference documents from the support section of paperthin.com (requires login).


For technical support:

http://www.paperthin.com/support/