1 June 2006 8 comments Zope
This blog post is 16 years old! Most likely, its content is outdated. Especially if it's technical.
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>
- Previous:
- Weird spam? Or just a weird girl? 31 May 2006
- Next:
- Animator vs. Animation 8 June 2006
- Related by category:
- 'Cache-Control' or Expires 16 September 2005 Zope
- Mocking a Python standard library 14 March 2008 Zope
- Sending HTML emails in Zope 26 October 2006 Zope
- rfc822() vs. rfc1123_date() 16 August 2007 Zope
- To all Zope developers: Does this sound familiar? 8 March 2011 Zope
- Related by keyword:
- Best Atom packages of 2015 22 January 2016
- A user-friendly TinyMCE config 8 October 2009
- EditArea vs. CodePress 3 January 2008
- WYSIWYG inline HTML editors 25 July 2004
- Grep in Jed 27 January 2004
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)
BTW, I think the package is lacking a license...
You're right. Thank you for pointing it out. The license is ZPL which is GPL based but more relaxed.
uhm.... ZPL is rather BSD based, not GPL... but anyway, it's definitely much more relaxed :-)
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
Peter, http://www.fry-it.com/oss/ZTinyMCE seems to be gone? I'm trying to run ZTinyMCE on Zope 2.13 and am getting "ImportError: No module named WriteLockInterface", so I was looking if there is a newer version maybe.
Sorry, I've abandoned that project long ago. There is no new version available anywhere.
Too bad, we're still using it succesfully. I guess I'll keep a version around for me.