This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » SJSD WYSIWYG editor based on...

SJSD WYSIWYG editor based on FCKEditor for ezxmltext

SJSD WYSIWYG editor based on FCKEditor for ezxmltext

Wednesday 12 April 2006 5:56:35 pm - 236 replies

This thread is for the project SJSD (contribute: )

Please ask your questions in this thread rather in the contribution section.
If you do not expect replys, please add comment in the contribute section happy.gif Emoticon

<b>HOWTO DEBUG this extension</b>
As the nature of this project, there are two main sources of bugs: javascript running in client side and the server side php scripts

DEBUG Javascript:
*Firefox (at least 1.5) comes with a javascript console, and it can give precise information about where and why some commands in the javascripts fail.

*IE: without Microsoft script editor/debugger, the error message is basically useless. One of them is recommanded (Microsoft script debugger is free for downloading).

When using the editor, there are two buttons at the end of the toolbar: the first one will show the current html source of the editor. The second one is more interesting: onloading, it will communicate with ez publish server to get the converted xml from the current html source. There will be a button "Output" after the xml is displayed, it will ask the server to convert the xml back to html, and show it in the window. After this, a ok button will appear, which can be used to set the new generated html back to the sjsd editor.

Please check bugs and "feature requests" sections in our homepage:
if it is not there, you can file one (the prefered method), or state it here

Modified on Tuesday 11 January 2011 9:59:40 am by Nicolas Pastorino

Friday 28 April 2006 7:22:32 pm

Thanks. r96 works for publishing now.

i completely agree about 3.8. I have no expectations other than to test.


Friday 28 April 2006 11:28:53 pm

to meskini:
I tried two empty xmltext, no error at all.

please tell me what's the content of the two xmltext by clicking the third last button

about french encoding: I really have no idea why "l'école" will be replaced with "l'&eacute;cole" by fckeditor automatically, just like < will be replace with &lt; by fckeditor. I think é is allowed in html, or isn't it? Anyone has some clues here?

to Paul Forsyth:
3.8 seems to be a more appropriate target for SJSD, because it supports nested inline custom tags (finally). However, as it is still in beta, so now I concentrate on 3.7.

I also implemented a testunit suite to test SJSD xml input handler for 3.8

Modified on Saturday 29 April 2006 12:17:14 am by liu spider

Saturday 29 April 2006 6:12:26 am

Hello everyone,

just added a new sexy functionality: status bar

It is more advanced than the OE one (again), have a try, and welcome feedbacks/suggestions

I am not good at graphic design, but it seems to me that SJSD definitely needs a logo of its own, could someone contribute one (you will be ackowledged in about dialog (TBD))?

Monday 01 May 2006 9:25:28 pm

Hi liu,

Great work on the XML editor extension! I've been looking for a replacement for the xmlarea extension to use on more recent versions of eZP, and this seems to be it.

Tuesday 02 May 2006 1:49:07 pm

Hi Liu,

Thanks again for the extension.

I've just installed the new release 0.3.0 with my ezPublish 3.7.5 and FCKeditor 2.2 and it works perfectly including inserting images, links, uploading new images etc.

The only issue I've seen is in the custom tag, Factbox. This raises these 2 errors:

Detected unknown tag 'div' removed.

and then:

Error: Can not find the DIV just added.

For me, this is a minor issue as I will probably remove or replace the factbox custom tag anyway. Just FYI.

Andrew Clarke

On another note, if you need some help with coding, I may be able to help depending on my workload at the time. I have some good PHP experience. Let me know. blunk.gif Emoticon

Modified on Tuesday 02 May 2006 1:53:19 pm by Andrew Clarke

Tuesday 02 May 2006 4:31:11 pm

factbox works fine here, please provide more information about the issue (did you forget to clear server/client cache)

Code contribution (patches) is always welcomed, please use the patch tracker in SF to submit patches, thanks

Tuesday 02 May 2006 6:25:59 pm

Hi Liu,

Tested using the new 3.8 release from today and i found some image weirdness. When i uploaded a new image and added to the content i dont see the image but text like:




Tuesday 02 May 2006 7:45:56 pm

if upload a *.bmp file, I can reproduce your issue, but jpg files are ok

this is a bug in ezimagealiashandler, not in SJSD

try to use the eZ built-in upload button to upload a bmp image, it will fail to create any alias as well, that why the alt text is shown in SJSD, because src is empty

filed a bug here:

you may try to enable imagemagick

EDIT: just found out that gd does not support bmp, so this is not a eZ bug, sorry

Modified on Tuesday 02 May 2006 7:50:38 pm by liu spider

Wednesday 03 May 2006 1:17:09 pm

ok. i'll dig around and see if i can find whats causing this for me.


Friday 05 May 2006 12:58:18 am

I've just installed sjsd extension on my eZ site and it works OK, except that when I write the letter "¦" in it and publish the object, this letter is translated into: "&Scaron". Also "¨" is translated into "&scaron". I tried it both on eZ 3.7 and 3.8, and both on latin2 and utf-8 sites, and the problem is the same.

How can I fix that?

Is this an eZ problem, sjsd problem or FCKeditor problem?

Friday 05 May 2006 1:33:23 am

somebody reported the same issue.

those chars are converted to html entities by fckeditor, and I have no idea why it does that or how to prevent it.

I think we need a developer who knows one of those languages (French, for instance) to debug this

Friday 05 May 2006 4:34:21 am

ok, I came up with a workaround, but svn server in sf is down, so I can not commit it right now

Friday 05 May 2006 10:37:52 am

I fixed the problem by manually editing this files:


I just removed the pieces of code where Scaron ans scaron was used:

'&#313; ':'Scaron'

I don't know why this even exsists here, but now it works for my site that's in Croatian.

Maybe one of the FCKeditor developers would know more about it...

liu, what's your workaround about?

Friday 05 May 2006 11:49:21 am

P.S. After doing this manual change I had to clear the server (eZ) cache and client (browser) cache so that the change would work.

Friday 05 May 2006 4:28:35 pm

Thought i'd share another benefit this editor has over the OE: standard keyboard shortcuts work!

For example, to bold text use Ctl-B just as would expect with real document editors. Ctl-I, Ctl-U.

We should enable shortcuts for adding objects/images and so on happy.gif Emoticon


Friday 05 May 2006 4:48:06 pm

to Marko Zmak:
try svn r127, it disables all conversion

to Paul Forsyth:
That's true.
Adding shortcut is trivial, I think

if you have any patches, please submit in our tracker blunk.gif Emoticon

Friday 05 May 2006 7:30:40 pm

Heres a patch i found for adding keystrokes from the sourceforge forums:

I havent tested it but it looks like it is quite trivial to add.


Tuesday 09 May 2006 1:00:13 pm

The ditor looks great, but I have a problem when I try to insert an image. After clicking on the paperclip I receive the following error:

"Returned value is not in valid JSON format: Error: Content is not found or function is not reconganized!"

(it does really say "reconganized"blunk.gif Emoticon

What can I do?

Tuesday 09 May 2006 1:49:50 pm

Did anyone noticed any loss of content with SJSD on eZ publish 3.8.0 while storing/publishing, as described in this bug: ?

Modified on Tuesday 09 May 2006 1:50:12 pm by Kristof Coomans

Tuesday 09 May 2006 1:57:43 pm

Kristof, yes, confirmed for me with 3.8 and rev 127.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from