Welcome, Guest. Please login or register.
Did you miss your activation email?
February 10, 2012, 01:52:27 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149483 Posts in 21084 Topics by 7530 Members
Latest Member: hoschmeck
* Home Help Search Login Register
Pages: 1 ... 6 7 [8] 9 10 ... 17   Go Down
Print
Author Topic: FCKEditor Modul  (Read 108635 times)
YeShakka

Offline Offline

Posts: 146



« Reply #175 on: March 29, 2007, 08:40:50 PM »

Did the code work you added?
Haven't tried yet.

Probably this page is loaded via  JS. Maybe one could make it a php-page instead of a html-page which then parses WB parameters.
But donno, just a suspicion...
Logged
doc
Guest
« Reply #176 on: March 30, 2007, 04:15:47 AM »

@Matthias
As I mentioned yesterday, changing the charset in the template wbmodules.html didn´t work for me. FCKEditor generates the header section by itselft and does overwride my settings. As far as I understood, the wbmodules.html template serves only for the main part of the page, not for the header section.

Regards Christian
Logged
fjord

Offline Offline

Posts: 23


« Reply #177 on: March 30, 2007, 06:13:37 AM »

Hello!

A little security hint: When removing files of security reasons, do not delete, but make dummy files with the same name. This method will be an extra safety for those of us doing file copy instead of uninstall/reinstall module. Old malicious files from a previous version will then allways be neutralized careless of upgrade method.

Thanks a lot for an excellent integration of FCK Editor!

Fjord
Logged
doc
Guest
« Reply #178 on: March 30, 2007, 10:10:34 AM »

@Fjord
Thanks for the hint you are right. For that reason we always recommend to deinstall an existing previous versions from the WB backend when updating from a previous FCK module  smiley

@Matthias and YeShakka
Doctype definition and charset of FCKEditor dialogues (plugins) is defined in \fckeditor\fckeditor\editor\fckdialog.html.
So if someone wants to modify the charset for all plugins this is the file I would start with. Matthias, if you know another way please send me a PM.

Regards Christian
« Last Edit: March 31, 2007, 05:43:38 AM by doc » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7656



WWW
« Reply #179 on: April 10, 2007, 12:01:01 PM »

Hello,

a new version of FCKEditor is released. Read here:
http://www.fckeditor.net/

Changelog:
http://www.fckeditor.net/whatsnew

This fixes the issues i described above and wich i have manually changed.

The new WB Modul version 2.73 includes the FCKEditor 2.4.2 and is available on the addons Page.

Have fun

Matthias
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #180 on: April 10, 2007, 01:10:42 PM »

I installed this module via FTP and then realoaded the module.

When editing a page I get the following error:
Code:
Error loading
""fckeditor/css_to_xml.php?template_name=my-template"
Do you want to see more info?

Greetings,
Shakka
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7656



WWW
« Reply #181 on: April 10, 2007, 01:20:10 PM »

Hello,

done right now a download from the addons page and installed the modul on a new clean WB 2.6.5 Version and all works fine.

So if you ftp the files, please be shure all files are overwritten. But best is to uninstall the old version and reinstall the new version. This works for shure.

Matthias
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #182 on: April 11, 2007, 03:36:07 PM »

But best is to uninstall the old version and reinstall the new version. This works for shure.
I know that using the backend is recommended. But when I try to reinstall it via the backend I get the following error:

Quote
Die Datei kann nicht übertragen werden
( File could not be transmitted.)

I checked via FTP and I should have all rights on the directory.

So I donno why this isn't possible.

EDIT:
I could reinstall the editor via FTP upload and module reload.
The problem mentioned http://forum.websitebaker.org/index.php/topic,1670.msg37472.html#msg37472
Doesn't occur anymore  cheesy
But still strange that the module could not be re-installed via the backend...
« Last Edit: April 11, 2007, 03:47:37 PM by YeShakka » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7656



WWW
« Reply #183 on: April 11, 2007, 03:56:52 PM »

@YeShakka

Quote
But still strange that the module could not be re-installed via the backend...

Not shure if you know this, it is totally secret and i only tell it to you if you promise not to say this to anyone else  grin

did you promise?

Ok i trust you so here is the secret information:

"Backend cannot change files and folders wich are created from ftp-user"

Please don't talk about this.  grin grin grin grin

Matthias

Logged
doc
Guest
« Reply #184 on: April 11, 2007, 03:59:33 PM »

