1

Topic: TinyMCE 3.0 Alpha 1 Released

Finally, we have been very busy working on the next version of TinyMCE, planning started just before summer, and with about 2 months of continuous coding, a new version has arrived, this is a complete rewrite of the TinyMCE core. The release is still in Alpha, there are several known issues with this version, and we still suggest you get the 2.1.2 version if stability is your major concern.

From a pure feature point of view, this release might not be very impressive, but if you are interested in JavaScript and do a lot of custom development, this is the release you have been waiting for. One of the main focuses for the new 3.x branch is to produce a more powerful API and also make it output valid XHTML code by default.

Some of the more notable changes are:

* Rewrote the core and most of the plugins and themes from scratch.
* Reduced the over all script size by 33% and the number of files/requests by 75% so it loads a lot faster.
* Added new and improved serialization engine, faster and more powerful.
* Added new inlinepopups plugin, the dialogs are now skinnable and uses clearlooks2 as default.
* Added new contextmenu plugin, context menus can now have submenus and plugins can add items on the fly.
* Added new skin support for the simple and advanced themes you can alter the whole UI using CSS.
* Added new o2k7 skin for the simple and advanced themes.
* Added new JSON parser/serializer and JSON-RPC class to the core API.
* Added new cookie utility class to the core API.
* Added new Unit testing class to the core API only available in dev mode.
* Added new Safari plugin, fixes lots compatibility of issues with Safari 3.x.
* Added new on demand loading of plugins and themes. Enables you to load and init TinyMCE at any time.
* Added new unit tests in the dev package of TinyMCE. Runs tests on the core API, commands and settings of the editor.
* Removed all button images and replaced them with CSS sprite images. Reduces the number of requests needed.
* Removed lots of language files and merged them into the base language files. Reduces the number of requests needed.
* Removed lots of unnecessary files and merged many of them together to reduce requests and improve loading speed.
* Fixed so convert_fonts_to_spans are enabled by default. So no more font tags.
* Fixed so all classes from @import stylesheets gets imported into the editor.

Thats right, its now 33% smaller and loads even quicker than before! The fastest loading editor just got even faster!

Check out the complete changelog for more information about changes. Not all changes actually made it into the change notes, there are just so much.

A new example of the alternative Office2k7 skin can be seen here:
http://tinymce.moxiecode.com/example_sk … ample=true

There is still a lot more to come, a service for better handling of the language packs is one of the bigger changes that will come very soon, we would recommend you wait with helping us out with translations before more about that has been announced.

We also updated the Spellchecker and Compressor for TinyMCE 3.0 Alpha.

The Alpha version is live on this server and the Wiki example pages. If you wish to try it out yourself, go to the download page.

Thank you for using TinyMCE!

Afraithe
TinyMCE Developer
Moxiecode Systems

2

Re: TinyMCE 3.0 Alpha 1 Released

I'm getting a JS error, I made sure to update the spell checker and compressor but I get this:

tinyMCE.addToLang is not a function

Its originating from here:
tiny_mce_gzip.php?js=true&diskcache=true&core=true&suffix=&themes=advanced&plugins=style%2Clayer%2Ctable%2Cadvhr%2Cadvimage%2Cadvlink%2Cemotions%2Cpreview%2Cspellchecker&languages=en

Firebug shows this:
eval(undefined)tiny_mce_gzip.js (line 181)
loadScripts(1, "advanced", "style,layer,table,advhr,advimage,advlink,emotions,preview,spellchecker", "en", undefined, undefined)tiny_mce_gzip.js (line 76)
init(Object themes=advanced, undefined, undefined)tiny_mce_gzip.js (line 28)
[Break on this error] undefined

Disabling the gZip makes it work. Maybe there was a change to the gZip invocation code I missed.

3

Re: TinyMCE 3.0 Alpha 1 Released

Strange. Verify that you deleted the previous spellchecker since the lang directory was removed in the 2.0a1 release but the compressor will load it anyway if it exists. Also make sure that the gzip disk cache is cleared by removing any .gz files.

Best regards,
Spocke - Main developer of TinyMCE

4

Re: TinyMCE 3.0 Alpha 1 Released

http://tinymce.moxiecode.com/example_sk … ample=true help shows 3.0a2
http://wiki.moxiecode.com/examples/tiny … ple_01.php 3.0a1

there is an alpha 2 too? smile

do you have a time line for 3.0 release ? or can you estimate a date when you will release it?

5

Re: TinyMCE 3.0 Alpha 1 Released

Fantastic!

just because you're not paranoid, doesn't mean everybody isn't out to get you.

6

Re: TinyMCE 3.0 Alpha 1 Released

No content in popups with this error, as reported by firebug:

tinyMCEPopup is not defined
tinyMCEPopup.requireLangPack();

Cache was 100% empty.

7

Re: TinyMCE 3.0 Alpha 1 Released

Super! When will it be production-ready?

8

Re: TinyMCE 3.0 Alpha 1 Released

I fixed my problem by deleting the entire plugins directory and just uploading the files anew, as was mentioned, the lang directories were still there so TinyMCE was attempting to load them.

I do have one other problem, sometimes the Spellchecker is throwing this at me: spellchecker.no_mpell - what does it mean?

9

Re: TinyMCE 3.0 Alpha 1 Released

I just released a minor upgrade the 3.0a2 that fixes some of the more critical bugs. It fixes the popup errors issue and a critical IE bug, we will continue to release alphas, the betas, release candidates and finally some stable version. We don't have a time line for this but we will place a lot of focus on it so we hope to have a final stable version out before the end of this month but it all depends on how many bug we found etc.

We will also focus a lot on the documentation now by adding the API documentation to the Wiki and also write a "migration guide" for 2.x plugins over to the new 3.x API.

Best regards,
Spocke - Main developer of TinyMCE

10

Re: TinyMCE 3.0 Alpha 1 Released

Afraithe wrote:

There is still a lot more to come, a service for better handling of the language packs is one of the bigger changes that will come very soon, we would recommend you wait with helping us out with translations before more about that has been announced.

I don't use tinymce but if you need help translating it to Portuguese send me what you need to be translated by email.

.. and congratulations for this new version.

Francisco A

11

Re: TinyMCE 3.0 Alpha 1 Released

Great work, nice to see the menu icons composited to a single image+css great!, I have just one issue at the moment save_callback : does not appear to work?, taking a look at the menu code for 3.0a2 with firebug there seems to be no action assigned:

<a id="c1_save" class="mceButton save mceButtonEnabled" title="Save" onmousedown="return false;" href="javascript:;">

in 2.1.2 this was:

<a id="mce_editor_0_save" class="mceButtonNormal" target="_self" onmousedown="return false;" onclick="tinyMCE.execInstanceCommand('mce_editor_0','mceSave');return false;" href="javascript:tinyMCE.execInstanceCommand('mce_editor_0','mceSave');">

any suggestions appreciated!

12

Re: TinyMCE 3.0 Alpha 1 Released

Spocke/Afraithe,

Is it possible for the new clearlooks2 inline popups to be retro-fitted into the 212 release?

13

Re: TinyMCE 3.0 Alpha 1 Released

File a bug report and I will take a look at it. None of the button assignment will be visible in the code since we use event listeners instead.

The clearlooks2 might be added to the 2.x branch but this is not something we will focus on. The 2.x branch will only be maintained with bug fixes etc until the 3.0 is final and production stable.

Best regards,
Spocke - Main developer of TinyMCE

14

Re: TinyMCE 3.0 Alpha 1 Released

Ahh I did wonder if there was some kind of event handling behind the scenes as opposed to the tag attributes on 2.x, bug report posted! smile

15

Re: TinyMCE 3.0 Alpha 1 Released

spocke wrote:

The clearlooks2 might be added to the 2.x branch but this is not something we will focus on. The 2.x branch will only be maintained with bug fixes etc until the 3.0 is final and production stable.

Thanks for the reply.  I guess what I'm asking is if it is something that I would be able to do myself, without doing anything major, or are the plugins so different now that it would be major.  Thanks!

16

Re: TinyMCE 3.0 Alpha 1 Released

Yes, it would be a major task. The old inlinepopups plugin wasn't designed to be skinned. But the new one is, so I guess it might be tricky. But why would you need to port it back to 2.x? Why not switch to the 3.x ones it's production stable?

Best regards,
Spocke - Main developer of TinyMCE

17

Re: TinyMCE 3.0 Alpha 1 Released

Undoubtedly I will switch eventually, once it's released.  However, I will have to rewrite a few plugins, and re-create the theme I use, so it is not an instant switch for me.

18

Re: TinyMCE 3.0 Alpha 1 Released

Suggestion: to speed up script loading, you can use a single PHP file that will join all requested JS files (ex. plugins?) in one file and serve it at once. You can even add a "gz_handler" to it + proper headers to cache it.

It can be done with "option" during initialization of the editor to switch on support of PHP (or whatever) loading mode.

19

Re: TinyMCE 3.0 Alpha 1 Released

Well that is what the gzip compressor does so. We have had this feature for a few years. smile

Best regards,
Spocke - Main developer of TinyMCE

20

Re: TinyMCE 3.0 Alpha 1 Released

Ahh. Great : ) I've missed it. http://wiki.moxiecode.com/index.php/Tin … ressor/PHP
One more proof that this is the best browser WYSIWYG editor : )

21

Re: TinyMCE 3.0 Alpha 1 Released

cache wrote:

Great work, nice to see the menu icons composited to a single image+css great!

This feature exists in 2.x versions as well, but its not on by default. I think its been there since 1.45 or something.

Afraithe
TinyMCE Developer
Moxiecode Systems

22

Re: TinyMCE 3.0 Alpha 1 Released

cool, certainly helps to cut down the number of http reqs smile

23

Re: TinyMCE 3.0 Alpha 1 Released

Yes, previously only the gzip compressor could reduce the number of requests. But as of the 3.0 release the number of requests where dramatically reduced for users who don't use the compressor. But still I recommend that everyone use the compressor since it will give it an extra push. And reduce it even more about 60-70%. smile

Best regards,
Spocke - Main developer of TinyMCE

24

Re: TinyMCE 3.0 Alpha 1 Released

I'm having trouble with local page links.  If I make a link "#faq1", when I click "Insert", it makes a link, but then if I open the link up to edit it, it shows the absolute path to the page where I'm currently at.  This doesn't make sense, because it shows the admin url where I'm editing the page.

Is there an easy way to tell TinyMCE not to prepend links which start with a hash (#)?

25

Re: TinyMCE 3.0 Alpha 1 Released

Sounds like a bug to me. File a bug report at SF on this issue so we can track it, the Alpha 3.0 has probably lots of issues that needs to be resolved. But out focus is now on documentation and stability of it.

Best regards,
Spocke - Main developer of TinyMCE