SJSD WYSIWYG editor based on FCKEditor for ezxmltext

Author Message

Petr Mifek

Sunday 21 May 2006 8:40:00 am

I wish i could reproduce it, or better, how to avoid it. It manifests in all your SJSD releases and svn's from 0.3.0. Maybe it was connected with 3.7.6 to 3.8.0 upgrade. (3.8.1 aka latest trunk doesn't help). I'm really sorry not to know what triggered it on mine installation. I hardly remeber, that it >was< working somday, but maybe it >wasn't< working with images.

So, what i've found:

in sjsd/modules/sjsd/xmlhttp.php there was an recursion in 'GetRelationList' "function". There is already one notice and unset to avoid recursion while getting related image by you:

//ContentObjectAttribute has to be unset, it leads to recursion
unset($content->ContentObjectAttribute);

I must extend it this way:

//ContentObjectAttribute has to be unset, it leads to recursion
unset($content->ContentObjectAttribute);
unset($objectattr->DataTypeCustom);

in order to avoid recursion. It works, but i've no time to figure out what exactly was happening.

If anybody wants, I can send you the (part) of var_dump() of the recursed structure. The DataTypeCustom attribute of the ezcontentobject contains some DOM structure with references to parents, childrens etc, which (according to php's var_dump recursion detection) makes the recursion.

liu spider

Sunday 21 May 2006 8:59:48 am

are you saying fixed the problem with an extra unset?

I am interested in the var_dump output. I do not find any problem with recursion in that variable (and most others do not either AFAICT)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Petr Mifek

Sunday 21 May 2006 9:49:18 am

I see, and it makes me really frustrated ;) Please take a look. I've created a "bug report" on sf.net, with debug and phpinfo attached.

By the way, what is the inteded behavior of Insert Object when i choose a file from "Related files" in pop-up dialog? It gives me somtehing like this in FCKEditors source

<img width="32" height="32" title="11str" alt="11str" src="/share/icons/crystal-admin/32x32/mimetypes/pdf.png" class="transparent-png-icon" /><br />

and the submit to ez then chokes with

Required attribute 'href' is not presented in tag <embed>.

liu spider

Sunday 21 May 2006 9:56:20 am

Yes, I saw your bug report

it should insert something like this:
<img align="middle" title="Folder" _ez_embed="1" alt="{&quot;align&quot;:&quot;center&quot;}" src="/ez38/share/icons/crystal/16x16/filesystems/folder.png" />

(all the information is stored in the alt attribute)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Artturi Markko

Saturday 27 May 2006 7:22:52 am

Hello,

I've installed sjsd from svn (rev 154) + fckeditor 2.3b on ez 3.8.0 and tried to paste from a simple word file with a colored text.

I get this when clicking on the pasted text : <i>Detected unknown tag "span", removed</i>,
<i>Detected unknown tag "div", removed</i>

And when I try to save, I get this :

 The draft could not be stored.
Required data is either missing or is invalid:
    * Description: Unknown tag: <o:p>. Wrong closing tag : </o:p>.

Apart using "Paste as plain text", is there anything I can do about that ?

Regards,
Artturi

liu spider

Saturday 27 May 2006 7:50:59 am

uhm, the pasting from word will lost important format, such as:
you copy a list in word, it will be converted to <p> tags when pasted into html, so it is pretty useless

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

liu spider

Saturday 27 May 2006 7:14:13 pm

after re-checking, I think this can be fixed

it should be ok with svn r160 now

do not forget to clear your browser cache after upgrade (note: firefox under windows can not clear cache reliably)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Artturi Markko

Sunday 28 May 2006 7:28:07 am

Hello,

I've tested r160, works better :)
Just a thing : When I paste from a bullet list (using paste from word) with colored text, I get :

Attribute 'type' is not allowed in <ul> element.

Thanks,
Artturi

liu spider

Sunday 28 May 2006 10:23:50 am

you can ignore these warnings safely

extra attributes will be removed automatically

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Nguyen Tien Hy

Monday 05 June 2006 4:04:55 am

I use "SJSD WYSIWYG editor based on FCKEditor for ezxmltext" in my site (sjsd extension).

I opend an article, then inserted an image by clicking on "Insert Object" button on sjsd toolbar. "Insert Object" dialog-box appeared with "Loading Related Objects..." message. There is really an related image object.

I waited for loading done. A dialog-box appeared (see the attached image). I clicked OK, then get a message "JSON request error: Service Unavailable (503)".

+ What is JSON?
+ How to setup "JSON"?

liu spider

Monday 05 June 2006 6:26:33 am

Do you use CGI php?

please give me the full output of the server response (use firebug)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Kristof Coomans

Monday 05 June 2006 11:17:58 pm

Hi Nguyen Tien Hy

Please report any bugs in SJSD at it's sourceforge project page, and not in the eZ systems bug tracking system at ez.no ( http://ez.no/community/bugs/json_request_error_service_unavailable_503 ). eZ systems is not involved in the developement of SJSD.

Thank you!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nguyen Tien Hy

Tuesday 06 June 2006 6:09:14 pm

Hi Liu Spider,

I don't use CGI in PHP. Does SJSD requires CGI?

liu spider

Tuesday 06 June 2006 6:30:25 pm

if you skim through this thread, you should have known that SJSD does not work with CGI

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

niklas szekely

Thursday 08 June 2006 3:12:06 am

Hello,

I've tried to install SJSD but it doesn't work. I get a JavaScript error:

"Error: FCKeditor is not defined
Source File: http://www.tractebel.com:8000/Tractebel_admin/content/edit/1/5/eng-GB
Line: 396"

I'm logeed in as an administrator, I have emptied the cache both on the server and in the browser. I get the same error in IE and Firefox.

Any ideas?

/Niklas

liu spider

Thursday 08 June 2006 8:38:11 am

check whether you can access the FCKeditor in your webserver, directly (you can see the address of it in the source code of the editing page)

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Coulibaly Ibrahim

Tuesday 13 June 2006 11:51:18 pm

hello,

this is my firt time to use your extension: it seem to be great.

but it doesn't work with my eZP 3.8 ;)

i've several js errors and then i can't see toolbar. so no editor :(

Philipp Simon

Sunday 18 June 2006 2:54:55 am

Same Problem here. Installed it, get the "Enable" button, but then I get JavaScript errors like:

Unknown toolbar item "EZ_Format
... EZ_Link, etc.

Anyone knows how to fix this?

Phil

liu spider

Sunday 18 June 2006 8:51:20 am

which SJSd version do you use?

the 0.3.x release only works with fckeditor 2.2

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Philipp Simon

Sunday 18 June 2006 11:14:49 am

Ok, that's it. Thanks a lot. All of you having Javascript errors, use FCKEditor Version 2.2, not the current release 2.3! Now everything works fine.

Phil

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.