Quote from: ruebenwurzel
Not shure if you know this, it is totally secret and i only tell it to you if you promise not to say this to anyone else
Uups, in that case I have to remove the link to the FAQ as well  grin

Regards Christian
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #185 on: April 11, 2007, 05:19:15 PM »

Let me just make a scandal out of a secret  evil

OKI, so I will be bound to use FTP from now onwards.

Or I'll talk to my hoster what can be done.

The problem arises that once you move your site via FTP from one server to another. All file permissions will be transferred to the FTP users.
This can be changed only if FTP-user is the same as the WWW-users...
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7656



WWW
« Reply #186 on: April 11, 2007, 06:25:58 PM »

Hello,

Quote
This can be changed only if FTP-user is the same as the WWW-users..

Or if you have a hoster where you can easily change ownerships to what you want, like allinkl.com  grin

Matthias
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #187 on: April 19, 2007, 09:40:04 AM »

The problem arises that once you move your site via FTP from one server to another. All file permissions will be transferred to the FTP users.
This can be changed only if FTP-user is the same as the WWW-users...

The problem was a wrontly set option for
upload_tmp_dir in the php.ini of the provider.

I post this because this coudl also help in similar problems. aybe we could put this in the FAQ.
Logged
bhhenry

Offline Offline

Posts: 51



WWW
« Reply #188 on: April 19, 2007, 03:23:12 PM »

We highly recommend to update to the latest version available as it closes a possible security issue.
To update from a previous version, simply uninstall the old one and reinstall the latest version from the addons repository.

I just updated FCKeditor as described above from the 2.4 module / 2.3 fck engine version. The updated module works good in IE7, but does not appear at all in Firefox 2.0.0.3 under Windows. Is anyone else having this problem?
Logged
icouto

Offline Offline

Posts: 119


« Reply #189 on: May 10, 2007, 02:52:03 PM »

Apologies if this has been covered before, but doing a quick search through the forum yielded no results.

I wonder if someone could give me a hint as to how to do this in the FCKeditor module:

1) change the skin from 'default' to 'office2003' - the 'blue' look goes better with WB!

2) enable the "Templates" plug-in - pre-defining layout templates would be extremely useful for some of my clients!

Any help is greatly appreciated!
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #190 on: May 10, 2007, 03:06:42 PM »

For changing the toolbars lokk at:
/modules/fckeditor/fckeditor/fckconfig.js

Documentation for the editor can be found at Wiki Web Site
Logged
icouto

Offline Offline

Posts: 119


« Reply #191 on: May 10, 2007, 03:41:08 PM »

@YeShakka: thank you for the tip.

I had a look inside the fckeditor directory, and found the 'wb_config' subdirectory, which has in it the file 'wb_fckconfig.js'. The top of this file has the following opening text:

Quote
[...]Purpose of this file is to define all settings of FCKEditor without changing the FCK Javascript core file fckconfig.js.[...]

I had a look through that, but could not get it to work for me. About my 2 wishes above:

1) could not find any setting there about skins - it's obviously using the default one. I did notice, however, that the 'office2003' skin does ship with the WB add-on. Do you know what code I should add here to change the skin to "office2003"? I already tried adding the following - and it did not work:

Code:
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

2) I saw some code that seems to define the default toolbar - and what plug-ins load there. I tried adding 'Templates' to the list to load, but nothing happened:

Code:
   FCKConfig.ToolbarSets["WBToolbar"] = [
['Source','-','Templates'],

Do the templates have to be enabled somewhere else as well?

Once again, any help would be greatly appreciated!  smiley
« Last Edit: May 10, 2007, 04:17:05 PM by icouto » Logged
doc
Guest
« Reply #192 on: May 10, 2007, 07:34:07 PM »

Hello Igor,

what you want to achieve can be realised via the two files: /modules/fckeditor/wb_config/wb_fckconfig.js and /modules/fckeditor/wb_config/wb_fcktemplates.xml

To change the skin to the office style, simply add the following line at the end of wb_fckconfig.js:
Code:
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

To make use of templates, you need to enable the template button in the toolbar first. The toolbar named WBToolbar is used as default for the WB FCKEditor module, so you need to make your changes there. Simply replace the first two lines with the code below to enable the template button to the WB toolbar.
Code:
   FCKConfig.ToolbarSets["WBToolbar"] = [
['Source','Templates'],

The template can be styled via the XML file wb_fcktemplates.xml. The Syntax is explained on the FCKEdtior WIKI side. Check out the default template to get a first impression.

Quote
Please note:
You need to clear the entire browser cache incl. session variables and login again to the WB backend to see the changes you applied. This needs to be done at any time the CSS, or Javascript files of FCK are modified.

Regards Christian
« Last Edit: May 12, 2007, 07:45:44 AM by doc » Logged
martinstan1

Offline Offline

Posts: 27


« Reply #193 on: May 11, 2007, 05:11:01 PM »

Ouch!
Hey, I just uninstalled my HTMLarea in installed this one, and now I don't have any editor at all. Are there any install instructions I've missed? I'm really new to WebsiteBaker so excuse my high volume of posts in the forums recently.
Cheers
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6817


WWW
« Reply #194 on: May 11, 2007, 06:39:30 PM »

did you activate it in the settings of WB? Currently (since you uninstalled HTML Area) I bet in the settings you find none is active.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

icouto

Offline Offline

Posts: 119


« Reply #195 on: May 12, 2007, 07:25:11 AM »

@Christian, thank you very much for the info!  smiley

I had actually done the alterations you suggested before, but - stupidly - forgot to clear the browser's cache! doh! tongue

By the way - instead of editing the 'fckconfig.js' file, I made the changes using the 'wb_fckconfig.js', and they work just fine there, too. This may be better, as - as the file says - it does not change anything in the 'core' FCKeditor files.

One small problem: the icon for the 'Insert/Edit WebsiteBaker link' tool is too big for the 'office2003' skin...   sad

It looks perfect in the 'silver' skin, though!

Once again, many thanks!  grin
Logged
doc
Guest
« Reply #196 on: May 12, 2007, 07:43:51 AM »

@icouto
You are completely right. All FCKEditor settings should be made in wb_fckconfig.js instead of fckconifg, as this would not touch the core files of the FCKEditor. That was the reason why I have added that wb_fckconfig.js file.
Have simply mixed up the links  huh

Will correct that in my previous post to avoid misunderstandings, so thanks for the advice.

Regards Christian

Logged
icouto

Offline Offline

Posts: 119


« Reply #197 on: May 12, 2007, 02:36:19 PM »

@Christian: about the icon problem: you can see it, if you change the template to 'office2003', and then move your mouse over the 'Insert/Edit WB link' button in the editor. The entire row where the button is resizes on mouseover. I guess the problem is the size of the image that is being used for the mouseover.

Is this an easy thing to correct? - sorry for the hassle, but the BLUE colour of that skin goes really nicely with the default blue colours of the WB Admin, plus it is actually slightly *smaller* than the other skins.
Logged
doc
Guest
« Reply #198 on: May 12, 2007, 03:13:43 PM »

@icouto
Have you already tried to resize the WB link image in /modules/fckeditor/fckeditor/editor/plugins/WBModules/wbmodules.gif? In addition have a look on the settings made in the corresponding CSS file of the Plugin (fckwbmodules.css).
Remind to delete the browser cache when doing changes - good luck  smiley

Christian
Logged
icouto

Offline Offline

Posts: 119


« Reply #199 on: May 13, 2007, 01:31:27 AM »

@Christian: thank you for the tips, once again.

I noticed that the icons that were being used by the 'office2003' skin were all maximum 16x16 pixels, and the 'WB Link' icon was 21x21. So, I created a new icon (15x15, just to be sure), and uploaded it, replacing the old one.

Then I launched FireFox, cleared my cache, and... the OLD icon came up! What's going on?

I tried clearing out the cache a couple of times, and restarting FireFox in between, but the old icon (the 21x21 icon) kept being displayed!
 
Fiinally, in order to at test the icon, I searched the code, to see where the icon was called (it was in the file 'fckplugin.js', inside the 'WBModules' folder), and renamed it. This forced the new icon to show.

But... the resizing on mouseover still happens, even with the new, small icon!

So, I thought that maybe the problem might be with the CSS. I have now tried going and even commenting out the *entire* css file, but nothing changes.

I am finding it hard to know if the problem is in one of the settings in the css (I suspect it is, as there are different settings there for 'hover', etc.), because I suspect that whatever cache problem I was having with the old icon, I might also be having with the CSS - ie., that despite the fact that I've changed the css and cleared out my cache, the browser is somehow still receiving the OLD css.

So, once again, apologies for the hassle, but if anyone could help in any way with the following:

1) what could be the cache problem that I am experiencing?

2) is the resize-on-hover I'm experiencing caused by something in the CSS file?

Many thanks in advance for any hints.
Logged
Pages: 1 ... 6 7 [8] 9 10 ... 17   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!