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