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
Support
Last post
Mon, 03/07/2005 - 15:36
#1
oli1234
Joined:
25/10/2004
Posts:
1
Pasting from word creates <DIV> tags
Is it possible when pasting from word to change the html created to format the text with <p> tags rather than <DIV> tags
Tue, 10/26/2004 - 00:17
#2
cyberturd
Joined:
26/11/2004
Posts:
13
RE: Pasting from word creates <DIV> tags
in js/fck_actions.js - you could try fiddling with function cleanAndPaste(html) since this replaces <p> tags with <divs>. (perhaps just comment this line out and see what you end up with)
Mon, 03/07/2005 - 15:36
#3
ridbc
Joined:
07/03/2005
Posts:
1
RE: Pasting from word creates <DIV> tags
Version 2.0 RC3: In files fckeditorcode_ie_2.js and fckeditorcode_geck_2.js (in the /js/ folder), remove the line:
html=html.replace(re,"<div$2</div>");
That does the trick.
Twitter
Facebook
Facebook
Instagram
Medium
Linkedin
GitHub
Arrow down
Phone
Menu
Close icon
Check
RE: Pasting from word creates <DIV> tags
RE: Pasting from word creates <DIV> tags
html=html.replace(re,"<div$2</div>");
That does the trick.