XMLArea extension development

Author Message

Rami Grossman

Wednesday 16 March 2005 7:27:36 pm

I updated to the latest revision (537) and still it doesn't remove the unsupported tags.
If you can't reproduce the bug I can send you the word document from which I pasted the text. send me your email to ramigg<at>hotmail.com
I have more bugs:
I tried to paste text from http://www.kabbalah.info/engkab/science_and_kabbalah/articles_by_rav_laitman/inner_reflection.htm

It puts everything into a table. I removed the table and left only the text. It works very strange with the text under li tags.
try it. First it puts all the li text together even if on the doc. it is found in diferent places. Secondly after I manualy removed unsupported tags and saved, the text under li tags had dissapeared.

Thanks for your fast replies. It is very important for us to have a good and working editor.

STEVO +

Thursday 17 March 2005 4:31:18 am

yes some things are not being removed still. i thought a quick fix would work, sorry.

please do send your word document to stevoland+ez [at] gmail [dt] c0m. i haven't looked much yet at dodgy html pasted into the editor.

the main problem with parsing the page you've suggested comes from the very fact that there are no <li> tags in it! i admit though that the editor should probably be able to handle this or fail more gracefully.

i would suggest, however, that if it is very important for you to have a good editor for this sort of stuff that you buy the online editor.

liu spider

Thursday 17 March 2005 8:34:46 am

&quot; issue is not resolved: I use the latest svn, and I still have to use that workaround mentioned in the previous post. thanks.

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

Rami Grossman

Thursday 17 March 2005 11:25:32 am

We did buy the eZ publish online editor. It has its own bugs. To say the truth we liked your editor better.

liu spider

Thursday 17 March 2005 4:27:24 pm

the left most edit mode button is broken again:
in file ./design/standard/templates/content/datatype/edit/ezxmltext.tpl
line 51 should be:
_editor_indexfile = {''|ezurl};

as the latter formatIndexFile will make sure that _editor_indexfile is ending with "/"

otherwise, in virtual host install, _editor_indexfile == "//" can cause the above problem

thanks

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

liu spider

Thursday 17 March 2005 6:54:53 pm

is_block overwrite support in object tags:
This is adopted from ezxml output handler. Without this support, the object tag is always displayed as "block" element, rather than inline (I need something like this: when I did not assign the align property, then it should be inline. Of course, I edit two tpl files to achieve this as well, in addition to this patch)

this is the patch:

Index: /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php
===================================================================
--- /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php  (revision 541)
+++ /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php  (working copy)
@@ -287,11 +287,24 @@
             $tagText2 = implode( '', $textElements );^M
 ^M
             $res->removeKey( 'classification' );^M
-            ^M
-            ^M
-            ^M
+^M
+                    // Check if the template overrides the block flow setting^M
+                    $isBlockTagOverride = 'true';^M
+                    if ( $tpl->hasVariable( 'is_block', 'xmltagns:ContentView' ) )^M
+                    {^M
+                        $isBlockTagOverride = $tpl->variable( 'is_block', 'xmltagns:ContentView' );^M
+                    }^M
+                    else if ( $tpl->hasVariable( 'is_block', 'xmltagns' ) )^M
+                    {^M
+                        $isBlockTagOverride = $tpl->variable( 'is_block', 'xmltagns' );^M
+                    }^M
+^M
+                    if ( $isBlockTagOverride == 'true' )^M
+                        $isBlockTag = true;^M
+                    else^M
+                        $isBlockTag = false;^M
             if (!$standalone)^M
-                return $tagText2;^M
+                 return $tagText2;^M
             else^M
                 return array( $tagText,^M
                               $tagText2 );^M

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

Xavier Dutoit

Friday 18 March 2005 12:40:16 am

fresh from the svn:

xmlarea add an extra "}" before the xmlarea.

Do you have the same problem (ez 3.5.2 svn) ?

http://www.sydesy.com

STEVO +

Friday 18 March 2005 5:49:40 am

sorry liu, i misunderstood you. &quot; in literals is fixed now. also added your other 2 fixes.

i've removed yesterday's attempted fix to removed invalid tags cos it was causing more trouble. this shouldn't be a major problem though.

xavier - i'm not getting a stray } with 3.5.1. i've removed all the comments in ezxmltext.tpl incase this was the problem...

finally, i'm off on holiday next week so i hope it's in usable order til then.

liu spider

Friday 18 March 2005 8:25:13 am

thanks. All outstanding issues are solved in the SVN ;)

enjoy your holiday

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

Xavier Dutoit

Monday 21 March 2005 11:34:24 am

Ok, I don't have any more problem with xmlarea since I've modified two things:
extension/xmlarea/design/standard/templates/content/datatype/edit/ezxmltext.tpl

added on the default at the top:
edit_lang=''
edit_version=''

I still have a problem: I don't want my user to upload images in the default media location, but under the current node.

Would it be easy to hack ? Would it make sense to you to make something cleaner and offer that as an option in the .ini file ?

X+

http://www.sydesy.com

liu spider

Monday 21 March 2005 11:50:23 am

>I still have a problem: I don't want my user to upload images in the default media location, but under the current node.

I prefer this way too.

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

Stéphane Cloutier

Tuesday 22 March 2005 2:58:14 pm

When trying to insert/modify an object, the popup window dowload "layout.com" website. I haven't seen anyone else with a similar problem. Any ideas?

Using
ezp 3.5.1
xmlarea 0.2

Qupanuaq - Snow bunting

liu spider

Tuesday 22 March 2005 3:40:56 pm

Under windows/IE, I have exactly the same problem. However, my site works perfectly under Mozilla

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

Stéphane Cloutier

Wednesday 23 March 2005 6:02:13 pm

This is happening in my Mozilla browser.

Qupanuaq - Snow bunting

liu spider

Wednesday 23 March 2005 7:51:53 pm

in mozilla (no matter under windows or not), my virtual host installation works just fine.

STEVO:
I found another bug: xmlarea can not handle < or > in normal text (not under literal/pre)

this is the patch:
http://scim-im.org/lt_gt.patch

BTW: I am writing an xmlarea manual, anyone are welcome to contribute ;)
http://www.scim-im.org/wiki/documentation/about_documentation/editor_manual

thanks

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

Brendan Pike

Wednesday 23 March 2005 10:50:15 pm

Anyone else noticed that in Firefox upon page load xmlarea is stuck on until you click in a xml field then any other field?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Stéphane Cloutier

Thursday 24 March 2005 9:46:06 am

From where is 'layout.com' coming from when inserting an object? Is it within the XMLarea code or something else???I'm using Mozilla 1.7.5

When using IE, the popup windows redirects to a "page note found" error message. This only happens when trying to inser/modify an object. Adding a link or an anchor work fine though.

When using Firefox, I get the glish.com website. Something is very wrong here, but I can't pin point it down.

Qupanuaq - Snow bunting

Xavier Dutoit

Monday 28 March 2005 3:22:01 am

Hi,

I've hacked the xmlarea upload screen so you can use children images (not only related ones).

If you're interrested, what's the best way of contributing back ? svn diff ? svn commit ?

X+

http://www.sydesy.com

liu spider

Monday 28 March 2005 3:32:57 am

svn diff is a good idea ;)

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

STEVO +

Friday 01 April 2005 6:10:18 am

back again!

liu - i've added your patch, cheers for that.

stéphane - i'm afraid i've no idea at the moment where your crazy insert object urls are coming from.

xavier - if you want to email your hacked files to stevoland+ez [at] gmail [dt] com, i'll integrate it, thanks.

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