dev-master
9999999-devImplementation of CKEditor WYSIWYG editor as a Nette Framework component
MIT
The Requires
- php >= 5.3.13
- nette/nette >= 2.0.10
Implementation of CKEditor WYSIWYG editor as a Nette Framework component
Implementation of CKEditor WYSIWYG editor as a Nette Framework component, (*1)
Best way to install is using Composer:, (*2)
$ composer require snakeaas/nckeditor
Component itself behave like a default \Nette\Application\UI\Form form, but provides some aditional methods., (*3)
Most important is method addRichText
for adding CKEditor., (*4)
Example:, (*5)
protected function createComponentEditor() { $editor = new \snakeaas\NCKEditor\NCKEditor(__DIR__ . '/../../www'); $editor->addText('title', 'Nadpis'); $editor->addRichText('editor', 'Text'); $editor->addSubmit('save', 'Save'); $editor->onSuccess[] = function (\Nette\Application\UI\Form $form) { // ... process values }; return $editor; }
Implementation of CKEditor WYSIWYG editor as a Nette Framework component
MIT