Modified and enhanced FCKeditor2.0 Final for phpWCMS

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

@pico

I have never used FCKeditor before now, so forgive me if this is a dumb question, but I am confused.

When I click the 'image manager' button on the FCKeditor (the second one in) I can insert images from the file centre. I don't have a .thumbs folder in phpwcms_filestorage and it works fine.

I can see there's also an 'insert image' button, which opens a dialogue box where you can enter a remote URL. I tried pressing the 'browse server' button which opens another screen with a '\' folder path. Is the thumbs folder issue something to do with this? I couldn't seem to upload anything in either of these screens.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

no - the 'insert Image' Button works with it's own Filemanagement - Files you upload with this are not avaible in the phpWCMS-System - only in FCK. That's the reason for that I implemented the other ImageBrowser.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

O.K. Thx. And congratulations BTW :D Apart from my Windows path problems it works very well. The PHPWCMS file centre's image resizing is unbeatable for articles, but this is a nice compliment to that.

I got excited about creating an HTML newsletter with images, but unless I'm doing something wrong, that didn't work. It saved the newsletter with the image, but of course it didn't embed it when I sent the test email. I assume I'm right in thinking that this cannot be done at the moment?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi
I got excited about creating an HTML newsletter with images, but unless I'm doing something wrong, that didn't work. It saved the newsletter with the image, but of course it didn't embed it when I sent the test email. I assume I'm right in thinking that this cannot be done at the moment?
for that you have two Buttons in the ImageManager - one for a relative URL and one for absolute URL. For Newsletter use the absURL, it includes the full path to the Image like:
http://www.domain.tld/phpwcms_filestore ... 214365.jpg
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

Thx pico. I can see that option now.

I was always under the impression (it appears wrongly) that PHPWCMS embedded eCard images into it's eCard email (using some complex multi-part) and I was wondering if this could be done with a newsletter.

However, I now see that it just creates a link. So, I guess that someone who downloads the eCard email to a mail client and reads it offline is going to get a broken image icon?

I was asking because I have a user who would like to send newsletters within his organisation with images.
jsb
Posts: 26
Joined: Tue 3. May 2005, 11:39
Location: Berlin

Post by jsb »

Hi auch ich hab da noch nen Prob.

Habe hier auf einem internen Linux Web-Server phpwcms 1.2.5 Dev mit dem FCKEditor von pico installiert. Die auf dem Server vorhandenen Bilder werden mir im Resourses Browser als gebrochene links angezeigt ich sehe also keine Thmbnails. Wenn ich ein Bild trotzdem nach dem Namen auswähle wird es korrekt eingefügt. Woran kann das liegen?

Jürgen
Ich habe mal ein paar Bildschirmfotos zur Verdeutlichung gemacht.
So sehe ich die Bilder die auf dem Server abgelegt sind, oder die ich von hieraus per upload auf den Server lade.


oder



Wenn ich eines davon auswähle sehe ich folgendes:

und dann im Editor
Last edited by jsb on Wed 8. Apr 2009, 18:13, edited 2 times in total.
SORRY
Leider bin ich nicht in der Lage meine Beiträge in Englisch zu schreiben. Wäre auch froh über Antwort auf Deutsch.
SORRY
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hello pico,

great job your enhanced fck.

[EDIT]
Using GD -> define('IMAGE_CLASS', 'GD');
Using apache/linux/php4 and php5

A little problem occures using IE 5.5/6.0.

At all installations 1.2.3DEV / 1.2.5CVS the IE doesn´t include the pictures well. In frontend it´s ok.
cyrano wrote it before:
can insert, browse images, but do not see them rendered in backend - works in frontend.

[/EDIT]
That is the stuff:
1. We search and insert a image with RelURL-OK:
Image

2. Then we see this output:
Image
Source are ok and we see:
------------------------
<tr>
<td>&nbsp;Text</td>
<td>&nbsp;Text</td>
<td>&nbsp;<img height="20" alt="16565a371a77cd8f3ea5dab2c34c696d.gif" hspace="" src="/phpwcms_filestorage/16565a371a77cd8f3ea5dab2c34c696d.gif" width="25" border="0" /></td>
</tr>
------------------------
Editing this picture using the fck-picture function the preview is ok.!!??


After "Open editor in new full window" and "Close window and transport changes" source looks like this:
------------------------
<tr>
<td>&nbsp;Text</td>
<td>&nbsp;Text</td>
<td>&nbsp;<img height="20" alt="16565a371a77cd8f3ea5dab2c34c696d.gif" src="http://$_server[/phpwcms_filestorage/16565a371a77cd8f3ea5dab2c34c696d.gif" width="25" border="0" /></td>
</tr>
------------------------
It doesn´t shown in frontend.

Inserting a picture by using the absURL it works great. But developer don´t do this. We can´t move the DB to an other domain.

Any idea? :cry:


In FF it looks like this and works great: :D
Image

Second: Is there a way in FF for using <shift enter> = <br> and enter = <p> ?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

I see the Problem - but I can't figure out what's going wrong in IE - JS is not my speciality :wink:
have tested it with the 'original' ImagaManager (without my modifikations for phpWCMS) and it shows the same Problem. I'm trying to get Contact to the Developer of this PlugIn.
Inserting a picture by using the absURL it works great. But developer don´t do this. We can´t move the DB to an other domain.
The absolute URL is a enhancement from me for Newsletter editing - there you need this.

Another curiosity is that in FF a new Window opens for Sourcecode and in IE not :?:
Is there a way in FF for using <shift enter> = <br> and enter = <p> ?
there is a setting in the fckconfig.js

Code: Select all

FCKConfig.UseBROnCarriageReturn	= false ;
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hello pico,

thanks for answer and testing.

Code: Select all

FCKConfig.UseBROnCarriageReturn   = false ;
I think these switch don´t work in FF.
But that is a generall problem of online-editors using FF. (Ist eine andere Baustelle). Within the next few days I will try to solve this problem.

I don´t be a friend of IE, but the IE is more stabil. E.g. editing a tablecell including a table FF dont´t do this right. IE has no problem.


Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

about the IE ImageBrowser Problem I found this

edit the ../include/inc_ext/FCKeditor2/fckconfig.js at Line 27

change this
FCKConfig.BaseHref = '$_SERVER["SERVER_NAME"];
to
FCKConfig.BaseHref = 'http://www.yourdomain.tld'

I have inserted a php-Variable there and this can't work in JS :oops:

only wonder why it works in FireFox :roll:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Hi Pico,

just wanted to thank you for your time and explanations, you've done a velly velly good job :D !!! Got the FCK well integrated and the style, templates and fullwindow are really usefull things for clients.

Thank you very much indeed! :lol:

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

Post by pico »

@Kosse

thanx :)

@flip-flop

does my last post solve your Problem ?

@jsb

maybe it solves your Problem too - but I think that there are something going wrong with the Thumbnail's - have you checked this
http://www.phpwcms.de/forum/viewtopic.php?p=46581#46581 and
http://www.phpwcms.de/forum/viewtopic.php?p=46910#46910 and
http://www.phpwcms.de/forum/viewtopic.php?p=46921#46921 in this Thread


--------

If you have Problems to modify (delete) something in a fresh opened EdtorWindow - just insert a Space or something - after that it works -

There are still some Bug's in the FCKeditor Core -> see forum at SourceForge
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

:D Hello pico,
does my last post solve your Problem ?

Yes is does WELL AND TRULY.
My first short test was really good.

What a simple error. I have browsed source, but no look into the config.

Many thanks for spending time to solve this problem.

My statement before relating to "editing tablecells in FF" isn´t right. After changing the config, FF works fast and fine. In fullwindow-mode we can now editing source. Before it wasn´t work.

General FCK-Problems:
In IE the picturepath is switched to abs. url after toggle the fullwindow-mode. (Bad for developers).

In FF the picturepath is switched from "/phpwcms_fi" to "../../../../phpwcms_fi" after copy and paste an image but the image is shown.

Great work

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ChantalC
Posts: 16
Joined: Sun 24. Jul 2005, 18:25
Location: Berlin
Contact:

Post by ChantalC »

Hi Pico,

I love your FCKeditor and it works very well.

* Editing in a new seperate scalable Window

There are no more linebreaks and it is not clearly laid out.
Is it possible to set the editing of the source back to the same window like before?

Where can I change this? I'm using Firefox. In IE it works that way.
Gruß / regards

CC
Post Reply