Wednesday 12 April 2006 5:56:35 pm - 236 replies
This thread is for the project SJSD (contribute: http://ez.no/community/contribs/a...d_real_fckeditor_xmltext_integration )
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 ![]()
<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).
DEBUG PHP:
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.
<b>BEFORE REPORT BUGS</b>
Please check bugs and "feature requests" sections in our homepage: http://sf.net/projects/scim
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:
http://sourceforge.net/mail/?group_id=164632
we can discuss SJSD related stuff in sjsd-devel ML
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="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>
<line>Now I will try something!</line>
<line>I hope this is working!</line>
</paragraph>
<paragraph>
<line>Now I will try something!</line>
<line>I hope this is working!</line>
</paragraph>
</section>
You can see how text is duplicated.
S.
Modified on Monday 24 April 2006 5:05:11 pm by Siniša Šehović
Monday 24 April 2006 7:04:58 pm
@Sinisa:
I can't reproduce your problem on my installation. Are you really sure you are using the latest SVN revision of the trunk ( https://svn.sourceforge.net/svnroot/sjsd/sjsd/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
@liu:
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! ![]()
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
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 ![]()
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:
http://sourceforge.net/tracker/in...&group_id=164632&atid=832503
Tuesday 25 April 2006 9:10:45 am
Hi Iiu and Kristof!
Now I can use SJSD editor![]()
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:
and
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,
S.
Tuesday 25 April 2006 10:57:17 am
I've reported the second one as a bug: http://sourceforge.net/tracker/in...&group_id=164632&atid=832503
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);
S.
Modified on Tuesday 25 April 2006 4:00:13 pm by Siniša Šehović
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.
paul
Modified on Tuesday 25 April 2006 3:17:24 pm by Paul Forsyth
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!