This extension is integrate Tiny_mce and FCKeditor into Yii application.
Documentation ¶
Requirements ¶
- Yii 1.0 or above
- Tiny_mce or/and FCKeditor distributive
Installation ¶
- Extract the release file under
protected/extensions
Common properties:
type: tinymce/fckeditor, may be set in config/main params as Yii::app()->params('editor')
name: required(!!!) field name for textarea
heigth (optional)
toolbar (optional)
Tinymce properties:
language (optional, default: App setting) required additional language download from official site
date_format (optional, default Y-m-d)
time_format (optional, default H:M:S)
Usage ¶
See the following code example:
echo CHtml::activeTextArea($post,'content',array('rows'=>6, 'cols'=>60));
$this->widget('application.extensions.editor.editor',
array('name'=>'post_content', ));
NB ¶
Who can customize the toolbar better - you are welcome.
Change Log ¶
March 23, 2009 ¶
- Bug removed. In the tinymce.php view, line 4 "toolbar" change to "theme".
March 1, 2009 ¶
February 9, 2009 ¶
- Initial release.
Works smooth
Very nice! Slim and easy.
FCKeditor works even with ajax for me, I only had to add this:
'onclick' => '
for ( i = 0; i < parent.frames.length; ++i )
if ( parent.frames[i].FCK )
parent.frames[i].FCK.UpdateLinkedField();
';
fantastic! just small issue with multiple TinyMCE on one page
thanks for building this extension, it works very nicely.
I had a small issue with multiple editors because it would include tiny_mce.js as many times as there were editors. This produced some strange behaviour with the Advanced File Manager dialogs.
To fix this I took out the static reference to tiny_mce.js from tinymce.php and used registerScriptFile() in editor.php to include tiny_mce.js (so it is only included once).
Good
Well Done!
Works fine
thx for this extension
Small error
I think there is a small error in the tinymce code.
The init function contains "toolbar" where it should contain "theme". This is also the reason why there is a "weird grey bar at the left and the standard bar (bold, italic, etc) at the bottom." like Dabore mentioned
Great
It works great, but a few flaws:
FCK editor fails in Linux because the path is set as "FCKeditor" but the directory is named "fckeditor". Changing that will make it work on every platform :).
At least here in windows, loading tinymce editor without any option but "type" and "name" makes it load with a weird grey bar at the left and the standard bar (bold, italic, etc) at the bottom. Don't know if this is the intended way of work, or maybe it's only my system.
Re: Good stuff
Common properties:
Good stuff
Works as advertised.
It would be good to also inform on the docs one has to add the type of editor to the app params.
Well done!
Cass
Thanks!
I put it in the demo blog, and works fine.
Good job :)
works fine
thx for this nice extension!
works fine
Compare editor with ieditor
Server code of ieditor extension is integrated into Yii.
http://www.yiiframework.com/forum/index.php?/topic/18702-extension-ieditor/
no scripts for fckeditor and tinymce ?
after trying hard to get this work, i noticed that the folders fckedito and tinymce do not conatin the scripts named fckeditor.js or tinymce.js.
No where do we get this scripts from. fckeditor apparently has changed to ckeditor and ck editor is a huge thing with many folders and subfolders.
can you please provide links to contetns that go into these two folders?
Add-on
Tiny-MCE and FCKeditor added to downloads now
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.