tinymce

TinyMCE using jQuery
32 followers

This extension draws a TinyMCE HTML editor using a jQuery plugin.

Current version is 2.0.

File MD5 checksums

  • c9955b5fa8e7bc288c211e753521c2f0 tinymce-2.0.tar.bz2

Resources

Documentation

Requirements

  • Yii 1.1 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

<?php $this->widget('application.extensions.tinymce.ETinyMce', array('name'=>'html')); ?>

Notice: some problems have been reported when loading in WIE8. If you experiment such a problem, try deleting the "temporary internet files" (without any page loaded) and restart WIE. My guess is that this is a problem between TinyMCE and WIE, but we haven't found the cause.

The extension is documented using PHPDoc. If you are not comfortable reading the source code for documentation, you can generate your own set of documentation pages by using tools like phpDocumentor

Change Log

20110708 2.0

  • Updated to TinyMCE 3.4.3.2
  • Bug fixing.

20090817 1.1

  • Fixed bug reported by xzhang.
  • Updated to TinyMCE 3.2.5
  • Directories were reorganized.

20090621

  • Initial release.

Total 20 comments

#6819 report it
yureshwar at 2012/02/07 08:25am
Is this way the editor loads through this widget.

Hi,

I am trying in my localmachine and it is not rendering properly i guess. Could anyone tell me is it this way it will render the editor.

Screenshot

Can anyone help me if this is wrong.

Thanks

#5966 report it
cowtan at 2011/12/01 07:14am
More usage

Really glad this extension exists. I'd used tiny elsewhere before so was keen to be able to use it with yii.

The only criticism I would have is that some more usage info would have been good, particularly about the options that are specific to the extension implementation (rather than tiny options which are already well documented on the tiny site). I'm still finding my way round yii so I'm easily thrown and in the end I had to work my way through the ETinyMCE.php file to find what I was looking for (how to suppress the text mode button - 'useSwitch'=>false for anyone else who's wondering). Maybe this is how you're supposed to work things out in yii but a few lines more in the usage would certainly have helped me a lot.

Sorry if this comes across as a big moan it was just very frustrating that I couldn't find out what I thought would be straightforward.

#5753 report it
Alex Adams at 2011/11/09 01:27pm
Localhost to shared host breaks tinymce -- resolved for the current set of features.

Resolved for the current selection of features.

I compared the raw source from the rendered page on a working development site and the new hosted site. I had been comparing using Firebug, but with the raw code, it was much easier to see the differences.

I was able to get everything I need to work by turning tinymce compression off. If I ever need to use that feature I will need to look further at this, but I don't actually expect to use that, so I'm great.

Thanks,

Alex

#5746 report it
Alex Adams at 2011/11/08 06:44pm
Localhost to shared host breaks tinymce

I've been publishing a 99% finished app from in-house servers (MAMP on OS X and XAMPP on OS X) to a new shared web hosting account. This is my first experience with shared hosting. Always before I've had dedicated servers, either physical or virtual.

Here's my last issue that I can't seem to figure out on my own. I'm using TinyMce for a couple of form fields in a couple of content types. On the Mac servers, it works great. On the Arvixe shared hosting account, no go. I don't get an error message. Firebug shows that it's just not there except for the little button on the bottom that says Text Mode.

I'm imagining this has nothing to do with TinyMce itself, but is something different in regards to the shared hosting?

Any ideas?

Alex

#4780 report it
riza_nurhadi at 2011/08/15 07:36am
need to change folder assets permission to 755

http://www.yiiframework.com/forum/index.php?/topic/20358-php-scripts-in-assets/

i got the same problem as the topic above.

tinymce doesn't work if folder assets/xxxxx/tinymce is not set to 755 permission

or perhaps I'm missing something....

#4154 report it
warden at 2011/06/09 08:06pm
bug confirmed

I can confirm that bug, offended line should say:

$tinyOptions = (array)@$this->makeOptions($tinymce);

#3941 report it
sensorario at 2011/05/23 06:23am
ETinyMce::init();

In this method, the var $tinimce is not setted:

public function init()
    {
        list($name, $id) = $this->resolveNameID();
 
      if ($this->useCookies) {
         if (isset($_COOKIE[$id.self::COOKIE_SUFFIX]) && in_array($_COOKIE[$id.self::COOKIE_SUFFIX], array('text', 'html'))) {
            $this->setMode($_COOKIE[$id.self::COOKIE_SUFFIX]);
         }
      }
 
      $baseDir = dirname(__FILE__);
      $assets = Yii::app()->getAssetManager()->publish($baseDir.DIRECTORY_SEPARATOR.'assets');
 
      $tinyOptions = @$this->makeOptions($tinymce);
...
...

I got an error so, ... as you can see I have added a silent (@) and all work fine. Without silent i cant use this extension.

#3770 report it
MetaYii at 2011/05/06 08:40am
Updates

Updates coming soon ;-)

#3765 report it
warden at 2011/05/06 03:31am
Update?

Any updates for this extension? Last change was here two years ago as I can see...

Thanks.

#3325 report it
mad93 at 2011/04/03 12:01pm
Undefined $tinymce in line 812

I've solved it adding before:

if(!isset($tinymce))
        $tinymce = null;
#3324 report it
mad93 at 2011/04/03 11:58am
Wrong version number in changelog

The used version is 3.2.5 not 3.5.2. The current version is 3.4.1.

Thanks for this plugin.

#3037 report it
nisteve at 2011/03/09 10:53am
$tinymce undefined variable

Hi there, great plugin works well.

However i get an undefined variable $tinymce on line 812, looked at the source and it doesn't seem to be doing anything.

#594 report it
DarkNSF at 2010/04/14 09:04pm
thanks

for saving me some time!

#1091 report it
seb at 2009/12/11 03:44am
Thanks

Extensions allows to integrate tinymce very easy. In my case tinymce was embeded into popup jQuery/UI dialog and there were some issues with tinymce itself (I added my explanation to forum discussion thread). MetaYii, thanks for this and your other great extensions.

#1240 report it
developerworks at 2009/10/16 10:24am
tinymce fullscree in a new window

Switch the tinymce editor to fullscreen mode,and the fullscreen is opened in a new window, but the offictial site of jquery tinymce is not like this.

ref: http://tinymce.moxiecode.com/examples/example_23.php

#1363 report it
danielbastos at 2009/08/25 09:36am
widget is very simple and efficient

much practical, i liked very

#1422 report it
MetaYii at 2009/08/05 10:49am
Report bugs and questions on the forum

Please use the forum system for bugs and questions (the links are in the description tab). Use this space for reviews only. Thanks.

#1425 report it
xzhang at 2009/08/05 10:02am
plugins doesn't work

when call $this->widget with params like 'plugins'=>array('spellchecker','safari'),..

it throws out php error on implode

#1511 report it
luisdlo at 2009/07/08 06:02pm
Tutorial

Could you give me some tutorial that you have?

#1536 report it
mb at 2009/07/01 10:02am
Nice widget

very easy to use

how can i use the validation color?

Leave a comment

Please to leave your comment.

Create extension