Page 1 of 2
When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 14:51
by ourpobox
Hi All,
I have tried searching the forum for this several times, but haven't been able to find anything....
I have several installs that I have done from 1.1.4 RC4 and upgraded, as well as several that I have installed from "scratch" and all seem to have the same issue. When we use FCKEditor, the spacing shown in the WYSIWYG window doesn't match the spacing on the actual page. Usually we have to put about 2-3 times as much space in the editor as we want to show on the page or the text all gets bunched up tightly, without the desired space.
Does anybody have any clues as to how we should make it work? I would really appreciate it!
Thanks,
Greg
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 15:25
by flip-flop
Hi Greg,
that isn´t any error.
/include/inc_ext/fckeditor/fckconfig.js
Have a look: FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
That is the used css file during editing.
And in /template/inc_css/*.css the system files are stored for the page output.
You can switch to your favorited css in /include/inc_ext/fckeditor/fckconfig.js
e.g. FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../../../../template/inc_css/frontend.css' ;
Or make a new file in /include/inc_ext/fckeditor/editor/css/my_fck_editorarea.css (Put what you want).
-> FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/my_fck_editorarea.css' ;
Knut
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 15:51
by ourpobox
Hi Knutt,
Thanks so much. I will give that a try! I am glad you are here. You are a HUGE help to so many of us who aren't professional php writers!
One more question.... Why would I want to use very different css files for WYSIWYG and output? It seems like the output should match the WYSIWYG, since that is how I interpret WYSIWYG.
Thanks again!
Greg
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 16:00
by flip-flop
FCK is an completely external development with own styles.
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 19:17
by Jensensen
[x]
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 20:45
by flip-flop
First: The toolbar names are hardcodet in /include/inc_tmpl/profile.account.tmpl.php
-> $wysiwygTemplates['FCKeditor'] = array('phpwcms_basic','phpwcms_default','Default','Basic');
Second: I managed a custom toolbar in fckeditor_config.js.php
For me it is sufficient to edit a existing toolbar e.g. like phpwcms_basic (without [images] and with [paste text].
Code: Select all
// a minimized FCKeditor Toolbar for phpwcms
FCKConfig.ToolbarSets["phpwcms_basic"] = [
['Bold','Italic','Underline','OrderedList','UnorderedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Link','Unlink','TextColor','BGColor','PasteText'],
['FitWindow','Source']
] ;
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 20:49
by Jensensen
[x]
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 21:26
by Jensensen
hack-attack
[x]
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 21:30
by Jensensen
Could be that changing/adjust e.g. "phpwcms_basic" has to be enough....

Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 22:37
by Jensensen
Well, i found a solution for versions equal/greater than v1.3.9 r_xyz:
check -->
[x]
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 23:10
by update

finding!
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 23:26
by flip-flop
Oh yes, I think you need only to edit the file
/include/inc_ext/fckeditor/fckeditor_config.js.php
for including the custom toolbar.
(And the conf.inc.php too)
What a simple solution.
Applaus Jensensen
Knut
Re: When WYSIWYG is not WYSIWYG
Posted: Thu 4. Sep 2008, 23:56
by Jensensen
[x]
Re: When WYSIWYG is not WYSIWYG
Posted: Fri 5. Sep 2008, 00:09
by Jensensen
flip-flop wrote:... (And the conf.inc.php too) ...
what was added afterwards (meanwhile that 5min gap)
Re: When WYSIWYG is not WYSIWYG
Posted: Fri 5. Sep 2008, 01:20
by flip-flop
That´s working for me in FF WIN without any error.
... (And the conf.inc.php too) ...
Only for tread backward reading people. (You know ....)
