1
rlankford
TinyEditor Questions
  • 2007/8/20 15:07

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


I've been messing around with TinyEditor for the past couple of days. I really like the idea of settling down on one specific WYSIWYG editor for my site. I have some questions about the module (version 1) and hope this gets to someone who's familiar with the code for it!

1) If I download TinyMCE and run the 'full featured example' with it. I get TinyMCE context menus whenever I right click. With TinyEditor, these right click menus do not appear. Rather, the context menus for the browser show up instead. Why is this? Is this a behavior I can change?

TinyMCE Right Click Menu:
Resized Image

TinyEditor Right Click Menu:
Resized Image

2) How easy is it to upgrade the TinyMCE code within the TinyEditor module? Do I have to wait for a new release of the module, or can I simply copy the new release of TinyMCE into the 'editor' sub-folder of the tinyeditor module? I guess I'm just wondering what the expectation here is. Are you meant to upgrade TinyMCE in this manner with TinyEditor?

3) I've noticed that there are available plug-ins that you can download from the repository for the TinyEditor project. Can I quickly and easily add plugins for TinyMCE (that maybe aren't present in the TinyEditor repository) by copying them into the appropriate directory structure on TinyEditor? Beyond setting up icons and such for the toolset management screens in TinyEditor, is there any other work under the hood being done with general TinyMCE plugins to make them compatible with TinyEditor?

I've purchased Moxicode's Imagemanager and Filemanager products and am going through the process of trying to integrage them with TinyEditor. The answers I get to the above questions will help me decide if I want to continue down this path, or 'hard-code' the standard TinyMCE install into my XOOPS site.

Thus far, I've managed to get the plugins into TinyEditor and have set up their icons in the toolset manager. I've created a XoopsAuthenticator class that correctly creates upload directories on a user-by-user basis for the image manager. So I am making some progress...

After I finish with this work, I do plan on posting here about the steps it takes to integrate MCIImageManager and MCIFileManager with XOOPS for others to save them some time...

Thanks in advance for any light that anyone can shed here!

2
rlankford
Re: TinyEditor Questions
  • 2007/8/20 20:20

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


I'll answer part of this myself.

It looks like you can just drop in plugins from TinyMCE without serious consequence. I've dropped in MCImageManager, MCFileManager, and Template without any problems.

So far, so good. I've also figured out how to get my XOOPS authenticator object (for MCImageManager) to start respecting some of the TinyEditor settings (like upload dir and user dirs).

More as I figure it out...

3
rlankford
Re: TinyEditor Questions
  • 2007/8/21 19:19

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


Ok, so I'm a total noob on this TinyMCE thing.

As far as #1 above, turns out that there is a plugin for context menus. My first thought was that it was a config item passed in through the init settings. But that's not how right-click menus work at all in Tiny. Rather, TinyEditor supports the right click menu out the box. You just have to add that particular plug-in to your group's toolbar (duh).

So, slowly but surely, I'm getting there. I'm very impressed with TinyEditor and am so glad that others have gone through the effort to get all this up and running.

My only remaining question now is to figure out how to upgrade the TinyMCE inside of TinyEditor without causing havoc within the module. Still working...

4
McDonald
Re: TinyEditor Questions
  • 2007/8/21 20:26

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


TinyEditor is the XOOPS adoption of TinyMCE and supports XOOPS ImageEditor also.
Tinyeditor also supports XOOPS user groups permissions so you can have different toolbars for the different user groups. It also let's you do the settings within the XOOPS Admin panel.

What I've noted is that if you paste text from the clipboard in Internet Explorer the text get placed in the text field immediately. If you do the same in FireFox you get a popup window to paste the text in. After clicking the Upgrade button the text is inserted in the text field.

I don't know how easy or hard it is to upgrade TinyEditor to latest TinyMCE version.

XoopsEditor Framework comes with TinyMCE but I have never tested it. Most modules need also to be modified for using TinyMCE from the XoopsEditor Framework.

5
McDonald
Re: TinyEditor Questions
  • 2007/8/22 17:52

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Quote:
My only remaining question now is to figure out how to upgrade the TinyMCE inside of TinyEditor without causing havoc within the module. Still working...


Upgrading TinyEditor to the latest TinyMCE version is quit simple:
1. Download and unzip latest version of TinyMCE.
2. Make a backup of TinyEditor
3. Just overwrite the files from TinyEditor in the folder /modules/tinyeditor/editor with the new ones from TinyMCE.
4. To be sure upgrade TinyEditor in Modules Administration.

You can check what version of TinyMCE you're using by opening the file tiny_mce.js in a texteditor.
In top you'll see the following:
majorVersion="2";this.minorVersion="1.2";this.releaseDate="2007-08-21"

This means we're dealing with TinyMCE 2.1.2 released on August 21, 2007. (Version = majorVersion.+minorVersion)

Latest version of TinyMCE is v2.1.2, released yesterday.
Changelog:
--- Change log ---
Added fix for polluting third partly libraries that insist on messing with internal objects.
Added new save_on_tinymce_forms option to control when triggerSave is to be called.
Added mceContentBody class to template plugin preview.
Fixed bug where background color didn't work as expected in Opera.
Fixed bug where empty p tags where created on source code edit when forced_root_block was used.
Fixed bug where it was impossible to remove alignment using the align buttons.
Fixed bug where a empty URL was reported as a possible email link in advlink dialog.
Fixed bug where Opera would destroy the body if you pressed return 3 times in the beginning of a list.
Fixed bug where getHTML would return an empty string in IE sometimes.
Fixed bug where tinyMCE.selectedInstance is null after mceRemoveControl.
Fixed bug where remove_script_host option didn'
t work with media plugin.
Fixed bug with the convert_urls option and anchors in the advlink plugin.
Fixed issue with missing entityDecode statement for new document confirm.
Fixed issue with incorrect font value for Sans-serif.
Fixed problem with some youtube video urls.



6
frankblack
Re: TinyEditor Questions
  • 2007/8/22 18:25

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
Upgrading TinyEditor to the latest TinyMCE version is quit simple:


Not soooo simple.

I hacked a few files. So to be sure take a diff-programme like csdiff or whatever to see where the files changed. If I remember correctly - the links- and the emotions-plugin were hacked by me for sure. But with the aformentioned programmes you can easily copy the changes from one file to another.

HTH

7
rlankford
Re: TinyEditor Questions
  • 2007/8/22 19:04

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


Thank you both for your help. I'm much further along now!

8
McDonald
Re: TinyEditor Questions
  • 2007/8/22 19:40

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Thanks frankblack,

Will check which plugins can be updated and which not.
Many thanks for that handy tool!

9
FaYsSaL
Re: TinyEditor Questions
  • 2007/8/22 20:53

  • FaYsSaL

  • Not too shy to talk

  • Posts: 115

  • Since: 2006/1/2 2


hi, will we see any new versions of that great module ?

Frankblack lo sabe

Login

Who's Online

141 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits