When WYSIWYG is not WYSIWYG
When WYSIWYG is not WYSIWYG
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
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
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
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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: When WYSIWYG is not WYSIWYG
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
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
FCK is an completely external development with own styles.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: When WYSIWYG is not WYSIWYG
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].
-> $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']
] ;
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: When WYSIWYG is not WYSIWYG
Could be that changing/adjust e.g. "phpwcms_basic" has to be enough.... 

Re: When WYSIWYG is not WYSIWYG
Well, i found a solution for versions equal/greater than v1.3.9 r_xyz:
check -->
[x]
check -->
[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:39, edited 1 time in total.
Re: When WYSIWYG is not WYSIWYG

It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: When WYSIWYG is not WYSIWYG
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
/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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: When WYSIWYG is not WYSIWYG
what was added afterwards (meanwhile that 5min gap)flip-flop wrote:... (And the conf.inc.php too) ...
Re: When WYSIWYG is not WYSIWYG
That´s working for me in FF WIN without any error.

Only for tread backward reading people. (You know ....)... (And the conf.inc.php too) ...

>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )