adding HTML directly into the online editor?

Author Message

John Bett

Friday 18 September 2009 7:05:32 am

Hello

How can I directly add/edit the HTML in the online editor 4.3.1 in the admin system? I can use the WYSIWYG buttons for simple edits. But I want to paste in large amounts of HTML we already created into the XML Block field.

I've used other editors that have a button that allows a user to view and edit the HTML directly. Is this possible?

Jaime Smith

Friday 18 September 2009 7:26:25 am

You need to click the "disable editor" button directly below the edit area. That will convert all OE areas on the page to plain textareas where you'll be able to insert your HTML. Remember that not all HTML elements work in ezPublish, so you may get some garbling when it's converted into ezPublish XML when you submit.

Jaime Smith
Senior Developer
Certified ezPublish Developer
http://www.duoconsulting.com > Duo Consulting, Chicago, IL, USA

John Bett

Friday 18 September 2009 7:45:24 am

Wow!! Nothing I tried to included worked. lt seems lots of tags can't be used. Even simple tags like DIVs or DL.

How can I expand the list of allowed tags?

Peter Keung

Friday 18 September 2009 8:59:32 am

in content.ini:

[literal]
AvailableClasses[]
# The class 'html' is disabled by default because it gives editors the
# possibility to insert html and javascript code in XML blocks.
# Don't enable the 'html' class unless you really trust all users who has
# privileges to edit objects containing XML blocks.
AvailableClasses[]=html

then, enter

<literal class="html">

all your stuff ...

</literal>

(or use the "Literal" button when the editor is enabled)

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

John Bett

Friday 18 September 2009 9:43:22 am

Thank you Peter this worked out great.

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