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

Sunday 23 April 2006 8:25:03 pm

Added you in SF, you should now be able to write to svn

Some of the servers I maintain still stick with php 4.3, so I have to stand with it for a little longer

so far, it does work all right with ez 3.6, so let's see what we can get

btw: development of SJSD is better discussed in a more appropriate place, I set up two mailing list:

we can discuss SJSD related stuff in sjsd-devel ML

Monday 24 April 2006 9:15:52 am

Hi Iiu

I have the same problem with svr rev59!


Monday 24 April 2006 9:53:38 am

@Sinisa: which problem do you mean?

Monday 24 April 2006 3:14:50 pm

Hi Kristof

I have the same problem that you have fixed in php4.4!

Last entered text is duplicated.

Best regards,

Modified on Monday 24 April 2006 3:37:01 pm by Siniša Šehović

Monday 24 April 2006 3:57:09 pm

Sinisa, can you provide me the source of what you've entered in the text field? Use the second last button of the editor to view it's source.

Are you sure you're using an export of the trunk?

Monday 24 April 2006 5:03:31 pm

Hi Kristof

Yes I am using the latest svn rev.

here is a code:

<p>This is a simple test.</p>
<p>Now I will try something!<br />I hope this is working!</p>

Ez Source:

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image=""
    <line>Now I will try something!</line>
    <line>I hope this is working!</line>
    <line>Now I will try something!</line>
    <line>I hope this is working!</line>

You can see how text is duplicated.


Modified on Monday 24 April 2006 5:05:11 pm by Siniša Šehović

Monday 24 April 2006 7:04:58 pm

I can't reproduce your problem on my installation. Are you really sure you are using the latest SVN revision of the trunk ( ) and not a release tag? Which version of eZ/PHP are you using?

@liu and dariusz:
Wether the input of ezxmltext or ezauthor is converted to UTF8 (no matter what encoding you're using for the attribute's db fields), depends on the ContentXMLCharset setting under the RegionalSettings group in site.ini. If it equals "enabled", then the internal charset will be used (the one defined in i18n), if it equals "disabled" it converts the content to UTF8. Any other value is assumed to be a charset and will be used for conversion. I think it's quite easy to take this setting into account for SJSD, it only needs to be used when finally serializing the DOM tree to an XML string. The first parameter for the toString function of eZDOMDocument is the charset it needs to use.

Monday 24 April 2006 7:55:23 pm

to Sinisa:
I upgraded php to 4.4.2 and use ez 3.7 now. I confirmed the issue and fixed it in svn r60, please have a try

to Kristof:
Thanks, I think I know the problem now:

                //Do not use eZXMLTextType::domString, for it is impossible to disable
                //specialchar conversion: & eZXMLTextType::domString( $dom );
                $domString =& $dom->toString(true,false,false);

eZXMLTextType::domString will do the conversion automaticall

to dariusz:
I made an attempt to fix it. Please try svn r61 and report whether it works for you

Modified on Monday 24 April 2006 8:08:17 pm by liu spider

Monday 24 April 2006 8:31:28 pm

I've inspected your fix and it looks almost perfect, but I think the second parameter ($charsetConversion) for eZDOMDOcument::toString has to be true instead of false.

This one's becoming a really good extension, you're doing a great job! blunk.gif Emoticon

Edit: sorry I already forgot about the devel mailinglist. Will use that next time.

Modified on Monday 24 April 2006 8:34:25 pm by Kristof Coomans

Monday 24 April 2006 8:51:54 pm

to Kristof:
oops, a stupid bug, fixed in svn r62

to dariusz:
Please try svn r62 instead of r61, and report whether it works for you

Tuesday 25 April 2006 12:22:30 am

Hi liu and Kristof,

Thank you for all the work you are doing to help us, it works now with PHP 4.4.2 happy.gif Emoticon

However, there is some problems with :

- Underline, Strike, subscript and superscript because we lost the text selected

- Increase and Decrease because i have error :
<<Intro: tag 'ol (ol)' is not allowed as children of 'ol', removed while text content is retained; ;Unknown node: >>

I am using PHP 4.4.2, Apache 1.3.33, ez 3.7 and r62

Best regards

Tuesday 25 April 2006 5:51:48 am

to marc meskini:
first issue is fixed in svn (clear your server cache after you update svn)

the second issue will be fixed, a bug to track it:

Tuesday 25 April 2006 9:10:45 am

Hi Iiu and Kristof!

Now I can use SJSD editorhappy.gif Emoticon

Great job.

I do have some problems with adding object in editor.
Browse is not working.

Error: error/view.php Apr 25 2006 09:06:56 

Error ocurred using URI: /layout/set/sjsd/sjsd/browse?ReturnType=1&MultiSelect=1 

Warning: Insufficient permissions Apr 25 2006 09:06:56 
Function required:
 Module : sjsd
 Function : 
 ClassID : 
 MainNodeID : 
Policies that didn't match:


Error: eZTemplate Apr 25 2006 09:06:56

parser error @ extension/sjsd/design/standard/templates/sjsd_pagelayout.tpl:10[16]
Extra characters found, should have been a whitespace or the end of the expression
Characters: '= 'browse' ' 

Error: eZTemplate @ extension/sjsd/design/standard/templates/sjsd_pagelayout.tpl:22[7] Apr 25 2006 09:06:56 
Unknown template variable 'title' in namespace '' 

I do have user role with right permissions for SJSD.

Best regards,

Tuesday 25 April 2006 10:57:17 am

I've reported the second one as a bug:

I couldn't reproduce the first one. Do you have a policy for layout/set?

Tuesday 25 April 2006 2:06:36 pm

Hi Kristof

I can only set policy for layout/*, not for layout/set?

Now I have error on browse:

Line 27:
Error: Object doesn't support this property or method

In ez_embed_browse.js

okbutton.addEventListener('click', okClicked, false);


Modified on Tuesday 25 April 2006 4:00:13 pm by Siniša Šehović

Tuesday 25 April 2006 2:09:22 pm

Hi Iiu

Formating of table is not working!
Is this function operational?

If I try to change size of a cell to 70% and background color to #something after publish
table is shown without these settings.

Best regards,

Tuesday 25 April 2006 3:06:19 pm

Just tried with 3.6.3 and hit this error on publish:

Fatal error: Call to undefined function: implodewithtypecast() in /site/extension/sjsd/ezxmltext/handlers/input/sjsdxmlinput.php on line 187

Looks like this function was added to the dbinterface in 3.6.5 so the doc may need updated.


Modified on Tuesday 25 April 2006 3:17:24 pm by Paul Forsyth

Tuesday 25 April 2006 4:19:19 pm

to Sinisa:
which browser do you use?

table funtions you mentioned are not supported by native ezxml format, so you will lost them

to Paul Forsyth:
Thanks for the info, will update the related docs

Tuesday 25 April 2006 4:21:05 pm

Forgot to mention:
3.6.x support may be dropped soon, php 4.3.x has too much issues to work smoothly with references

Tuesday 25 April 2006 4:56:58 pm

Its a shame but I understand.

Im looking at spell checking but i cant get it going for some reason. From the FCK site it does include support. Locally i have 'aspell' and chosen the fckeditor.js option to use SpellerPages but still no go. Did you get this working?

Update: I found the button...!

Modified on Tuesday 25 April 2006 5:02:05 pm by Paul Forsyth


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

36 542 Users on board!

Forums menu

Proudly Developed with from