PluginProbe
Contact Forms by Cimatti / 1.9.2
Contact Forms by Cimatti v1.9.2
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
← All changes | PFBC/Element/CKEditor.php +27 -27 1.31.9.2 View file →
@@ -1,27 +1,27 @@
1 -<?php
2 -class Element_CKEditor extends Element_Textarea {
3 - protected $basic;
4 -
5 - function renderJS() {
6 - echo 'CKEDITOR.replace("', $this->attributes["id"], '"';
7 - if(!empty($this->basic))
8 - echo ', { toolbar: "Basic" }';
9 - echo ');';
10 -
11 - $ajax = $this->form->getAjax();
12 - $id = $this->form->getID();
13 - if(!empty($ajax)) {
14 - echo <<<JS
15 - jQuery("#$id").bind("submit", function() {
16 - CKEDITOR.instances["{$this->attributes["id"]}"].updateElement();
17 - });
18 -JS;
19 - }
20 - }
21 -
22 - function getJSFiles() {
23 - return array(
24 - $this->form->getResourcesPath() . "/ckeditor/ckeditor.js"
25 - );
26 - }
27 -}
1 +<?php
2 +class Element_CKEditor extends Element_Textarea {
3 + protected $basic;
4 +
5 + function renderJS() {
6 + echo 'CKEDITOR.replace("', $this->attributes["id"], '"';
7 + if(!empty($this->basic))
8 + echo ', { toolbar: "Basic" }';
9 + echo ');';
10 +
11 + $ajax = $this->form->getAjax();
12 + $id = $this->form->getID();
13 + if(!empty($ajax)) {
14 + echo <<<JS
15 + jQuery("#$id").bind("submit", function() {
16 + CKEDITOR.instances["{$this->attributes["id"]}"].updateElement();
17 + });
18 +JS;
19 + }
20 + }
21 +
22 + function getJSFiles() {
23 + return array(
24 + $this->form->getResourcesPath() . "/ckeditor/ckeditor.js"
25 + );
26 + }
27 +}