Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#565 2009-05-26 16:13:10

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: hak_tinymce WYSIWYG article editor

Me too, Me too O! O! :-P


I think, therefore I AM, … … er … I think :-?

Offline

#566 2009-05-26 16:57:59

Cedric
Archived Plugin Author
From: Germany
Registered: 2009-05-26
Posts: 13
Website

Re: hak_tinymce WYSIWYG article editor

DEPRECATED, PLEASE SEE BELOW

I’ve raised the version to 0.8.0 to clarify this is a whole new update with the latest TinyMCE version.

Download:
http://rapidshare.com/files/237489602/hak_tinymce_0.8.0.zip

Notice:
Please uninstall any previous version of hak_tinymce and don’t forget to run the deinstallation script to remove the old preferences table from the database.

Known bugs:
Toogle Editor buttons aren’t working correctly / aren’t initialized by default.

Have fun and please report any bug.
Thanks :)

Last edited by Cedric (2009-05-27 12:13:23)

Offline

#567 2009-05-26 21:22:18

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

Here is change to make toggle checkboxes work:

hak_tinymce_v0.8.txt (plugin only)
hak_tinymce_0.8.0.zip (plugin + editor)

And Cedric – could it be possible to initialize another instance of tinymce for example for custom_field?

Last edited by beztak (2009-05-26 21:34:33)

Offline

#568 2009-05-27 00:02:04

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

A few things.

First thanks for jumping in and updating this. Sorry I haven’t been around much. I have all these other options I want to add to this and rewrite the JS to leverage jQuery so it became one of those things that got in the way of a quick update.

There are a few console.log()s left in the code which will break the plugin in IE. Also if you use mode:none/exact and elements: for the initialization you save the overhead of having to set classes in the textareas.

beztak: you could add another initializer using the callback area in the admin screen. Whatever you put there just gets added t the js. So you could do

tinyMCE.init(
        document_base_url: document_base_url,
        mode: "exact",
        elements:"custom_1",
        // the rest of your options); 

although it only works for textareas so you have to be using glz_custom_fields or something like and you might have to play with load order to make sure the fields get converted first.

Anyway I’m going to do my best to get this updated and up to snuff. Thanks for the patience everyone. BTW do the compressor and the image plugin work? The compressor does not seem to be in the distribution.

I’m also going to try to put this all in a public hg repository so others can contribute more easily.

Sorry again all.


Shoving is the answer – pusher robot

Offline

#569 2009-05-27 07:57:31

Cedric
Archived Plugin Author
From: Germany
Registered: 2009-05-26
Posts: 13
Website

Re: hak_tinymce WYSIWYG article editor

Hi together,

@hakjoon:
thanks for your recommendation about using “mode: exact” and “elements: el_id”. I’m not sure about this but I think I tested and it didn’t worked. Will give it another try. I would be happy if anyone could examinate the problems with IE since I’m on a Mac and don’t have the time to install a VM first and then test it. The image plugin was rewritten due to plugin api changes of TinyMCE. Forget to include compressed files, will come in the next version.

@beztak:
Could you please post a diff of the changes you made to get the “toggle editor” function working? I’ll build a new version of the plugin including your bugfix and hakjoon’s recommendation.

Thanks,
Cedric

Last edited by Cedric (2009-05-27 12:12:16)

Offline

#570 2009-05-27 12:10:27

Cedric
Archived Plugin Author
From: Germany
Registered: 2009-05-26
Posts: 13
Website

Re: hak_tinymce WYSIWYG article editor

New version (0.8.1)

Changes
  • Fixed “Toggle editor” function, thanks to beztak
  • Less overhead initializing TinyMCE, thanks to hakjoon
  • Added compressed files for latest TinyMCE version
  • Changed title appearing under “Extensions” from “hak_tinymce” to “TinyMCE”
  • Changed plugin author to all who are involved (Giving credit where credit is due)
  • Changed plugin url to this thread (until someone hosts it, please let me know)
Known bugs
  • Doesn’t work in IE (at least the last version according to hakjoon, can someone confirm?)

Download
http://rapidshare.com/files/237765162/hak_tinymce_0.8.1.zip

Offline

#571 2009-05-27 14:32:28

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Cedric wrote: The image plugin was rewritten due to plugin api changes of TinyMCE. Forget to include compressed files, will come in the next version.

Cool that was one of those things that needed to be done.

regarding the IE issue. It might have just been in beztak’s version. There were some leftover console.log() calls which will cause errors in anything without Firebug.


Shoving is the answer – pusher robot

Offline

#572 2009-05-27 18:16:19

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: hak_tinymce WYSIWYG article editor

Thanks for this Cedric.

Rapidshare sucks though. Could you use something like DropBox instead?

Offline

#573 2009-05-27 18:23:15

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

I everyone is happy with how it works I’d be happy to host it.


Shoving is the answer – pusher robot

Offline

#574 2009-05-28 07:56:13

Cedric
Archived Plugin Author
From: Germany
Registered: 2009-05-26
Posts: 13
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

regarding the IE issue. It might have just been in beztak’s version. There were some leftover console.log() calls which will cause errors in anything without Firebug.

Allright, my version doesn’t contain any console.log()’s, so it should work in IE.

FireFusion wrote:

Thanks for this Cedric.
Rapidshare sucks though. Could you use something like DropBox instead?

The plugin can also be downloaded from my webspace:
http://nur-text.de/download/hak_tinymce_0.8.1.zip

Last edited by Cedric (2009-05-28 07:58:31)

Offline

#575 2009-05-28 09:13:04

Cedric
Archived Plugin Author
From: Germany
Registered: 2009-05-26
Posts: 13
Website

Re: hak_tinymce WYSIWYG article editor

New version (0.8.2)

Changes
  • Fixed a bug in TxpImage plugin for TinyMCE (should now work correctly under IE7)

Download
http://nur-text.de/download/hak_tinymce_0.8.2.zip

Offline

#576 2009-05-28 11:13:19

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

TxpImage doesn’t work for me (doesn’t display images) – still there is a loading gif animation.

Tested in FF3, IE7, IE6, O 9.6

Offline

Board footer

Powered by FluxBB