Skip to main content
Drupal Documentation for SCLS

Main navigation

  • Home
  • How-To Info for Library Staff
  • Drupal 10
  • Help

Breadcrumb

  1. Home
  2. Drupal 10
  3. Content

Removing Formatting from Copied & Pasted Content

On some occasions you may need to copy and paste content from an email, Word document, or another source into a field that uses the CKEditor toolbar. The copied and pasted content can bring formatting with it that may look mismatched with your website's sitewide theme styling. The best way to avoid problems is to remove formatting from copied and pasted content using one of these options:

Paste as plain text button

The CKEditor toolbar "Paste as plain text" button (

Image
Paste as plain text button icon
) displays a tooltip with instructions for the keystrokes to paste without formatting: Press Ctrl+Shift+V. Once pasted, the text will lose all its formatting and you will be able to reformat it using the toolbar options.

Remove Format button

To remove text styling applied to text after it is already pasted into the editing form, select the text fragment and press the "Remove Format" toolbar button (

Image
Remove formatting button icon
). All text styling will be removed and the text will be displayed with the editor's default formatting.

Source code editing

Formatting can also be removed by modifying the HTML tags and inline CSS rules. Click the Source button to view and edit the HTML code.

Book traversal links for Removing Formatting from Copied & Pasted Content

  • Content
  • Up
  • Adding Content (Nodes)
  • Content
    • Removing Formatting from Copied & Pasted Content
    • Adding Content (Nodes)
    • CKEditor 5 Editing Toolbar Changes
    • Changing Authoring information - Drupal 9
    • Editing Existing Content (Nodes) on Your Website
    • Events: Repeating dates
    • Formatting Content
    • Links to Webpages and Files
    • Making content sticky
    • Using Editoria11y
  • Layout Builder
  • Managing Media & Files
  • Media Library
  • Revisions
  • Webforms
  • Webinars

Tags

accordion (1)
account (2)
anchors (1)
blocks (0)
cache (1)
carousel (2)
CKEditor (5)
configuration (1)
content types (1)
CSS (1)
disable rich-text (1)
Drupal 10 (15)
Drupal 9 (16)
email (2)
embed code (1)
Entity Registration (5)
events (6)
file browser (1)
files (4)
files media (1)
folders (1)
formatting (2)
front page (3)
Google Analytics (1)
headings (2)
HTML (1)
iframe (2)
images (4)
imce (1)
Layout Builder (3)
link a pdf (1)
links (5)
login (1)
media (2)
menus (3)
nodes (1)
openid (1)
paste as plain text (1)
paths (4)
performance (1)
photo albums (1)
photo galleries (1)
redirects (3)
registration (5)
remove format (1)
repeat dates (2)
reports (1)
revisions (1)
sidebars (0)
site name (1)
slogan (1)
source (1)
sticky (2)
text formats (1)
themes (1)
toolbar (2)
URL aliases (4)
Webform (2)
widget (1)