First of all, the editor is absolutely fantastic, but I'm running against a problem with it's WYSIWYG-ness
I'm currently using the editor to write content for articles. However, not every article is as wide as the other, so I would like to be able to change the width of the editor itself, to make it more WYSIWYG. (i.e. same line breaks, image positions etc as in the submitted and live article data)
I hope this makes sense till now
Anyway, it is possible to call the FCKEditor constructor with some additional parameters that also define width and height:
$oFCKeditor = new FCKeditor('editor', '100%', "98%") ;
This would be exactly what I'd need .. except for one thing:
If I change the width to say less than 500px, the toolbar is partially hidden, since there are more items than can be displayed.
Now I know it's possible to make more lines of buttons in the toolbar avoiding this, but that's not what I want, it should really be 1 line of buttons.
So I'm looking for a solution that
1) leaves the toolbar at 100%,
2) sets the width of the editor area to a custom width.
I've looked at the
fckeditor.js and fckeditor.php files in the main dir, but no luck yet.
Also no luck with the FCKeditor/fckeditor.html file:
<tr id="eSource" style="DISPLAY: none">
<td class="Source" height="100%" valign="top">
<textarea id="eSourceField" style="WIDTH: 100%; HEIGHT: 100%"></textarea>
</td>
</tr>
Changing width to let's say 400px does make the "View Code" area do what I want, but not the WYSIWYG area.
and slightly above:
<tr id="eWysiwyg">
<td id="eWysiwygCell" height="100%" valign="top">
<iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" frameborder="no" src="fckeditorarea.html"></iframe>
</td>
</tr>
Changing the width here doesn't do much.
Anyone got an idea ?
Wed, 02/16/2005 - 02:27
#1
RE: changing width editor area
Anyone ?
Also, if the width of the editor falls below +/- 550px, the rightmost buttons on the toolbar aren't visible anymore. Whereas setting the width of the toolbar to 1000px+ all buttons are visible on 1 line, but making the area smaller doesn't spread the buttons over more than 3 lines ... which is not enough, apparently.
Is this a bug, a feature or a config setting?