Forums / Developer / XMLArea extension development

XMLArea extension development

Author Message

STEVO +

Thursday 24 February 2005 1:53:42 am

spellcheck:

the spellbound extension does work if you get rid of xmlareaPlugins[]=ContextMenu in xmlarea.ini. i'll look into adding a button on the toolbar that'll allow you to turn the context menu on/off. i'll also look into adding the perl spellcheck plugin soonish.

liu:

thanks for the patch i've added it to the latest revision which also contains big changes.

now, a normal textarea with normal ezxmltext input is shown to everyone unless the htmlarea actually instantiates. this is how i should've done it initially + effectively it makes all the server side browser checking redundant. so, the question is, should i leave this browser checking in - as it stops those who haven't a chance of running the thing from having to download all the javascript - or get rid of it?

also, d'you reckon it's ready for a beta release yet or what?

Eirik Alfstad Johansen

Thursday 24 February 2005 2:10:32 am

Hi STEVO,

also, d'you reckon it's ready for a beta release yet or what?

Since I'm already using it on a couple of production sites, I reckon a big yes! :)

Sincerely,

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

STEVO +

Thursday 24 February 2005 5:24:58 am

nice one, eirik + well done on getting rid of horrible, wide page number 3!

liu spider

Thursday 24 February 2005 2:53:12 pm

stevo: could you consider apply this patch:

Index: ezxmltext/handlers/output/xmlareaxmloutput.php
===================================================================
--- ezxmltext/handlers/output/xmlareaxmloutput.php      (revision 520)
+++ ezxmltext/handlers/output/xmlareaxmloutput.php      (working copy)
@@ -469,7 +469,7 @@

             case 'object' :
             {
-                $tagText = $this->renderObjectTag(&$tpl, &$tag, &$isBlockTag );
+                $tagText = $this->renderObjectTag($tpl, $tag, $isBlockTag );
             }break;

             case 'table' :
@@ -659,7 +659,7 @@
             // custom tags which could added for special custom needs.
             case 'custom' :
             {
-                $tagText = $this->renderCustomTag(&$tpl, &$tag, &$currentSectionLevel, &$tdSectionLevel, &$childTagText );
+                $tagText = $this->renderCustomTag($tpl, $tag, $currentSectionLevel, $tdSectionLevel, $childTagText );

             }break;
             case 'link' :

in moden php versions, when calling a function using references, you do not need to specify &

Agree for beta version too.

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

STEVO +

Friday 25 February 2005 2:36:17 am

mornin' all,

i've done that liu thanks once again.

i've just added the perl spellcheck plugin (don't ask me how to configure it) + a 'contexttoggle' button that turns the custom context menu on/off to allow the use of spellbound or whatever. you'll have to turn both of these on in xmlarea.ini.

beta release on monday i reckon. woohoo.

liu spider

Friday 25 February 2005 4:25:40 am

thanks.

Another question: how can I go back to the WYSIWYG mode after I toggle the edit mode to html source? Is there a shortcut or do I have to reload the edit page?

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

STEVO +

Friday 25 February 2005 5:51:53 am

liu:

if you mean the 'editmode' button that's now on the left, that shows the ezxmltext input then the toolbar should stay at the top + you can click it again to return. if the toolbar dissapears, then it's a bug i haven't seen.

if you mean the 'htmlmode' or now, 'debug' button that's on the right + shows the html produced by the editor then this is a bug i have seen but haven't got round to fixing yet. you can avoid it by first switiching 'editmodes' to xml + back before using this button.

liu spider

Friday 25 February 2005 9:40:02 am

I meant the left most button, the first senoria you mentioned.

I changed another machine, and now the problem is gone. Sorry for bothering.

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

STEVO +

Wednesday 02 March 2005 6:33:06 am

now then,

i've removed server side browser check ( so there's now need for ezbrowsersniff), replaced javascript remote scripting with xmlhttprequests + released a beta version:

http://ez.no/community/contribs/applications/xmlarea

i'll prolly leave it alone for a while now.

cheers

Mauro Innocenti

Thursday 03 March 2005 7:59:48 am

I'm new to eZ, but I successfull installed and configured in VirtualHost mode, creating also a new site from scratch.

I enabled XMLArea extension following instructions and It worked! but I'm not able to enabling popus, e.g. for editing a link!
I'm getting allways the "kernel (20) / Error The requested page could not be displayed.".

My apache conf contain, for my eZ VirtualHost setup:

RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php

Is It correct?

Thanks for help!

Mauro

STEVO +

Thursday 03 March 2005 8:08:16 am

change this to

RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf|html|htm)$ /index.php

+ they should work. some of the popups are just static html files + your rule was catching them + redirecting them to index.php

Pablo C. Vergara Castro

Friday 04 March 2005 1:21:03 am

Hi to all.

In this time I'm using the fantastic XMLArea extension but ever when I use the object relation link I have to modify two files to see the right css and preview, the files are:

object.tpl and xmlarea_pagelayout and the updates are:

object.tpl:

