mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7331 from open-sausages/pulls/4.0/enable-mce-lists
Enable TinyMCE list buttons
This commit is contained in:
commit
458e919a69
@ -242,6 +242,7 @@ class TinyMCEConfig extends HTMLEditorConfig
|
||||
'paste' => null,
|
||||
'code' => null,
|
||||
'importcss' => null,
|
||||
'lists' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -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',
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user