From f4f6291ec16bd2fe368f868e667ea2071c514098 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 24 Jun 2010 13:27:43 +0000 Subject: - Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE --- program/js/tiny_mce/plugins/spellchecker/rpc.php | 114 ----------------------- 1 file changed, 114 deletions(-) delete mode 100755 program/js/tiny_mce/plugins/spellchecker/rpc.php (limited to 'program/js/tiny_mce/plugins/spellchecker/rpc.php') diff --git a/program/js/tiny_mce/plugins/spellchecker/rpc.php b/program/js/tiny_mce/plugins/spellchecker/rpc.php deleted file mode 100755 index 0024d3f75..000000000 --- a/program/js/tiny_mce/plugins/spellchecker/rpc.php +++ /dev/null @@ -1,114 +0,0 @@ -decode($raw); - -// Execute RPC -if (isset($config['general.engine'])) { - $spellchecker = new $config['general.engine']($config); - $result = call_user_func_array(array($spellchecker, $input['method']), $input['params']); -} else - die('{"result":null,"id":null,"error":{"errstr":"You must choose an spellchecker engine in the config.php file.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}'); - -// Request and response id should always be the same -$output = array( - "id" => $input->id, - "result" => $result, - "error" => null -); - -console($json->encode($output)); -// Return JSON encoded string -echo $json->encode($output); - -?> \ No newline at end of file -- cgit v1.2.3