Skip to content

Commit

Permalink
Merge pull request #8 from vaibhav-kaushal/master
Browse files Browse the repository at this point in the history
Added Documentation for the class and fixed QType namespacing
  • Loading branch information
olegabr authored Jul 26, 2016
2 parents c4f6657 + 29b76be commit 0a84db7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions includes/QCKEditorBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
*/

namespace QCubed\Plugin;

/**
* Class QCKEditorBase: For creating a Rich text editor with CKEditor
*
* @package QCubed\Plugin
*
* @property-write string $ReadyFunction JS function to pass to the ckeditor creation instance
*/
class QCKEditorBase extends \QTextBoxBase {

protected $strJsReadyFunc = 'function(){}';
Expand Down Expand Up @@ -51,7 +57,7 @@ public function __set($strName, $mixValue) {
// The name of a javascript function to call after the CKEditor instance is ready, so that you can do further initialization
// This function will receive the formId and controlId as parameters, and "this" will be the ckeditor instance.
try {
$this->strJsReadyFunc = QType::Cast($mixValue, QType::String);
$this->strJsReadyFunc = \QType::Cast($mixValue, \QType::String);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
Expand Down

0 comments on commit 0a84db7

Please sign in to comment.