Skip to content

Implementation of CKEditor WYSIWYG editor as a Nette Framework component

License

Notifications You must be signed in to change notification settings

grossmannmartin/NCKEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NCKEditor

Implementation of CKEditor WYSIWYG editor as a Nette Framework component

Installation

Best way to install is using Composer:

$ composer require snakeaas/nckeditor

Usage

Component itself behave like a default \Nette\Application\UI\Form form, but provides some aditional methods.

Most important is method addRichText for adding CKEditor.

Example:

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;
}

About

Implementation of CKEditor WYSIWYG editor as a Nette Framework component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages