-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NetCommonsFormHelper で wysiwyg呼び出しを helperから呼び出す WysiwygHelper 化することで TitleIconHelperを呼び出せる対応
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* WysiwygFormHelper | ||
* | ||
* @author Noriko Arai <arai@nii.ac.jp> | ||
* @author Satoru Majima <neo.otokomae@gmail.com> | ||
* @link http://www.netcommons.org NetCommons Project | ||
* @license http://www.netcommons.org/license.txt NetCommons License | ||
* @copyright Copyright 2014, NetCommons Project | ||
*/ | ||
|
||
App::uses('AppHelper', 'View/Helper'); | ||
|
||
/** | ||
* WysiwygHelper | ||
* | ||
* @package NetCommons\NetCommons\View\Helper | ||
*/ | ||
class WysiwygHelper extends AppHelper { | ||
|
||
/** | ||
* Other helpers used by FormHelper | ||
* | ||
* @var array | ||
*/ | ||
public $helpers = array( | ||
); | ||
|
||
/** | ||
* wysiwyg用のスクリプト呼び出し対応 | ||
* | ||
* @return String wysiwyg js | ||
*/ | ||
public function wysiwygScript() { | ||
return $this->_View->element('Wysiwyg.wysiwyg_js'); | ||
} | ||
} |