Path

ez.no / developer / contribs / applications / xmlarea


XMLArea

Author Version Downloads Compatible with
STEVO + 0.2.2 2138 3.5
A GPL version of the Online Editor based on HTMLArea.

Should be compatable with:

eZPublish 3.5
Mozilla 1.3+
Firefox 0.8+
IE 5.5+

Description

Demo
----

You can see a demo by heading to:

http://www.stevoland.org/work/projects/xmlarea

+ leaving a comment.

Installation
------------

Copy xmlarea 'extensions'.

Ensure your .htaccess allows requests for .js + .html through (for the popups).

Deactivate the Online Editor. I haven't got a copy but I presume they'll conflict.

Activate extension + clear your caches.

Give the anonymous role rights to the xmlarea module.

Screenshot

XMLArea in Firefox
XMLArea in Firefox

Changelog

0.2:
added nested list support
added editing properties for all tags
added insert special character plugin
added perl spellcheck plugin
added toggle custom context menu button
removed server side browser check
replaced javascript remote scripting with xmlhttprequest
fixed loads of javascript bugs ('specially in ie)
much improved custom tags system
generally tidied things up

0.11b:
fixed links to js files to work with installations in sub directories.
fixed language_code bug

Comments

please help

i have a little bug and no ideas for fix it:
i edited text with ' character in a xmltext; when viewing it in public web it appears like his entity. I have tested many combinations (switching on/off xmleditor... ' instead of ') nothing works.
Any ideas??

thanks

forum thread

please leave bug reports + suggestions etc here:

http://ez.no/community/forum/developer/xmlarea_extension_development

thanks now

@Xavier

fixed this in pubsvn rev 488,

cheers

Works great but an error message

Hello,

fresh from svn (both ez and xmlarea), when I turn the editor on, I got the following error message:


Error: eZTemplate @ extension/xmlarea/design/standard/templates/content/datatype/edit/ezxmltext.tpl:50[20] Dec 20 2004 12:50:16

Unknown template variable 'edit_language' in namespace 'ContentAttribute'

Any of you has something like that ? Maybe a difference in our config somewhere ? I'm ready to try to change ezxmltext.tpl, but I'd love to understand why I experience this problem and you don't.

X+

@liu spider

Stevo has recently joined the pubsvn community developers on http://pubsvn.ez.no

xmlarea lives in

http://pubsvn.ez.no/community/trunk/extension/xmlarea/

It's svn, not cvs

But I recommend the websvn interface to walk around there

-paul

some php warnings

thanks a lot for this GPLed OE!

I just installed it and works fine. However, I enabled the "all warning" in php, so I can see several warnings:

the reference symble is not needed at line
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php on line 520
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php on line 699

Missing argument 2 for xmlareaxmloutput() in /home/scim/public_html/ez/extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php on line 45

Very small issues, hope this will be fixed in the next version.

BTW: why not open a project in sourceforge and setup a cvs or migrate this to the ez pubsvn?

Thanks again.

Adding rewriting rule for .js execution

I had to face the same difficulty as Stuart DH did, and I managed to solve the problem by adding a .js execution rewriting rule directly in the Apache's configuration files.

You can try something like that :

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

And of course, thanks a lot Stevo for this great contribution !

sorry

those files are in the extension/xmlarea folder

No initeditor.js or xmlarea folder

Not sure why, but I don't seem to have design/standard/javascript/initeditor.js

or

design/standard/templates/xmlarea

I've definitely not deleted them.

BTW - no problems with your demo on IE6 or Firefox

hmm

curiouser + curiouser. that all seems fine; the second call is commented out as it should be. the eZ errors are unrelated. i pressume the demo works for you?

http://www.stevoland.org/stevo/projects/xmlarea

if so there must be something going on with the downloading of the scripts. try adding 'alert("1");' at the top of design/standard/javascript/initeditor.js and 'alert("2");' inside the initEditor() function to see if the file is downloaded + the function run. also add one to design/standard/templates/xmlarea/customjs.tpl.

Two onloads

Hi StevO,

Thanks for the info

It certainly looks as though the script tags are there so no problems there.

I ran a search for onload and it's in there twice

window.onload=function() {initEditor();};


and halfway down the page just below Maincontent End it's marked out...

    /*window.onload=function()


Debug is showing

Error: eZTemplate @ extension/xmlarea/design/standard/templates/content/datatype/edit/ezxmltext.tpl:50[20] Dec 12 2004 11:16:27
Unknown template variable 'edit_language' in namespace 'ContentAttribute'
Warning: PHP Dec 12 2004 11:16:27
Missing argument 2 for xmlareaxmloutput() in /extension/xmlarea/ezxmltext/handlers/output/xmlareaxmloutput.php on line 45


Cheers

Stuart

@Stuart DH

that's odd. i'm using it with 3.5rc2 fine.

view your html source + check if a load of [script] tags appear above the first ezxmltext textarea. if not this is a bug with setting and checking the global variable $xmlarea_loaded in design/standard/templates/content/datatype/edit/ezxmltext.tpl. this is a flag that makes sure that certain javascripty things are only included for the first ezxmltext of the page. i can't repeat this so dunno what to do?

if the [script] tags are there then it's a javascript problem. i suspect:

window.onload=function() {initEditor();};

is being overwritten somewhere in your pagelayout so the editor's never initiated. do a search for onload in your html source + if there's more than one you'll need to find which template the other's in + work around it.

3.5RC2?

Has anyone else tried to run this in 3.5 RC2? I've had a go at installing it and whilst I get the turn on editor/turn off editor links below my text box I don't get any changes in the browser (IE6 xpsp1 and Firefox 1).

Probably something simple that I've missed out.

Could someone post the rewrite rule that's needed to make it work so that I can compare and differences in my .htaccess

Thanks

cheers

i've just noticed a couple of bugs in ie with regard to attaching objects. the demo also currently looks dodgy in ie5.5 due to my css layout.

the toolbar should appear at the top of the browser, this is intentional. in mozilla it dissappears when you're not focused on an ezxmltext area.

i probably won't be doing much more work on this til after christmas cos a) i've actually got paid work to do for a change + b) it's completely done my head in!

very well

- the link does work when you select a text first

Problems

the toolbar is displayed not along with the text area it shows up on top of the browser

How about you contribute this to the pubsvn... http://pubsvn.ez.no

Amazing

That is one extremely impressive piece of work.

Everything seemed to work for me (On both IE6 and Firefox) except the add a link bit, which just didn't add anything at all.

Other than that, I love it :)

Tim

Nice!

Well done.

A little buggy but its almost there.

log in or create a user account to comment.

Contribution info (beta)

Download