Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.0
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2010 at 21:12 UTC
Updated:
31 May 2011 at 10:09 UTC
Hi,
I'm using CKEditor 3.1 on Drupal 6. When the browser is resized, the ckeditor text field does not resize, making it necessary to scroll horizontally to see all the text. I also find that the text field is too wide when I set it to 100% width, I had to set it to 102% so that it doesn't start off being too wide for new posts. Is there any workaround? Here's my site: http://budgetlightforum.cz.cc/forum , you can use my test user account, username: ckeditor , and the password is the same as the username.
Thanks a lot!
Comments
Comment #1
rahim123 commentedOK, this has something to do with the theme. I am using the stock "Newsflash" theme. I tried my setup with "Garland" and it resized correctly.
Comment #2
wwalc commentedCheck the dev release. Looks like a duplicate of #651904: CKEditor Widens Beyond content area when Resized.
Comment #3
rahim123 commentedHi there, thanks for the reply.
I tried upgrading to the dev release, and it appears to be the same. Any other tweaks?
Thanks!
Comment #4
wwalc commentedI checked http://budgetlightforum.cz.cc/forum and it seems I'm missing something here... in what browser do you have this problem?
Comment #5
rahim123 commentedFirefox 3.6 RC1
Try setting your browser width to around 700 px or so. The border around ckeditor fits and resizes correctly with the browser window, but the internal text field in ckeditor is too wide, the line on which you type is wider than the visible window and the user has to scroll sideways as he types to see it all.
Thanks for looking into this.
Comment #6
rahim123 commentedI just had a user report this same bug. He says:
Comment #7
rahim123 commentedComment #8
wwalc commentedThanks for helping me in understanding what's the problem.
Try adding this:
in sites/all/modules/ckeditor/ckeditor.css
Comment #9
wwalc commentedFixed in CVS: http://drupalcode.org/viewvc/drupal/contributions/modules/ckeditor/ckedi...
Please reopen this issue if that did not solve the problem for you. Also please let me know whether it works for you as expected :)
Comment #10
wwalc commentedOoops that was actually wrong idea :/
Comment #11
wwalc commentedI have reverted changes in CVS.
The correct solution is to add some extra config to ckeditor.config.js:
Below:
Add this:
and clear browser's cache.
More information about issues with themes can be found here: http://drupal.ckeditor.com/tricks
Comment #12
rahim123 commentedNice! Thank you very much, that did the trick. It now wraps the text and resizes beautifully to whatever the browser size is.
I'll leave this issue open, because the issue appears to be specific to the very popular "Newsflash" theme, and you might want to add this fix into the code as an exception whenever the "Newsflash" theme is detected.
Thanks again!
Comment #13
wwalc commentedFixed in CVS, thanks!
http://drupalcode.org/viewvc/drupal/contributions/modules/ckeditor/ckedi...
Comment #14
sbogner@insightcp.com commentedI have the same problem; tried the fix in #11 but that didn't change anything. I'm using the Acquia_marina theme. I cleared my browser and cleared the Drupal cache, didn't make any difference. Any ideas?
I have the same issue with both Firefox 3.5.7 and IE 8.
Comment #15
Dreher commentedI am also having this problem in Giordani and the above fix did not work. Please help.
Comment #16
Dreher commentedI am also having this problem in Giordani and the above fix did not work. Please help.
Comment #17
Dreher commentedComment #18
wwalc commented@Dreher - what was the problem?
Comment #19
Dreher commentedWhile testing the editor, I was uploading large pics or just holding down a letter key. I assumed the text would wrap like on a work document however apparently if you have a very long word, the editor treats it like one large object and will not wrap it. Stupid move on my part.
Comment #21
kvvnn commentedUse 'word-wrap' css.
body{ word-wrap : break-word }
http://www.webdesignerwall.com/tutorials/word-wrap-force-text-to-wrap/
Comment #22
JohnMorris commentedI just updated from FCKEditor to CKEditor, and had the "words won't wrap, it's hard to edit" problem. This was a new download today (Dec 4, 2010) for a Pixture-Themed site. The solution list above worked:
(Thanks to "wwalc" for the following)
The correct solution is to add some extra config to ckeditor.config.js:
Below:
config.extraCss = '';
Add this:
config.extraCss = "body{min-width:400px}";
There is quite a bit of "noise" around this issue -- so I thought I'd highlight that this change worked, and if you know how to edit it (use FileZilla), it takes 2 minutes -- and then you can enjoy the new editor. Although I'm not sure that this issue can be called "fixed" -- as the download does not work out-of-the-box and adding in some lines as above in a file is something that not "everyone" can do . . .
Thanks for the help though!
JHM
Comment #23
senortim commentedI'm still seeing this issue. I'm using Firefox 3.5.18, D6.2, CKEditor 1.3. I tried the mod for the ckeditor.config.js file, but it didn't have any effect. This is in the Acquia Marina 6.x-2.0 theme.
The only way I can get the window to **not** require a side-scroll is to make the editor width to 1200. This isn't a major issue, since I'm the only one editing this site, but I thought I should report it.
Comment #24
euchrid9 commentedFor anyone still getting stuck with this, I posted a css solution for a similar problem that worked for me here:
http://drupal.org/node/751196#comment-4538018
I found it wasn't "word-wrap" or "min-width" but "white-space" which was causing this for me.