TinyMCE with eZPublish?

Author Message

Carlos Revillo

Wednesday 25 July 2007 5:03:38 pm

Hello. I want to let my users add articles to my site. i also let these users to format his article using tinymce editor. i got it working quite good.
So, i have a texarea and this textarea can be formatted with tinymce. this content should be stored in a xml block attribute.

I have tested some options and seems to be quite. if i add a table or an urordered list, i can see this list in my xml block attribute.
but i can't make it work for images.

I mean, if my textarea looks like

<ul>
<li>1</li>
<li>2</li>
</ul>
<img src="../src.jpg" />

only the list is stored in the field, but not the code for the image....

i think it could be a issue related to content.ini, but i can't make it work.

so, is there any way to let the posibilities to let the users insert images in his own contents through tinymce, as they can with list and tables?.
Thanks a lot.

André R.

Wednesday 25 July 2007 6:00:04 pm

I'm currently working on the same thing as a time off project, maybe we should collaborate ?

I have started rewriting the advimage plug in to work with ez, but I haven't had much time completing it yet..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Carlos Revillo

Thursday 26 July 2007 12:33:03 am

it should be very nice to collaborate. maybe we can create an extension for tinymce as it exists for fckeditor...

btw, i'm not using the advimage plugin, cause it doesn't let me the possibility to upload new images...

so, i tried with mceimagemanager, a plugin you can find at tinymce website, but it is no free cost

So, i have searched for another plugins and i found another one. It's called ibrowser and works quite good. Take a loot at http://pascal.vanhecke.info/2005/08/25/image-upload-plugin-for-tinymce/ if you want.

But i told before, i can't save the html for inline images in my xmlblock field...

please tell me how can i help you.

André R.

Thursday 26 July 2007 3:15:58 am

Give me a week, and I will try to have something more to show. And the project section should be up soon as well, thats where I'm going to put it together with a search engine thing I scrambled together earlier this summer.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Xavier Dutoit

Monday 06 August 2007 10:00:49 am

Time flies ;)

Anything visible yet ?

http://www.sydesy.com

André R.

Tuesday 07 August 2007 4:10:15 am

Soon, had birthday this weekend so ended up doing anything else then this ;)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

André R.

Thursday 16 August 2007 5:07:33 am

Preview available here:
http://ez.no/community/contribs/hacks/tinymce_xhtml_editor

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Xavier Dutoit

Thursday 16 August 2007 6:40:04 am

Bon anniversaire, donc.

X+

http://www.sydesy.com

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 19 2025 15:16:09
Script start
Timing: Jan 19 2025 15:16:09
Module start 'layout'
Timing: Jan 19 2025 15:16:09
Module start 'content'
Timing: Jan 19 2025 15:16:09
Module end 'content'
Timing: Jan 19 2025 15:16:09
Script end

Main resources:

Total runtime0.7095 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0469152.6094
Module start 'layout' 0.00500.0024 741.656339.4141
Module start 'content' 0.00740.7007 781.0703640.0313
Module end 'content' 0.70810.0014 1,421.101620.1875
Script end 0.7095  1,441.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4910160.0002
Check MTime0.00150.2113160.0001
Mysql Total
Database connection0.00050.067210.0005
Mysqli_queries0.641790.4368740.0087
Looping result0.00060.0864720.0000
Template Total0.681096.020.3405
Template load0.00240.332920.0012
Template processing0.678695.647920.3393
Template load and register function0.00020.032410.0002
states
state_id_array0.00070.102810.0007
state_identifier_array0.00060.087520.0003
Override
Cache load0.00210.2955420.0000
Sytem overhead
Fetch class attribute can translate value0.00060.079630.0002
Fetch class attribute name0.00110.1509100.0001
XML
Image XML parsing0.00110.156030.0004
class_abstraction
Instantiating content class attribute0.00000.0040140.0000
General
dbfile0.00230.3171230.0001
String conversion0.00000.001140.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs