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.

eZ debug

Timing: Jan 31 2025 03:34:25
Script start
Timing: Jan 31 2025 03:34:25
Module start 'layout'
Timing: Jan 31 2025 03:34:26
Module start 'content'
Timing: Jan 31 2025 03:34:27
Module end 'content'
Timing: Jan 31 2025 03:34:27
Script end

Main resources:

Total runtime1.2898 sec
Peak memory usage8,192.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2578151.2266
Module start 'layout' 0.00480.0045 739.4844220.7188
Module start 'content' 0.00931.2796 960.20314,497.2031
Module end 'content' 1.28890.0008 5,457.406311.8125
Script end 1.2897  5,469.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2587160.0002
Check MTime0.00130.0980160.0001
Mysql Total
Database connection0.00060.047010.0006
Mysqli_queries1.194492.6084650.0184
Looping result0.00060.0501630.0000
Template Total1.233495.620.6167
Template load0.00220.174320.0011
Template processing1.231195.451620.6156
Template load and register function0.00230.176810.0023
states
state_id_array0.00100.078510.0010
state_identifier_array0.00240.186420.0012
Override
Cache load0.00190.1461280.0001
Sytem overhead
Fetch class attribute can translate value0.00160.120430.0005
Fetch class attribute name0.00230.174660.0004
XML
Image XML parsing0.00340.262330.0011
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00550.4243170.0003
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs