Forums / Developer / SJSD WYSIWYG editor based on FCKEditor for ezxmltext

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

eZ debug

Timing: Jan 18 2025 10:57:38
Script start
Timing: Jan 18 2025 10:57:38
Module start 'content'
Timing: Jan 18 2025 10:57:38
Module end 'content'
Timing: Jan 18 2025 10:57:39
Script end

Main resources:

Total runtime0.1787 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.5156180.8125
Module start 'content' 0.00640.0049 770.3281122.4531
Module end 'content' 0.01130.1673 892.7813552.3750
Script end 0.1786  1,445.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.9916200.0002
Check MTime0.00140.8095200.0001
Mysql Total
Database connection0.00080.444910.0008
Mysqli_queries0.130472.94781410.0009
Looping result0.00160.88921390.0000
Template Total0.166993.410.1669
Template load0.00110.613310.0011
Template processing0.165892.757010.1658
Override
Cache load0.00070.391710.0007
Sytem overhead
Fetch class attribute can translate value0.00070.418610.0007
XML
Image XML parsing0.00020.127010.0002
General
dbfile0.00663.7203200.0003
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs