Please help with FCKeditor2 in html newsletter {Solved}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
hal
Posts: 66
Joined: Mon 9. Feb 2004, 22:07

Please help with FCKeditor2 in html newsletter {Solved}

Post by hal »

I'm using FCK2editor and it works fine except in the newsletter section.

When creating a newsletter I can't use FCKeditor2. It displays well but the buttons don't work at all.

Everytime I click a button I encounter and "error on page" (yellow triangle on the very left in the status bar). By checking out (doubleclicking on it) I get an error message displayed, thats the same all time:

Line: 34
Sign: 2193
error: 'this.FCKtoolbarbutton' is null or no object
code: 0
URL: http://www.mysite.com/cms/include/inc_e ... ditor.html?
Instancename=newsletter_html&Toolbar=phpwcms

I already looked at the forum and found a thread with changes to do. But also when changing everything like described, I get still the same behaviour.

Maybe anyone else has encountered the same problem or can help otherways. Any help greatly appreciated.

What I want is actually an input window in the newsletter creation part where I could paste html code. I wouldn't need an wysiwyg editor here. But I want FCK in the articles section as I have ppl working in our site who need it.

So a way to disable the editor just in the newsletter creation section would be fine for me as well.

Hope to hear from anyone soon. :)
Last edited by hal on Wed 21. Dec 2005, 20:48, edited 1 time in total.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
hal
Posts: 66
Joined: Mon 9. Feb 2004, 22:07

Post by hal »

Thanks for the reply.

I decided to install dev release 1.2.6 and the problem was gone.
Titschi
Posts: 49
Joined: Fri 29. Oct 2004, 09:29
Location: Ludwigsburg, Germany
Contact:

Post by Titschi »

Hmm - also ich nutze noch die Version 1.2.1 und hab das Problem auch.

Der FCK Editor lässt sich nicht nutzen.
Fehlermeldung wie oben beschrieben - beim Artikelmenue gibts es das Problem nicht...

Den FCK 2.2 angepasst hab ich installiert - ohne Erfolg - der Fehler
ist immer noch vorhanden :(

Grüsse, Thomas
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

als erstes würde ich wirklich das Upgrade auf phpWCMS 1.2.6DEV von
http://www.phpwcms-docu.de empfehlen.

also wenn der FCK nur beim Newsletter nicht geht - warum auch immer ? -
schau mal in die ../include/inc_lib/wysiwyg.editor.inc.php Zeile ~82
ob da der Code so aussieht:

Code: Select all

case 2:	if(!isset($wysiwyg_loaded_FCKeditor) || !$wysiwyg_loaded_FCKeditor) {
				include(PHPWCMS_ROOT."/include/inc_ext/FCKeditor2/fckeditor.php");
			}
			$oFCKeditor = new FCKeditor($wysiwyg_editor['field']);
			$oFCKeditor->BasePath = 'include/inc_ext/FCKeditor2/';
			$oFCKeditor->Value = $wysiwyg_editor['value'];
			$oFCKeditor->Width = $wysiwyg_editor['width'];
			$oFCKeditor->Height = $wysiwyg_editor['height'];
			$oFCKeditor->ToolbarSet = 'phpwcms';
			$oFCKeditor->Create();
			$wysiwyg_loaded_FCKeditor = 1;
			break;
evtl. in der ../include/inc_ext/FCKeditor2/fckeditor.php noch die Zeile ~41 von:

Code: Select all

		$this->ToolbarSet	= 'default' ;
nach

Code: Select all

		$this->ToolbarSet	= 'phpwcms' ;
wichtig ist auch, dass in der ../include/inc_ext/FCKeditor2/fckconfig.js die Toolbar richtig ist - von der Syntax

Code: Select all

FCKConfig.ToolbarSets["phpwcms"] = [ 
['FullWindow','-','Source','Print','Save','Preview'],'-',['Cut','Copy','Paste','PasteText'],'-',['Undo','Redo','-','Find','Replace'],'/',
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
	['OrderedList','UnorderedList','-','Outdent','Indent'],'-',['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','SelectAll','RemoveFormat'],'/',
	['Image','phpWCMS_Browser'],'-',['Table'],'-',['Link','Unlink','Anchor'],'-', ['Rule','Smiley','SpecialChar','UniversalKey'],'-',['Templates'],'-',
	['TextColor','BGColor'],['CssEditor'],
	['FontFormat','FontName','FontSize'],['HtmlTiles','LFOGetFile','LFOSaveFileAs','About']
] ;
hier darf kein ' - , oder eine Klammer fehlen oder zuviel sein bzw. an der falschen Stelle. Der obige Code enthält evtl. Buttons, die bei euch nicht vorhanden sind.

wenn Ihr nicht weiterkommt, könnt ihr mir ja mal eure FTP-Zugänge und phpWCMS Admin-Zugangsdaten mailen, dann schau ich mir das mal an.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply