You are not logged in.
#1 2009-08-19 15:31:48
TinyMCE 3.2.6 Released
It's been a while since we last made a release due to vacation times here in Sweden. So some fixes and addons in this release where long over due.
In this release we added a new wordcount plugin this was developed by Andrew Ozz and it basically tracks the number of words you enter into the editor. It's not live as you type but it will count them if you for example press enter. This is because we didn't want to hog the CPU of the client computer to much while they type.
We replaced the API documentation in this release from using the Wiki to an generated one. We developed our own documentation tool for generating these. The wiki documentation was hard to maintain and it was also not as easy to navigate as it could be so using a traditional API browser is the way to go here. Check out the blog for details on this tool.
We also fixed lots and lots of bugs and issues in this release mostly minor bugs here and there but. We finally managed to resolve the table insert bug on WebKit, it seems that they changed how select elements work and only on Mac OS X so we missed that in the 3.2.5 release since it works fine on Windows using the same version.
Another important change in this release is that we now removed the compat2x plugin. The TinyMCE 2.x branch is deprecated and it has been 2 years now since we rewrote the API so if you are using this plugin and old 2.x API calls it's time time to rewrite that old code.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#2 2009-08-19 18:09:52
- av01d
- Member
- Registered: 2009-04-12
- Posts: 17
Re: TinyMCE 3.2.6 Released
Changed files from 3.2.5 to 3.2.6:
Removed: jscripts/tiny_mce/plugins/compat2x
New: jscripts/tiny_mce/plugins/wordcount
Changed: jscripts/tiny_mce/plugins/autoresize/editor_plugin.js
Changed: jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
Changed: jscripts/tiny_mce/plugins/fullpage/js/fullpage.js
Changed: jscripts/tiny_mce/plugins/paste/editor_plugin.js
Changed: jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
Changed: jscripts/tiny_mce/plugins/table/editor_plugin.js
Changed: jscripts/tiny_mce/plugins/table/editor_plugin_src.js
Changed: jscripts/tiny_mce/plugins/table/js/table.js
Changed: jscripts/tiny_mce/themes/advanced/color_picker.htm
Changed: jscripts/tiny_mce/themes/advanced/js/link.js
Changed: jscripts/tiny_mce/tiny_mce.js
Changed: jscripts/tiny_mce/tiny_mce_popup.js
Changed: jscripts/tiny_mce/tiny_mce_src.js
Changed: jscripts/tiny_mce/utils/form_utils.js
Last edited by av01d (2009-08-19 18:43:21)
Offline
#3 2009-08-19 19:07:39
- krusty76
- Member
- Registered: 2006-08-10
- Posts: 87
Re: TinyMCE 3.2.6 Released
Thanks for the update. Looks like some good fixes in there.
Nice work spocke & Afraithe.
Offline
#4 2009-08-19 19:31:22
- yazdog8
- Member
- Registered: 2009-04-03
- Posts: 12
Re: TinyMCE 3.2.6 Released
Nice work on the APIs as well!
Offline
#5 2009-08-20 01:29:58
Re: TinyMCE 3.2.6 Released
Thanks for update
3.2.6 looks very nice ![]()
Offline
#6 2009-08-20 13:24:03
Re: TinyMCE 3.2.6 Released
Thanks! But... is this how we detect Gecko now? (table plugin)
Code:
!tinymce.isIE
BTW: if easily possible it would be cool if the wordcount plugin would support word/char count limits as well. (probably not, since its not in real time)
Last edited by andreEz (2009-08-20 13:31:28)
eZ Publish System Developer
Offline
#7 2009-08-20 13:35:27
Re: TinyMCE 3.2.6 Released
IE does it right basically all the other browsers can't handle tables correctly so I added that check. And for those who say browser sniffing is evil, it's 100% impossible to detect what will happen when a user hits enter using a detection script so here is another example where sniffing is the only way to go.
Yes, this is my plan. Many users want this functionality so I've been thinking of adding it didn't have time to add it for this release though. If you really need it you could help out adding it. ![]()
Best regards,
Spocke - Main developer of TinyMCE
Offline
#8 2009-08-20 13:35:42
- Arsen7
- Member
- From: Earth, Europe, Poland, Olsztyn
- Registered: 2008-02-15
- Posts: 294
Re: TinyMCE 3.2.6 Released
I see that there is a fix in commit 1204 "Fixed bug where it was impossible to place the caret after a table on Gecko. It will now add a paragraph after tables.", but there is still a problem with placing the cursor BEFORE the table.
There is a trailing plugin (thread If you have troubles placing the cursor after the last table...) which solves these problems in a little different way, since it adds <p> elements before the first and after the last element in the document, and it removes them on save.
I recall that this plugin does not check whether the last element is a <table> because I probably have found some other elements, besides <table> causing these problems.
The fix from commit 1204 would not help if user deletes this added paragraph.
Maybe it would be worth to include the plugin logic into editor core?
Offline
#9 2009-08-20 13:51:53
- Arsen7
- Member
- From: Earth, Europe, Poland, Olsztyn
- Registered: 2008-02-15
- Posts: 294
Re: TinyMCE 3.2.6 Released
Bleh, my fault. I haven't read the code carefully enough. Sorry ![]()
It does remove, and it will help if the user deletes the added <p>.
Offline
#10 2009-08-20 14:06:11
Re: TinyMCE 3.2.6 Released
Gaah, all these quirks with the caret. Some times I wish I painted it my self. Anyway, I added a fix that makes it possible to place the caret before a table on Gecko it basically check if you press up/left on the first cell of a table and then manually moves the caret before the table. Grab the SVN version and try it out.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#11 2009-08-20 14:31:31
- Arsen7
- Member
- From: Earth, Europe, Poland, Olsztyn
- Registered: 2008-02-15
- Posts: 294
Re: TinyMCE 3.2.6 Released
Instead of
html = elm.innerHTML.replace(/<br|img[^>]*>/gi, '-');
shouldn't it be
html = elm.innerHTML.replace(/<(br|img)[^>]*>/gi, '-');
?
Maybe also 'object' should be included?
Offline
#13 2009-08-21 09:28:11
Re: TinyMCE 3.2.6 Released
spocke wrote:
IE does it right basically all the other browsers can't handle tables correctly so I added that check. And for those who say browser sniffing is evil, it's 100% impossible to detect what will happen when a user hits enter using a detection script so here is another example where sniffing is the only way to go.
I don't complain about the browser sniffing, just about the fact that the change log and in line code comment mention this as gecko bug, and then the code matches everything but IE. So the doc should say that all browsers but IE has this issue, so it doesn't look like a bug when you read it ![]()
eZ Publish System Developer
Offline
#14 2009-08-21 13:02:55
Re: TinyMCE 3.2.6 Released
No I just made a general point of why we some times are forced to browser sniffing. I decided to make it a more general fix since WebKit and Opera had also some issues with placing the caret after the table.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#15 2009-08-21 14:30:46
Re: TinyMCE 3.2.6 Released
Ok, I'll stop using human language now and start using code to illustrate proposed change:
Code:
Index: plugins/table/editor_plugin_src.js
===================================================================
--- plugins/table/editor_plugin_src.js (revision 92)
+++ plugins/table/editor_plugin_src.js (working copy)
@@ -55,7 +55,7 @@
}
ed.onInit.add(function() {
- // Fixes an issue on Gecko where it's impossible to place the caret behind a table
+ // Fixes an issue on non IE browsers where it's impossible to place the caret behind a table
// This fix will force a paragraph element after the table but only when the forced_root_block setting is enabled
if (!tinymce.isIE && ed.getParam('forced_root_block')) {
function fixTableCaretPos() {eZ Publish System Developer
Offline
#17 2009-08-24 12:31:33
- Mauno
- Member
- Registered: 2007-11-26
- Posts: 4
Re: TinyMCE 3.2.6 Released
Hi Spocke and Thanks for your continuous improvements of this fabulous editor!
I am sorry if this is the wrong place for my post but I appreciate any comments for this issue. Can you please move this post to other forum if it is more suitable.
The biggest open source learning environment - Moodle - with over 30 million users is going to change default editor HTMLArea after 7 years of pain to TinyMCE in coming release Moodle 2. It's a big change for many users groups who have never seen TinyMCE and don't know about all these features it has so I would be very pleased if you as the main developer of TinyMCE and users of other content management systems or learning managemant systems could comment the usability and user experiences of different buttons and plugins of TinyMCE and particularly what kind of configuration (init code) you might prefer for a default configuration if you have to leave some buttons out from 2 rows. What are the most useful buttons and are some buttons useless?
Comments from all users of TinyMCE are welcome in
http://moodle.org/mod/forum/discuss.php?d=130470
(note: some questions may be provocative...)
Offline
#18 2009-08-24 14:14:30
- ragulin
- Member
- Registered: 2009-08-24
- Posts: 1
Re: TinyMCE 3.2.6 Released
Hi, thanks for another version. How does it look like with CDN (cross-domain) implementation, please? Are you going to release it soon?
Offline
#19 2009-08-24 14:16:13
Re: TinyMCE 3.2.6 Released
There is a third party reference implementation. http://github.com/moorage/tinymce-cdn/tree/master we will do a official and very similar build soon. We haven't got a release date for it yet.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#20 2009-08-24 14:19:17
Re: TinyMCE 3.2.6 Released
@Mauno: Interesting discussion, we don't have any information regarding usability. But there may be third party developers who have done serious usability tests on it. In general it's hard to make an editor that is powerful but still easy to use for novice users, we have had common office suites as a benchmark so that the user can recognize the icons etc.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#21 2009-08-24 15:44:34
Re: TinyMCE 3.2.6 Released
@Mauno In the short run, offer a few different set configs (perhaps based on what type of users as one comment in your forum was about) and instructions on where to modify the tinymce config to add/remove buttons. In the long run, you might want to look into making a tool for administrating the TinyMCE toolbar buttons, like Wordpress and Drupal have.
Afraithe
TinyMCE Developer
Moxiecode Systems
Offline
#22 2009-08-24 17:16:44
- Arsen7
- Member
- From: Earth, Europe, Poland, Olsztyn
- Registered: 2008-02-15
- Posts: 294
Re: TinyMCE 3.2.6 Released
I have just found another caret-placing problem: it's not easy to place the caret after a list (<ol>|<ul>). It's possible, but hard.
So, the trailing plugin I was talking about is not yet obsolete ![]()
Offline
#23 2009-08-25 09:29:18
- Mauno
- Member
- Registered: 2007-11-26
- Posts: 4
Re: TinyMCE 3.2.6 Released
Thank You once again, Spocke and Afraithe!
Your comments were extremely valuable for our usability testing - http://moodle.org/mod/forum/discuss.php … 70#p573585
Keep up your good work - TinyMCE rules!
Regards,
Mauno
Offline
#24 2009-09-10 01:20:11
Re: TinyMCE 3.2.6 Released
Thanks again for all the hard work. You've managed to fix several key issues that we've been trying to work around.
Lately we've been spending a lot of time trying to debug issues with the fix_table_elements (we are migrating from an old active-x editor which loves to generate invalid content). You've managed to fix several of the issues, but I noticed that there seems to be a regression from 3.2.4.1.
The following simple sample now causes a JavaScript error in IE7 and IE8 (I didn't test IE6, and Firefox works just fine).
<p><table><tr><td>foo</td></tr></table></p>
Thanks again for all the great work!
Best Regards,
Matt
Last edited by mrupe (2009-09-10 01:23:52)
Offline
© 2003-2010