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

Siniša Šehović

Tuesday 18 April 2006 8:06:08 am

Hi Iiu

Thanx for quick reply.
Where is the config option to tell just to code part of code not a whole html page?

S.

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

liu spider

Tuesday 18 April 2006 8:26:51 am

no option for that

in fact, if you edit in fckeditor (not by pasting), it won't generate the html/header etc tags at all (or if you know how to, please tell me)

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 18 April 2006 12:04:55 pm

Hi Iiu

So what is wrong with my installation?
How to solve this problem?
I have eZ publish 3.7.6 with disabled ezdhtml extension.

Best regards,
S.

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

Tobias Persson

Tuesday 18 April 2006 12:36:03 pm

Sinisa:
I don't think there is something wrong. (I only tried it with 3.7.3, but there it works nice).

Just remove all tags from what you enter into the editor

So from your example you should just have

  <html>     <head>         
<title></title>    
 </head>     
<body>         
this is what i want to publish     
</body>  
</html> 

you should only enter

this is what i want to publish

 

Siniša Šehović

Tuesday 18 April 2006 2:41:21 pm

Hi Tobias

Strange but text that I have entered is just "this is what i want to publish"!??

HTML code is after I have pressed seccond button from the right on SJSD.

S.

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

Siniša Šehović

Wednesday 19 April 2006 2:43:10 am

Hi Iiu

I have reinstalled all from svn trunk rev.47!

Now I see well formatted html but can't publish!??

My input text is replaced with last one.

Let's say I have text :

This is nice!

Have a nice day!

Hello there

After publishing I get

Hello there

Hello there

Hello there

and notice that I need to have text in field!??

And what is more interesting in my Article class I have two xmltext attributes.
In first everything is ok, but problem is with second one.

Best regards,
S.

I am using iso-8859-2 encoding. Is that a problem?

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

meskini

Wednesday 19 April 2006 7:28:25 am

Hi Liu,

I'm using FCKEditor and i've been having some problems with apostrophe character, for example :

<<l'école>> is replaced by <<l&apos;école>>

I'm using the French language.

Any help is much appreciated.

Thank you

liu spider

Wednesday 19 April 2006 10:48:44 am

to Sinisa:
give svn r49 a try (you'd better clear all your sever cache as well as client cache)

to marc meskini:
yes, it is tricky. Have a look at how SJSD does the job properly

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

Zdenek Ziegler

Wednesday 19 April 2006 11:53:45 am

Hi,
my problem seems to be similar to that of Roberto. In url based, I'm able to see ez source, but when I press publish, I get Input required for my Intro xml field. I installed firebug, in virtual host environment, I get this error:

uncaught exception: Permission denied to call method XMLHttpRequest.open (line 0)

When I press publish, I get this error:

Fatal error: Call to a member function on a non-object in /public_html/extension/sjsd/ezxmltext/handlers/input/sjsdxmlinput.php on line 882

I have no ideas what to do with this :(
Thank you for your help,
Zdenek

liu spider

Wednesday 19 April 2006 12:31:30 pm

to Zdenek Ziegler:
I think I fixed the virtual host bug in svn r50
(clear all of your server cache, especially template related ones)

if you still has that "Call to a member function on a non-object" error, tell me which line it is (with the latest svn version please)

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

Zdenek Ziegler

Wednesday 19 April 2006 1:33:01 pm

Yes, I can see ez source now.
But I still get that error

Fatal error: Call to a member function on a non-object in /extension/sjsd/ezxmltext/handlers/input/sjsdxmlinput.php on line 882

I don't get this error when I write only text in xml field. I get it when I insert a table.
In ezsource, I get this(firebug):

result[1] has no properties  ez_source.js (line 34)

liu spider

Wednesday 19 April 2006 2:44:03 pm

to Zdenek Ziegler:
you are right.

fixed in svn r51

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

meskini

Wednesday 19 April 2006 3:26:30 pm

Hi Liu,

I’m using rev50 and i have the same problem than Sinisa : after publishing i get only the fisrt line repeted many times.

Best regards

MESKINI

Dariusz Wlodarczyk

Wednesday 19 April 2006 3:32:55 pm

The encoding is stil not working properly...

I write:


<?xml version="1.0" encoding="UTF-8"?>

UTF-8 is only for example :)

Now we have in database UTF-8 in header for all cases, but fonts are encoded in other codepages too. In my case polish letters are encoded in iso-8859-2 too. So you must check (I don't know where) what encoding must be set in xmltext header, and _not_ set allways UTF-8...

liu spider

Wednesday 19 April 2006 3:46:33 pm

to marc meskini:
sorry, but I can not reproduce that issue. Please state your PHP/eZ/SJSD version, whether it is virtual host install or not

to Dariusz Wlodarczyk:
do not use more than one encoding for your website. UTF-8 is always the ideal one. Make sure you configure your eZ use UTF-8 and store data in UTF-8 to database as well

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

Siniša Šehović

Thursday 20 April 2006 2:33:39 am

Hi Iiu

I have latest SJSD from svn rev56.
EZpublish 3.7.6 and virtualhost setup.

Duplicating last text input is similar to:
http://ez.no/community/forum/developer/ezsurvey_ext_forgets_questions_because_of_php4_4_ez3_7/re_ezsurvey_ext_forgets_questions_because_o__4

BTW, what is a "tag" release? What's the difference?

Best regards,
S.

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

Zdenek Ziegler

Thursday 20 April 2006 3:04:33 am

Thank you, it's ok now.

Dariusz Wlodarczyk

Thursday 20 April 2006 10:09:31 am

I use only one encoding (iso-8859-2) in my setup, but I don't know why xmltext fields in database are encoded with UTF-8. Nevermind beacuse this works correct to the moment when I start use SJSD...

When I use simplexmlhandler all xmltext fields are encoded in UTF-8, but when I use SJSD to edit them the fonts are encoded in iso-8859-2 but in header is still UTF-8 (after your last corrections) :(

liu spider

Thursday 20 April 2006 10:17:56 am

to Sinisa:
try revision 57 please, and report whether it works for you
every version will be tagged, so that it will be always easy to check out a particular version

to Dariusz Wlodarczyk:
SJSD does not convert text to utf-8, it just assumes all input is utf-8 (or compatible). You may try to specify utf-8 as your html encoding, as well as for mysql database in eZ ini files

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

Dariusz Wlodarczyk

Thursday 20 April 2006 12:42:38 pm

Ok but I think the mutch better way (an only good solution for all cases) is to SJSD detect what codepage is used and write proper value of encoding in xmltext field header...

Of course it is possible to change encoding in my site configuration, but other things connected with this change are dificult. My database have now ca. 300MB, must work all time without any pause and I have access to it only using phpMyAdmin (with 4MB limit of uploaded file size) :(

So please... if it's possible change your handler to work like simplexmlhandler with characters encoding :)

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

36 542 Users on board!

Forums menu