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
Tue, 02/14/2006 - 01:10
#1
nelwa
Joined:
14/02/2006
Posts:
7
<p> rather than <div>
http://www.nellen.co.za
http://www.overnight.co.za
Sun, 02/19/2006 - 23:47
#2
nelwa
Joined:
14/02/2006
Posts:
7
RE: <p> rather than <div>
http://www.nellen.co.za
http://www.overnight.co.za
Mon, 02/20/2006 - 01:28
#3
saul11
Joined:
19/06/2006
Posts:
633
RE: <p> rather than <div>
You could go and replace your divs with ps using regex, whener you view the source or export the code:
var newStr = "<div attribute='test'><div>divcontent ..a. .. <p>a.a.a</p>..a.a.a .a.</div></div>";
alert(newStr.replace(/<\/?div([^>]*)>/ig, "<p$1>"));
But maybe there's a config option for letting the editor work with ps instead of divs...
Twitter
Facebook
Facebook
Instagram
Medium
Linkedin
GitHub
Arrow down
Phone
Menu
Close icon
Check
RE: <p> rather than <div>
http://www.nellen.co.za
http://www.overnight.co.za
RE: <p> rather than <div>
var newStr = "<div attribute='test'><div>divcontent ..a. .. <p>a.a.a</p>..a.a.a .a.</div></div>";
alert(newStr.replace(/<\/?div([^>]*)>/ig, "<p$1>"));
But maybe there's a config option for letting the editor work with ps instead of divs...