Share » 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 8:56:35 am - 236 replies

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

Author Message

liu spider

Sunday 23 April 2006 11:25:03 am

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

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

Siniša Šehović

Monday 24 April 2006 12:15:52 am

Hi Iiu

I have the same problem with svr rev59!

S.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Monday 24 April 2006 12:53:38 am

@Sinisa: which problem do you mean?

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

Siniša Šehović

Monday 24 April 2006 6:14:50 am

Hi Kristof

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

Last entered text is duplicated.

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Monday 24 April 2006 6:57:09 am

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?

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

Siniša Šehović

Monday 24 April 2006 8:03:31 am

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.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Monday 24 April 2006 10:04:58 am

@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.

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

liu spider

Monday 24 April 2006 10:55:23 am

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

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

Kristof Coomans

Monday 24 April 2006 11:31:28 am

@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.

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

liu spider

Monday 24 April 2006 11:51:54 am

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

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

meskini

Monday 24 April 2006 3:22:30 pm

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

liu spider

Monday 24 April 2006 8:51:48 pm

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/index.php?func=detail&aid=1475934&group_id=164632&atid=832503

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

Siniša Šehović

Tuesday 25 April 2006 12: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.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Tuesday 25 April 2006 1:57:17 am

I've reported the second one as a bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1475996&group_id=164632&atid=832503

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

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

Siniša Šehović

Tuesday 25 April 2006 5:06:36 am

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.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Tuesday 25 April 2006 5:09:22 am

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,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Paul Forsyth

Tuesday 25 April 2006 6:06:19 am

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

liu spider

Tuesday 25 April 2006 7:19:19 am

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

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

liu spider

Tuesday 25 April 2006 7:21:05 am

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

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

Paul Forsyth

Tuesday 25 April 2006 7:56:58 am

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...!

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

36 542 Users on board!

Forums menu