This extension is integrate Tiny_mce and FCKeditor into Yii application.
protected/extensionsCommon 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)
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', ));
Who can customize the toolbar better - you are welcome.
Total 13 comments
Tiny-MCE and FCKeditor added to downloads now
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?
Server code of ieditor extension is integrated into Yii.
http://www.yiiframework.com/forum/index.php?/topic/18702-extension-ieditor/
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(); ';
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).
Well Done!
thx for this extension
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
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.
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)
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
I put it in the demo blog, and works fine. Good job :)
thx for this nice extension! works fine
Leave a comment
Please login to leave your comment.