2014-01-13 3 views
0

Silverstripe CMS를 사용 중이며 백 엔드 wysiwyg 편집기 Tiny MCE를 사용자 정의하고 싶습니다. 내 자신의 작업으로 사용자 정의 단추를 편집자에게 추가하고 싶습니다.Silverstripe - tiny_mce wysivyg 편집기에 사용자 정의 버튼 추가

TinyMCE 페이지에서 버튼 (http://www.tinymce.com/tryit/3_x/custom_toolbar_button.php)을 추가하는 방법을 알았지 만 Silverstripe 폴더 구조에서 TinyMCE를 확장 할 수있는 위치를 알 수 없습니다.

이 코드를 어디에 둘 수 있습니까?

+3

에서 확인할 수있다 자바 스크립트 플러그인에 대한 설명 당신은 http://doc.silverstripe.org/framework/en/topics 보았다/rich-text-editing # writing-custom-plugins? – schellmax

답변

3

_config.php 파일에서 HtmlEditorConfig를 변경할 수 있습니다. 사용자의 내 사이트/_config.php에서 (또는 모듈 _config)

$config = HtmlEditorConfig::get('cms'); 
$config->enablePlugins(array('pluginname' => 'plugin.js')); 
$config->addButtonsToLine(2, 'pluginname'); 

http://doc.silverstripe.org/framework/en/topics/rich-text-editing

관련 문제