While working on an web app, I need a text editor. I was using ckEditor extensions and it was overkill. So here it is, NicEditor with small footprint.
May not be the best and fastest editor but it works for me.
BTW, click on Thumb-Up right above if you find it useful please
Requirements ¶
More information, configuration and copyrights of the NicEdit script is at http://nicedit.com
I have included the NicEdit script and icons in assets folder for your convenience
This extensions is created with Yii 1.1.7
It works for Yii 1.1.7 - 1.1.10.
For other Yii versions, I don't know
Usage ¶
unpack the niceditor.zip file to your extensions folder
Copy and paste the text below to you "views" page
$this->widget('ext.niceditor.nicEditorWidget',array(
"model"=>$model, // Data-Model
"attribute"=>$attribute, // Attribute in the Data-Model
"defaultValue"=>'defaultValue text here',
"config"=>array("maxHeight"=>"200px"),
"width"=>"400px", // Optional default to 100%
"height"=>"200px", // Optional default to 150px
));
Resources ¶
More information at http://nicedit.com
Thanks
will try it :)
Sounds good :D
I'll try it in my new projects...
Congratulations!
I found your extension, follow the instructions and its function without problems.
Well Done!
@lgmontenegro: Thanks mate
It's my first attempt, and it works with a little bit of modification for my second project. Will post the changes, hopefully in November
Good, but...
Very light and easy to use, but unfortunately does not help to upload images using the editor.
@metzen: Much better than TextArea, and nothing else
This editor is for quick add/edit format text and nothing else.
I also use ckEdit in my app as well and it does not help upload image either(custom location, image rename, ...), unless you write an image upload script (I did) or buy a program from them. I have tried quite a few of so call javascript/WYSIWYG/Web editors and none of them help you with image upload either.
I understand this nicedit has its limitation but hey, I just need a text editor that is light weight and can format text. You cannot asking so much out of tiny little editor :)
How can I contribute?
Viethung Hello, I understand the simplicity of niceditor. But create the upload feature does not cost anything, so I did an action and was wondering how can I contribute to the extension? There is a repository on github?
@Metzen
Hi Metzen,
I am working on an ERP system for internal use and this extension is created out of need. I am very happy to hear someone want to improve this extension.
You can create a GIT for nicedit and do whatever you want with it. However, you need to go back to original source http://nicedit.com/ and get un-minified version to start with.
I currently has 3 big web app projects on my hands all by myself so I cannot really help
Default Margin?
Why is the hard coding a margin of 4px? How do we reset the margin from the view?
@sbefort: I hate that margin too
and I have to download the source to change that
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.