I'm trying to use the WYSIWYG module with the CKEditor and I've noticed that the input inside the actual editor panel is not 1-for-1 with what gets output to the pages / stories / etc. The paragraphs appear as if their vertical spacing is wrong (it almost appears as if Drupal or something is removing the line-breaks).
So logically thinking that this setting was ticked, I went into the "Edit" for Operations inside the Filtered HTML format. I then ensured that the option was unselected (the one about "Remove Line Breaks" from inside the "Cleanup and output" drop-down". I also have "Verify HTML", "Preformatted", "Convert..." and "Apply Source Formatting" checked with "Force Cleanup..." unchecked.
The paragraphs still seem to be getting messed-up. So I created a test page to see the output and compare it to that which is in the editor pane prior to being published. What I found is that some of the paragraph tags are getting stripped. It seems to be stripping all the paragraph tags except for 1 to contain the basic content of the post or page.
Any ideas what's causing this? Is it a rule-of-thumb to not use these WYSIWYG plugins on the Filtered HTML or something? What gives?
Comments
In CKeditor's settings
In CKeditor's settings file(read the README.txt in ckeditor library), there is a setting to change behaviour of Enter and SHIFT+Enter keys. Simply swap them - it worked for me.
If you are using CKeditor module, you could change it from Admin UI.
What's new and changing in PHP 8.4
I've looked everywhere for
I've looked everywhere for this file, Ayesh. Either you're wrong, not elaborating enough, or else I'm blind, and knowing me, it's probably this last one that's occurring. Just to cover my bases, here's what I've done:
1.) I've reinstalled thrice the WYSIWYG 6.x-2.3 module.
2.) I've reinstalled twice the CKEditor v3.5 and TinyMCE v3.4 plugins.
3.) Once the above failed, I then tried a drop of the WYSIWYG tables in the database (there were 2 of them).
4.) After reinstalling the module AGAIN, I then had to run the Drupal update.php file to acquire whatever was missing from the database because Drupal kept nagging me about a missing table--something I thought WYSIWYG was supposed to supply once activated in the modules page.
5.) Once the update completed and the missing table(s) reinstalled, I then reinstalled the CKEditor again.
Still a no-go for paragraphs.
6.) I then came onto here and posted my issue where upon you (Ayesh) suggested I go into this "readme.txt" file to find the procedure behind swapping some values in some file.
There is no "README.txt" file in that library directory. The closest thing(s) I found were the following:
a.) INSTALL.html - Which is useless in this case as it has no information about the API, etc.
b.) ckeditor.pack - This file seems to have some constants in it that eventually led me to the following file, "/ckeditor/_source/plugins/htmlwriter/plugin.js"
c.) plugin.js - This file seems to be responsible for writing the HTML output. Is this the one you're talking about?
Again, the problem here is that the blog posts output only 1 paragraph element. I did some research and it seems as if this is a byproduct of the Drupal filtering process, but when I went to change up the various settings of the CKEditor plugin from within the WYSIWYG module control panel, nothing I did ever fixed this annoying issue.
And I did go to the CKEditor web page to skim through the documentation but if everyone out there had to read a book just to properly setup a single Drupal module, there's never be any Drupal websites in existence, ap pro po, my coming here and posting all this ramble...
So any help with this... Any insight at all... is VERY appreciated.
^
Sorry. I was wrong.
But I'm pretty sure that I have configured it correctly it in one of my sites. but unfortunately it's CKeditor module - not using WYSIWYG module.
In CKeditor.
I also misunderstood the problem that you are having a problem in line breaks and para formatting.
What's new and changing in PHP 8.4
Edit input formats
I was having the same problem. I went into the Configuration > Text Formats admin panel, and edited the Filtered HTML setting by adding <br /> and <p> to the acceptable tags. Whenever I enter returns while I'm editing in Filtered HTML mode, it renders as a new paragraph.
Hope this helps!
RE: input formats
I do not see Configure>Text Formats admin panel that will let me add HTML to the acceptable tags. I am learning Drupal 7
^
Configure > content Authoring > Text Formats. Better selecting Drupal 7 in tags then.
What's new and changing in PHP 8.4
Funny thing is I didn't have
Funny thing is I didn't have this problem with one site but the other one did. Here's what I did to fix it:
Now it's working fine. Not sure if it was the order of the filter processing or the limit allowed html tags but I hope this helps
Same problem here
All white space, e.g. line space, while in Source view, are gone.
cut and paste while in Source view
"
This freaking house still isn't ready to rent.
oh well
what the hell
"
Of course, in regular view, non-Source, each line has a blank space between..
This freaking house still isn't ready to rent.
oh well
what the hell