Forums / Developer / XMLArea extension development

XMLArea extension development

Author Message

Lonnie VanZandt

Friday 07 January 2005 1:45:31 pm

Related to the positioning of the toolbar: I wonder if my absolute positioning, multi-layering CSS stylesheet is going to conflict with how the XMLArea toolbar gets positioned and seen. Depending on Z-ordering, it may get buried. I'd rather have the toolbar pin itself to the XML area that it is associated with.

On a related note, why can't I justify paragraphs (or at least assign them CSS classes) in the XML area? Not even with this very promising editor...

Gabriel Ambuehl

Saturday 08 January 2005 3:07:07 am

Switching it on/off doesn't seem to work without clearing caches (interestingly, it doesn't seem to work at all if view caching is deactivated) for me either.

Another thing I'd really like is to set a default (i.e. active) as most users will simply be very confused if there's HTML in the field. Or maybe even force them use one or another?

Otherwise it's a very fine extension. Thanks!

Visit http://triligon.org

STEVO +

Saturday 08 January 2005 2:17:02 pm

lonnie:

if you set the z-index in htmlarea.css ludicrously high it should always be on top no? in the future i'll set the position of the toolbar as an option as eirik's suggested.

off the top of my head i seem to remember reading that in 3.5 you can set a classification in paragraphs so i'll try to implement something like that after the big bugs are sorted. these classes would be removed by anyone editing an object without the editor though.

gabriel:

you can set it on by default in xmlarea.ini. having said that, nobody with an accurate browser id + javascript switched on should see html in the textarea. if the editor is off the normal ezxmltext input should be shown. this sounds like it might be related to the caching confusion which i'll look into in a week or so.

thanks now

liu spider

Tuesday 25 January 2005 8:56:03 am

Nested list is supported in eZ publish 3.5 series. this is the patch:

Index: ezxmltext/handlers/input/xmlareaxmlinput.php
===================================================================
--- ezxmltext/handlers/input/xmlareaxmlinput.php        (revision 504)
+++ ezxmltext/handlers/input/xmlareaxmlinput.php        (working copy)
@@ -71,7 +71,7 @@
         $this->SubTagArray['literal'] = array( );
         $this->SubTagArray['custom'] = $this->SectionArray;
         $this->SubTagArray['object'] = array( );
-        $this->SubTagArray['li'] = $this->SubTagArray['section'];
+        $this->SubTagArray['li'] = $this->SubTagArray['paragraph'];
         $this->SubTagArray['strong'] = $this->InLineTagArray;
         $this->SubTagArray['emphasize'] = $this->InLineTagArray;
         $this->SubTagArray['link'] = $this->InLineTagArray;

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

STEVO +

Tuesday 25 January 2005 9:29:09 am

you must be psychic liu, i'm working on the lists right now, it's a bit more complicated than that though; processing the xhtml that's spat out of the browser editors.

this is roughly the order i'm fixing bugs in:

input processing
- lists
- special characters
- literals
- object linkurl + linktarget
- more reliable + flexible custom tags

templates
- caching issues
- integrate customjs module with ezxmltext template

frontend editor
- ie bugs
- option to use online editor style menubars
- ability to relate objects from insert object dialog

any more important preferences, anyone?

Gabriel Ambuehl

Tuesday 25 January 2005 10:29:16 am

Personally I'd say fixing the caching is by far the most important one. After all, if you can't activate it, what good is fixing other bugs....

Visit http://triligon.org

STEVO +

Tuesday 25 January 2005 10:48:20 am

good point, well made!

Eirik Alfstad Johansen

Tuesday 25 January 2005 11:02:57 am

Hi STEVO,

The #1 reason why I haven't implemented your extension yet, is that it seems to add to URIs in links each time an xmlarea is edited.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

STEVO +

Tuesday 25 January 2005 11:23:18 am

i'm not with you there eirik, could you explain more clearly?

STEVO +

Tuesday 25 January 2005 5:48:03 pm

i've looked into the on/off bug + it's the same as this:

