Forums / Setup & design / 3.1 stable -> Online editor - what is it possible to do ?

3.1 stable -> Online editor - what is it possible to do ?

Author Message

laurent le cadet

Thursday 26 June 2003 7:23:11 am

I try again to build custom table with the latest version.
What I see is that now we can set the width of the table like we want.
But I can't write html tags(tag are not allowed) :

- <html>.....</html>
- <br />
- <div>
- ...

Another thing, when I turn the editor on, the image which are set size="original" are automaticly set to "small". It's a problem 'cause I use a lot "original" size, very usefull, so I need to turn the editor off and then rewrite "small" to "original" :(

In fact only few things can be done with the editor in this version.

Is there another way to write directly html in article and folder or is there a patch ?

Thx.

Laurent

Karsten Jennissen

Thursday 26 June 2003 7:32:54 am

Hi Laurent,

it is not intended that direct html is included in the articles. If you are missing certain tags, you can set up custom tags (much like in version 2.2).

Karsten

laurent le cadet

Thursday 26 June 2003 7:35:24 am

Is there a tutorial for this ?

Karsten Jennissen

Thursday 26 June 2003 7:42:47 am

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/how_do_i_create_a_custom_tag

laurent le cadet

Thursday 26 June 2003 8:22:22 am

Many thx.

Wenyue Yu

Sunday 29 June 2003 5:38:37 am

Hi,

The easier way to create html code in 3.1 with editor is using literal tag.
First of all, edit content.ini under folder settings, add following line under block [literal]

AvailableClasses[]=html

Secondly, edit override.ini.append under forder settings/siteaccess/your_site(admin, for example)/ by appending following:

[html_code]
Source=content/datatype/view/ezxmltags/literal.tpl
MatchFile=html.tpl
Subdir=templates
Match[classification]=html

The last thing to do is create html.tpl and put it under design/your_site(admin,for example) /override/templates/. The tpl may only contain one line:
{$content}

After all this is done, when you edit an article using editor, whenever you need to write html code, just insert literal tag and set it to class "html", then you will get the desired result.

Actually, lots of thing can be done using class attribute introduced in 3.1 such as render table, table cell in different style, assign color, font to header, list and many more. What you need to do is just creating different template files for each defined class.

About the image size "original", since ez publish 3.1 does not support it totally, ( no template for rendering), so does the online editor. But we will support it in later releases.

Regards,
Wenyue

laurent le cadet

Monday 30 June 2003 1:16:55 am

Hi,
Thanks a lot for repplying.
Just 1 thing : What do you mean by set it to class html ?

I tryed differents way but no results :(

Wenyue Yu

Wednesday 02 July 2003 8:13:31 am

Hi,

If you're using OE, when you click "insert literal" button, a window will popup where you can choose class "html" from the list. ( you should define it in content.ini first); If you're not using OE, just write <literal class="html">html_code</literal>.

Regards,
wenyue

laurent le cadet

Thursday 03 July 2003 1:16:37 am

Great Wenyue !

It works very well :) :)
Many thanks for your help.

Adi Rotea

Thursday 03 July 2003 4:06:17 am

This should output html formatted content or just the html code like using the html <PRE> tag?

I ask this because thats happened after i've tried this myself...my article shows the html code and not the html formatted contend as i've expected.

Have I done somethig wrong? :)

I followed the exact steps described above by wenyue yu ....

Please answer me....

Wenyue Yu

Thursday 03 July 2003 4:24:17 am

Hi,

It should show html formatted contend.
Have you cleaned all your catch before test?

Regards,
wenyue

Adi Rotea

Thursday 03 July 2003 4:58:30 am

OK:):):)

Works fine....
Thanks a lot....

But another question....
How will afect this the "Articles in PDF" feature or any other feature that will be included in the next releases of eZ publish? Or it is recomended to use this (knowing that the eZ publish doesn't encourages the use of html tags in articles)?

I'm sorry for all this questions but i find eZ publish a great product and I want to know as mutch as possible about it.

Thanks,
Adi

eZ debug

Timing: Jan 18 2025 10:54:07
Script start
Timing: Jan 18 2025 10:54:07
Module start 'content'
Timing: Jan 18 2025 10:54:09
Module end 'content'
Timing: Jan 18 2025 10:54:09
Script end

Main resources:

Total runtime1.6278 sec
Peak memory usage4,096.0000 KB
Database Queries225

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.8594180.8125
Module start 'content' 0.00711.4920 768.6719689.1250
Module end 'content' 1.49910.1286 1,457.7969344.4141
Script end 1.6277  1,802.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2729210.0002
Check MTime0.00180.1108210.0001
Mysql Total
Database connection0.00090.053610.0009
Mysqli_queries1.526293.76092250.0068
Looping result0.00230.14192230.0000
Template Total1.595298.020.7976
Template load0.00180.111020.0009
Template processing1.593497.884420.7967
Template load and register function0.00010.006310.0001
states
state_id_array0.00090.054110.0009
state_identifier_array0.00150.095220.0008
Override
Cache load0.00170.1066830.0000
Sytem overhead
Fetch class attribute can translate value0.00130.082450.0003
Fetch class attribute name0.00120.0742130.0001
XML
Image XML parsing0.00090.058450.0002
class_abstraction
Instantiating content class attribute0.00000.0022170.0000
General
dbfile0.00490.3034270.0002
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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
24content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 57
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs