Closed (outdated)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Apr 2013 at 10:24 UTC
Updated:
15 Jul 2019 at 13:02 UTC
Jump to comment: Most recent
Hello!
I have a quite strange problem: I've installed ckeditor module and then installed tinymce, and tried also nicedit. None of them maintain formatting as br,
bold or anything else... The text remain formatted just into the blocks. If I create a content, the text on the page is always unformatted!!
Someone can help me solve this problem please?
Thank you
Comments
Comment #1
Jooblay.net commentedYes you can do this by editing ckeditor as br or p
Further what is the status of this issue?:)
Comment #2
Jooblay.net commentedYes you can do this by editing ckeditor as br or p
Further what is the status of this issue?:)
Comment #3
wim leersComment #4
twodI'm having a bit of a problem understanding the description but I don't think this has anything to do with which editor is used. Rather it's related to output not being run through text formats/filters. The editors all output HTML (unless using a different output plugin like the BBCode one for TinyMCE) and it'll be stored as generated by those editors in the database. Then when rendering that markup into something like a block or node body it should be run through Drupal's texts formats. Those contain filters which will keep or remove markup.
If the text format is not configured to allow certain HTML, like p or br tags, they will be removed. Other filters - like one provided by core - may convert double empty lines to p tags and single empty lines to br tags. Filters like that are not to be enabled when an editor is used with the text format as the editor already knows how to properly insert those tags, and the filter will just end up creating extras from any markup formatting done with newlines (if the editor is configured to do that).