http://ez.no/community/forum/general/ezpreferences_in_login_tpl_need_a_cache_block

it uses an ezpreference which isn't being changed until the user logs out or the object is published. i'm fairly sure that i hadn't noticed this before because i've just recently upgraded to the stable 3.5.0 + it worked previously with rc2. it still works on my website which i haven't upgraded yet, tsk, tsk. any ideas?

i've added a temporarily fix in pubsvn rev. 506. the only updated file is:

http://pubsvn.ez.no/websvn/filedetails.php?repname=community&path=%2Ftrunk%2Fextension%2Fxmlarea%2Fdesign%2Fstandard%2Ftemplates%2Fcontent%2Fdatatype%2Fedit%2Fezxmltext.tpl&rev=0&sc=1

this removes the on/off user preference altogether.

ideally i'd like to do it the online editor way with a submit button so no input is lost when switching editors but i've no idea how to add custom http content/actions in an extension.

liu spider

Tuesday 25 January 2005 9:09:46 pm

I added another temporary fix to the problem:
http://ez.no/community/forum/general/ezpreferences_in_login_tpl_need_a_cache_block

BTW: sorry, but you are wrong, I am not psychic liu ;)

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

Eirik Alfstad Johansen

Tuesday 25 January 2005 11:41:40 pm

Hi STEVO,

Let me elaborate on how the problem occurs:

1. Create a link in the xmlarea using an URI as the href, for instance "/products".
2. Send the object for publishing.
3. Re-enter the object in edit mode, and modify the link.

The URI has now been changed to "/index.php/corporate_admin/products".

If I repeat step 2 and 3, the URI changes to "/index.php/corporate_admin/index.php/corporate_admin/products" and so on.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

liu spider

Wednesday 26 January 2005 8:04:15 am

I do not have the link problem

my eZ is installed in a virtual host, version is 3.5.1 (SVN HEAD)

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

STEVO +

Wednesday 26 January 2005 10:22:38 am

cheers for the patch, liu. could you report the bug?

fixed the url bug in pubsvn rev 507. me being daft again.

xmlarea/design/standard/templates/xmlarea/ezxmltags/link.tpl:

<a href="{$href}" {section show=$target}target="{$target}"{/section}>{$content}</a>

Eirik Alfstad Johansen

Wednesday 26 January 2005 11:41:45 pm

Hehe. Guess we're getting too used to the ezp template syntax when we start putting the ezurl operator everywhere. :) Thanks for the fix, STEVO!

any more important preferences, anyone?

Not exactly an important preference, but I was thinking that it would be great for novice users to be able to click a button in the link dialog box to go off browsing for a node on the site and then use the selected node's url_alias as an URI. It shouldn't be too hard to implement either, running something like this when the button is clicked:

include_once( 'kernel/classes/ezcontentbrowse.php' );

$module =& $Params['Module'];

eZContentBrowse::browse( array( 'action_name' => 'ProductTopNodeBrowse', 'from_page' => "/link/dialog_box/uri" ), $module );

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

STEVO +

Thursday 27 January 2005 11:56:23 am

nice idea eirik, i was thinking much the same meself. it'll have to wait a bit though. btw, what happened to them proposal specs one of which related to a new link + object syntax?

STEVO +

Tuesday 01 February 2005 6:04:29 am

i've added nested list support (a bit of a drrty hack that might have some problems) + sorted the anchors in pubsvn rev 509.

STEVO +

Thursday 03 February 2005 12:24:42 pm

pubsvn rev 513 has literals working properly, a special characters button + inserted object attributes saved correctly.

i'm going to improve the custom tag handling a bit then get on with the javascript + css issues 'specially with ie. anything else?

liu spider

Thursday 03 February 2005 9:57:29 pm

thanks a lot for your work.
Looking forward to the full support of custom tags ;)

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

liu spider

Thursday 03 February 2005 10:04:00 pm

Just found a bug:
when I edit the Features list in http://www.scim-im.org/projects/skim
the latest xmlarea, all the item are empty, and the sub list items are missing.

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