X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Fevents.php;fp=_samples%2Fphp%2Fevents.php;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=044b096b2f885e602a12c7f5eaec1b6a73f722c5;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_samples/php/events.php b/_samples/php/events.php deleted file mode 100644 index 044b096..0000000 --- a/_samples/php/events.php +++ /dev/null @@ -1,153 +0,0 @@ - - - -
-- This sample shows how to add event handlers to CKEditor with PHP. -
-- A snippet of the configuration code can be seen below; check the source code of this page for - the full definition: -
-<?php -// Include the CKEditor class. -include("ckeditor/ckeditor.php"); - -// Create a class instance. -$CKEditor = new CKEditor(); - -// Path to the CKEditor directory. -$CKEditor->basePath = '/ckeditor/'; - -// The initial value to be displayed in the editor. -$initialValue = 'This is some sample text.'; - -// Add event handler, instanceReady is fired when editor is loaded. -$CKEditor->addEventHandler('instanceReady', 'function (evt) { - alert("Loaded editor: " + evt.editor.name); -}'); - -// Create an editor instance. -$CKEditor->editor("editor1", $initialValue); --