Enable TinyMCE list buttons

This commit is contained in:
Saophalkun Ponlu 2017-09-01 12:20:10 +12:00 committed by Damian Mooyman
parent 9fb5a2a693
commit 08fa3d6e3d
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
3 changed files with 4 additions and 3 deletions

View File

@ -242,6 +242,7 @@ class TinyMCEConfig extends HTMLEditorConfig
'paste' => null,
'code' => null,
'importcss' => null,
'lists' => null,
);
/**

View File

@ -60,7 +60,7 @@ class HTMLEditorConfigTest extends SapphireTest
$c = new TinyMCEConfig();
$c->setTheme('modern');
$c->setOption('language', 'es');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss', 'lists');
$c->enablePlugins(
array(
'plugin1' => 'mypath/plugin1.js',

View File

@ -37,7 +37,7 @@ class TinyMCECombinedGeneratorTest extends SapphireTest
$c = new TinyMCEConfig();
$c->setTheme('testtheme');
$c->setOption('language', 'en');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss', 'lists');
$c->enablePlugins(
array(
'plugin1' => 'mycode/plugin1.js', //
@ -100,7 +100,7 @@ EOS
$c = new TinyMCEConfig();
$c->setTheme('testtheme');
$c->setOption('language', 'en');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss');
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss', 'lists');
$c->enablePlugins(['plugin1' => 'mycode/plugin1.js']);
HTMLEditorConfig::set_config('testconfig', $c);