Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Fry-IT

Fry-IT is the company I work for

Photos

Photoalbum, both old and new.

Zope

What I have and am doing with Zope

Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 

TinyMCE + Zope = ZTinyMCE

http://www.fry-it.com/oss/ZTinyMCE

tinymce, wysiwyg editor, ztinymce, wysiwyg, editor

1st of June 2006

ZTinyMCE in action This is my first release of ZTinyMCE. ZTinyMCE makes it easy to use TinyMCE, the best Open Source WYSIWYG editor in my opinion.

We at Fry-IT use this a lot for our websites as shown in the screenshots. The ZTinyMCE product works only with Zope2. Once you have it installed and you have created a ZTinyMCE instance in your root plus a ZTinyMCE Configuration object called "tinymce.conf" all you have to do to convert a plain page of HTML with textareas to a plain page of HTML with WYSIWYG textareas is this:

 <script tal:replace="structure here/tinymce.conf">
 </script>



Comment

Pablo Ziliani - 22nd September 2006  [«« Reply to this]
This is a dream come true. I've been looking for something like this for years (particluarly after testing Epoz and Kupu).
Thanks a lot Peter! (and/or Fry-IT)
Pablo Ziliani - 22nd September 2006  [«« Reply to this]
BTW, I think the package is lacking a license...
Peter Bengtsson - 22nd September 2006   [«« Reply to this]
You're right. Thank you for pointing it out. The license is ZPL which is GPL based but more relaxed.
betabug - 4th June 2008  [«« Reply to this]
uhm.... ZPL is rather BSD based, not GPL... but anyway, it's definitely much more relaxed :-)
marc - 1st September 2009  [«« Reply to this]
I just wanted to let you know that there is a problem with ZTinyMCE when having two textareas in one form each with a different .conf file. Normal elements are not a problem but custom characters or smileys are always put into the first texterea field and therefore, sometimes into the wrong field.

Your product creates the follwing:

<script type="text/javascript" src="http://foobar.com/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js">;
</script><script type="text/javascript">
tinyMCE.init({
mode:"textareas",
theme:"advanced",
editor_selector:"abstract_title",
[snip]
});
</script>

<script type="text/javascript" src="http://foobar.com/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js">;
</script><script type="text/javascript">
tinyMCE.init({
mode:"textareas",
theme:"advanced",
editor_selector:"abstract_text",
[snip]
});
</script>

But it should be (at least I got it working properly like this):
<script type="text/javascript" src="http://foobar.com/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js">;
</script><script type="text/javascript">
tinyMCE.init({
mode:"textareas",
theme:"advanced",
editor_selector:"abstract_title",
[snip]
});

tinyMCE.init({
mode:"textareas",
theme:"advanced",
editor_selector:"abstract_text",
[snip]
});
</script>

Two tinyMCE.init() within one single script. How can I achieve this with ZTinyMCE? Or am I completely wrong?

Regards,
Marc
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.