mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Enable TinyMCE list buttons
This commit is contained in:
parent
9fb5a2a693
commit
08fa3d6e3d
@ -242,6 +242,7 @@ class TinyMCEConfig extends HTMLEditorConfig
|
|||||||
'paste' => null,
|
'paste' => null,
|
||||||
'code' => null,
|
'code' => null,
|
||||||
'importcss' => null,
|
'importcss' => null,
|
||||||
|
'lists' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +60,7 @@ class HTMLEditorConfigTest extends SapphireTest
|
|||||||
$c = new TinyMCEConfig();
|
$c = new TinyMCEConfig();
|
||||||
$c->setTheme('modern');
|
$c->setTheme('modern');
|
||||||
$c->setOption('language', 'es');
|
$c->setOption('language', 'es');
|
||||||
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss');
|
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss', 'lists');
|
||||||
$c->enablePlugins(
|
$c->enablePlugins(
|
||||||
array(
|
array(
|
||||||
'plugin1' => 'mypath/plugin1.js',
|
'plugin1' => 'mypath/plugin1.js',
|
||||||
|
@ -37,7 +37,7 @@ class TinyMCECombinedGeneratorTest extends SapphireTest
|
|||||||
$c = new TinyMCEConfig();
|
$c = new TinyMCEConfig();
|
||||||
$c->setTheme('testtheme');
|
$c->setTheme('testtheme');
|
||||||
$c->setOption('language', 'en');
|
$c->setOption('language', 'en');
|
||||||
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss');
|
$c->disablePlugins('table', 'emoticons', 'paste', 'code', 'link', 'importcss', 'lists');
|
||||||
$c->enablePlugins(
|
$c->enablePlugins(
|
||||||
array(
|
array(
|
||||||
'plugin1' => 'mycode/plugin1.js', //
|
'plugin1' => 'mycode/plugin1.js', //
|
||||||
@ -100,7 +100,7 @@ EOS
|
|||||||
$c = new TinyMCEConfig();
|
$c = new TinyMCEConfig();
|
||||||
$c->setTheme('testtheme');
|
$c->setTheme('testtheme');
|
||||||
$c->setOption('language', 'en');
|
$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']);
|
$c->enablePlugins(['plugin1' => 'mycode/plugin1.js']);
|
||||||
HTMLEditorConfig::set_config('testconfig', $c);
|
HTMLEditorConfig::set_config('testconfig', $c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user