Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#556 2009-04-27 18:13:34

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: hak_tinymce WYSIWYG article editor

vaughn-taylor wrote:
And in my CSS file I have the following entry:

.glossary { color: red; }

I know that the editor is obeying this CSS file because I can change the body font to red, and the editor reacts. However, I don’t see a “glossary” style in the edit link drop down.
Thanks!

____________________________

Have you tried adding the tagname before the class? Like “p.glossary”.
Not sure if it works, but I use a plugin called bramus_cssextras, which enables you to assign classes to paragraphs, lists, strong’s etc., and this plugin requires the content_css stylesheet to include tagnames in the selectors.

Maybe it works analogous… give it a try!

Last edited by jan (2009-04-27 18:15:57)


Kensington TXP powered rock

Offline

#557 2009-05-05 02:13:12

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: hak_tinymce WYSIWYG article editor

hakjoon:

I have been using TXP for 4 plus years, but never had the need for a wysiwyg editor for any of my projects … until now : ) … can you please let me know of any big “heads up” I should have before trying to integrate it into this new project … for example, I believe at one point you could not use this editor if working on a MAC. Is that still a limitation?

For this project, I need to give the client extreme editing flexability …

Alos, a couple of months ago you had mentioned possibly having this plug in upgraded … just wondering if you had an ETA for that …

Thanks.

progre55

Last edited by progre55 (2009-05-05 02:19:50)

Offline

#558 2009-05-05 02:57:15

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: hak_tinymce WYSIWYG article editor

This plugin works fine with mac, been using it for years… You have a great deal of flexibility, and can even edit directly in HTML.

Side Note

Mr.joon is probably going to be scarce for a while, as he’s playing with his new toy; a brand new baby girl. Congrats hak!

Offline

#559 2009-05-06 14:02:47

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: hak_tinymce WYSIWYG article editor

Thanks Mr. Dale.

Hakjoon – CONGRATULATIONS on the new addition to the family.

Offline

#560 2009-05-26 08:39:11

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

Re: hak_tinymce WYSIWYG article editor

I’ve updated Hakjoon’s plugin based on the latest stable version of TinyMCE (3.2.4.1). It’s now fully working on TXP 4.0.8.
Please let me know if anyone is interested…

Last edited by Cedric (2009-05-26 08:40:18)

Offline

#561 2009-05-26 08:48:48

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

Re: hak_tinymce WYSIWYG article editor

Wow, it’s super. Could you post it here?

Last edited by beztak (2009-05-26 21:44:13)

Offline

#562 2009-05-26 09:16:17

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

Re: hak_tinymce WYSIWYG article editor

First I have to pack all files together and create a plugin.txt. Expect the download later today…

Offline

#563 2009-05-26 14:45:19

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

Re: hak_tinymce WYSIWYG article editor

Please send me the same :)

Thanks

Offline

#564 2009-05-26 15:14:42

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: hak_tinymce WYSIWYG article editor

Yes plz! or just post it

Offline

#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

Board footer

Powered by FluxBB