When WYSIWYG is not WYSIWYG

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
ourpobox
Posts: 54
Joined: Wed 2. Jun 2004, 16:41
Location: Virginia, USA
Contact:

When WYSIWYG is not WYSIWYG

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: When WYSIWYG is not WYSIWYG

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ourpobox
Posts: 54
Joined: Wed 2. Jun 2004, 16:41
Location: Virginia, USA
Contact:

Re: When WYSIWYG is not WYSIWYG

Post 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. :wink:

Thanks again!

Greg
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: When WYSIWYG is not WYSIWYG

Post by flip-flop »

FCK is an completely external development with own styles.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:37, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: When WYSIWYG is not WYSIWYG

Post 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']
] ;
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:37, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

hack-attack

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:38, edited 3 times in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

Could be that changing/adjust e.g. "phpwcms_basic" has to be enough.... :?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

Well, i found a solution for versions equal/greater than v1.3.9 r_xyz:

check -->

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:39, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: When WYSIWYG is not WYSIWYG

Post by update »

8) finding!
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.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: When WYSIWYG is not WYSIWYG

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 00:40, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: When WYSIWYG is not WYSIWYG

Post by Jensensen »

flip-flop wrote:... (And the conf.inc.php too) ...
what was added afterwards (meanwhile that 5min gap)
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: When WYSIWYG is not WYSIWYG

Post 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 ....) :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply