Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Paste content creates div tags, and not p tags.
Paste content creates div tags, and not p tags.
Comments
Comment #1
jcisio CreditAttribution: jcisio commentedWYSIWYG profile? Are you using CKEditor or WYSIWYG module?
Comment #2
Phil_oo CreditAttribution: Phil_oo commentedMaybe you have already solved this issue, but this solution could help somebody else :
If you are using WYSIWYG module, you have copied CKEditor files in the /sites/all/libraries/ folder.
You just have to update the config.js file:
More info here : http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.enterMode
Comment #3
kabarca CreditAttribution: kabarca commentedProbably you already solved the problem but in case it happens to someone else, there's an settings page for CKEditor which allows you to configure this kind of automated and sometimes annoying behaviors. Get to the page below and then click on "CLEANUP AND OUTPUT".
...com/admin/config/content/ckeditor/edit/basic
Comment #4
omvaishnav CreditAttribution: omvaishnav commentedHi all,
Thanks for your reply!
Sorry that I couldn't check my messages again in these months as I had very busy schedule.
Now I want to tell you that this problem comes when I copy text from notepad file. When copy text from anywhere ckeditor auto add
. So can anyone help me to figure out this issue?
I am not using CKeditor module. I am using CKeditor library with Wysiwyg module, IMCE module and IMCE Wysiwyg bridge module.
@kabarca: I didn't not find this path ...com/admin/config/content/ckeditor/edit/basic in my drupal 7 site can you please help me ?
Thanks again to all for reply.
Om Vaishnav
Comment #5
cgeorge29 CreditAttribution: cgeorge29 commentedI also am having this issue, and have noticed it on several sites i maintain using this module. Anytime anything is pasted, using Paste from Word, or just plain pasted into the body, I get div tags not p tags.
Nothing has worked thus far. Every time anything type is pasted into the body of my CKEditor, (Full HTML or limited HTML) the result is the same, everything is wrapped in div tags (even what should be br lines) and not one p tag anywhere!
My current workaround is after pasting all text into the body, go back, highlight everything, then select "normal" from my format dropdown.
There must be a way to stop the div tags and force p tags when pasting content. All my content editors write in different programs, strip formatting, and paste into the site. :/
Any help would be greatly appreciated! Thank you!
Comment #6
cgeorge29 CreditAttribution: cgeorge29 commentedComment #7
cgeorge29 CreditAttribution: cgeorge29 commented