...
  <script type="text/javascript" src={'/extension/xmlarea/design/standard/javascript/popup.js'|ezroot}></script>
  <script type="text/javascript" src={'/extension/xmlarea/design/standard/javascript/pagestyle.js'|ezroot}></script>
...
  

xmlarea_pagelayout.tpl

 

...
    <link rel="stylesheet" type="text/css" href={'/design/admin/stylesheets/core.css'|ezroot} />
    <link rel="stylesheet" type="text/css" href={'/design/admin/stylesheets/site.css'|ezroot} />
...
  

I hope this will be usefull.

Mauro Innocenti

Friday 04 March 2005 1:33:08 am

Thanks,
the setting work right, but only with eZ installed with one of the standard demo sites (I selected "corporate").
In my installation from scratch (no demo sites) the popups still don't work.
I think I must find the correct eZ settings for siteaccess...

Another question (bugs?):
I tested XMLArea with Firefox 1.0.1 and Linux Fedora Core 3 (same host running eZ on apache 2).
- In standard article's edit pages (admin) are two textarea enabled with XMLArea and when I click with right mouse button for opening the context menu this appear allways on top of the first textarea, even when I'm editing the text of the second...
- The '<>' Edit mode button of the toolbar is not working for me

Thanks a lot,
Mauro

Pablo C. Vergara Castro

Friday 04 March 2005 3:14:20 am

Hi to all.

I'm using the xmlarea 0.2 in one of my sites and I can't see the menu buttons using IE6.

SORRY SOORRYY... I COULD FIND THE MENU BUTTONS....¡at the left-bottom of the page :_(!

Know anybody what is the problem?

Greetings (and thanks in advances)

STEVO +

Friday 04 March 2005 3:48:01 am

pablo -

bah, i somehow managed to leave htmlarea.css out of the .zip. i've sorted it now in 0.2.1 + added your ezroot fixes too.

i'll get the hang of realeasing stuff one of these days, apologies.

liu spider

Friday 04 March 2005 3:48:46 pm

it seems that alignment center of object in xmlarea will generate some code like this:
<object id="116" size="banner" align="middle" />

however, according to eZ doc, align="middle" should be align="center"

(I am using latest svn)

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

Fraser Hore

Saturday 05 March 2005 1:14:39 pm

Thanks for creating this fantastic extension!

I have only one problem, I don't know how to configure the .htaccess file. I found this in the forum...

RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf|html|htm)$ /index.php

... and copied into the .htaccess file but still no popups (e.g. for tables)

Could you please tell me exactly what I must put in the .htaccess file.

Thanks,

Fraser

liu spider

Saturday 05 March 2005 7:40:07 pm

found another issue: the <> "Toggle Edit Mode" button on the left side of the toolbar stops working (latest SVN), in the mozilla javascript console I got:

Error: [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

any ideas? thanks.

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

liu spider

Sunday 06 March 2005 3:23:46 pm

The patch for virtual host popup is gone again in 521 (it was incorporated in 520).

Could you check it steve?

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

liu spider

Sunday 06 March 2005 3:51:53 pm

I find the problem which causing the <> button stop working: another virtual host issue.

if I change:
398 line of

xmlhttp.open("POST", _editor_indexfile + "/xmlarea/xmlhttp/"+mode, true);

to

xmlhttp.open("POST", "/xmlarea/xmlhttp/"+mode, true);

it works fine. (In virtual host setup, _editor_indexfile = "/")

Of course, after this modification, non-virtual host users can not use it. I think, maybe a dedicated path_checking routine is needed in javascript to auto detect what the path should be.

Thanks.

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

eZ debug

Timing: Jan 18 2025 04:21:37
Script start
Timing: Jan 18 2025 04:21:37
Module start 'content'
Timing: Jan 18 2025 04:21:38
Module end 'content'
Timing: Jan 18 2025 04:21:38
Script end

Main resources:

Total runtime1.0553 sec
Peak memory usage4,096.0000 KB
Database Queries272

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.3516180.8359
Module start 'content' 0.00730.8808 770.1875912.5625
Module end 'content' 0.88820.1671 1,682.7500392.4375
Script end 1.0553  2,075.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4236210.0002
Check MTime0.00150.1433210.0001
Mysql Total
Database connection0.00060.058910.0006
Mysqli_queries0.907886.01852720.0033
Looping result0.00370.35422700.0000
Template Total1.015796.220.5078
Template load0.00220.210020.0011
Template processing1.013596.031020.5067
Template load and register function0.00010.012510.0001
states
state_id_array0.00100.096810.0010
state_identifier_array0.00090.089120.0005
Override
Cache load0.00230.22151340.0000
Sytem overhead
Fetch class attribute can translate value0.00130.127670.0002
Fetch class attribute name0.00130.1257250.0001
XML
Image XML parsing0.00420.395270.0006
class_abstraction
Instantiating content class attribute0.00010.0086380.0000
General
dbfile0.00290.2743500.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
18content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
20content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
34content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 90
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs