Main navigation
Product navigation
Main content
CKEditor 4
Overview
Demo
Accessibility Checker
Add-ons
Documentation
Download
Pricing
More
Home
WYSIWYG Editors
CKEditor 4
CKEditor 5
Image upload
CKFinder
Easy Image
Collaboration
Comments
New
Track changes
New
Collaborative editing
Pricing
Case studies
New
Documentation
Help center
Blog
Contact us
The forum operates in
read-only
mode. Please head to
StackOverflow
for support.
Forums
CKEditor
CKEditor
Last post
Mon, 01/18/2010 - 13:32
#1
jaygridley
Joined:
07/12/2009
Posts:
15
Automatically remove formatting
Is possible to automatically remove formating when pasting text from clipboard (from Word, HTML)?
Still no response? Nobody knows?
Wed, 02/03/2010 - 22:47
#2
sbsnet
Joined:
27/10/2009
Posts:
9
Re: Automatically remove formatting
These may help:
CKEDITOR.config.forcePasteAsPlainText = true
CKEDITOR.config.pasteFromWordRemoveStyles = true
CKEDITOR.config.pasteFromWordRemoveFontStyles = true
I'm actually looking for something that allows ONLY SOME html tags to be retsined and strip out the rest... have not found that yet.
Fri, 06/24/2011 - 04:16
#3
pgteam
Joined:
13/09/2010
Posts:
84
Re: Automatically remove formatting
make a function yourself to remove undesired tag
and then put it into the paste event's html field
Twitter
Facebook
Facebook
Instagram
Medium
Linkedin
GitHub
Arrow down
Phone
Menu
Close icon
Check
Re: Automatically remove formatting
CKEDITOR.config.forcePasteAsPlainText = true
CKEDITOR.config.pasteFromWordRemoveStyles = true
CKEDITOR.config.pasteFromWordRemoveFontStyles = true
I'm actually looking for something that allows ONLY SOME html tags to be retsined and strip out the rest... have not found that yet.
Re: Automatically remove formatting
and then put it into the paste event's html field