Skip to content

Commit

Permalink
WysiwygHelper を作成
Browse files Browse the repository at this point in the history
NetCommonsFormHelper で wysiwyg呼び出しを helperから呼び出す
WysiwygHelper 化することで TitleIconHelperを呼び出せる対応
  • Loading branch information
otokomae committed Mar 16, 2016
1 parent d665884 commit 133f650
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions View/Helper/WysiwygHelper.php
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');
}
}

0 comments on commit 133f650

Please sign in to comment.