Merge pull request #7331 from open-sausages/pulls/4.0/enable-mce-lists

Enable TinyMCE list buttons
This commit is contained in:
Damian Mooyman 2017-09-04 09:59:18 +12:00 committed by GitHub
commit 458e919a69
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);