improve options
This commit is contained in:
parent
e6278a71e9
commit
56a7f1a67f
@ -29,6 +29,11 @@ class Menubar extends AbstractOption
|
||||
|
||||
public function get(): string
|
||||
{
|
||||
return 'false';
|
||||
return 'file edit view insert format tools table help';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
@ -29,8 +29,13 @@ class Protect extends AbstractOption
|
||||
|
||||
public function get(): string
|
||||
{
|
||||
// ToDo: check this regexp
|
||||
$protect = [
|
||||
'/\[\{((?!\}\]).)+\}\]/gm', // Allow Smarty codes [{foobar}]
|
||||
'/\{\{(.*)\}\}/gm', // Allow Twig output codes {{foobar}}
|
||||
'/\{\%(.*)\%\}/gm', // Allow TWIG control codes {%foobar%}
|
||||
'/\{\#(.*)\#\}/gm', // Allow TWIG comment codes {#foobar#}
|
||||
];
|
||||
|
||||
return '[ /\[\{((?!\}\]).)+\}\]/gm ]';
|
||||
return '[ '.implode(', ', $protect).' ]';
|
||||
}
|
||||
}
|
@ -34,6 +34,8 @@ class QuickbarsInsertToolbar extends AbstractOption
|
||||
|
||||
public function get(): string
|
||||
{
|
||||
return 'false';
|
||||
/*
|
||||
return implode(
|
||||
' | ',
|
||||
[
|
||||
@ -43,11 +45,12 @@ class QuickbarsInsertToolbar extends AbstractOption
|
||||
'pagebreak'
|
||||
]
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
{
|
||||
return true;
|
||||
return $this->get() !== 'false';
|
||||
}
|
||||
|
||||
public function requireRegistration(): bool
|
||||
|
@ -46,12 +46,12 @@ class ToolbarList
|
||||
'font' => oxNew(Font::class),
|
||||
'color' => oxNew(Color::class),
|
||||
'align' => oxNew(Align::class),
|
||||
'subscript' => oxNew(Subscript::class),
|
||||
'superscript' => oxNew(Superscript::class),
|
||||
//'subscript' => oxNew(Subscript::class),
|
||||
//'superscript' => oxNew(Superscript::class),
|
||||
],
|
||||
[
|
||||
'undo' => oxNew(Undo::class),
|
||||
'copypaste' => oxNew(CopyPaste::class),
|
||||
//'undo' => oxNew(Undo::class),
|
||||
//'copypaste' => oxNew(CopyPaste::class),
|
||||
'lists' => oxNew(Lists::class),
|
||||
'indent' => oxNew(Indent::class),
|
||||
'blockquote' => oxNew(Blockquote::class),
|
||||
|
1
Application/fileman/js/main.min.js
vendored
1
Application/fileman/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@ $sLangName = 'Deutsch';
|
||||
$aLang = array(
|
||||
'charset' => 'UTF-8',
|
||||
'TINYMCE_TOGGLE' => 'Editor zeigen/verstecken',
|
||||
'TINYMCE_PLAINCMS' => '<b class="errorbox">TinyMCE wurde für diese Seite deaktiviert, weil sie keine HTML Formatierung enthalten darf </b>',
|
||||
'TINYMCE_PLAINCMS' => '<b class="errorbox">Der Editor wurde für diese Seite deaktiviert, weil sie keine HTML Formatierung enthalten darf </b>',
|
||||
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size:medium;color:#ff3600;}.groupExp dt input.txt {width:430px !important} .groupExp dl {display:block !important;} input.confinput {position:fixed;top:20px;right:70px;background:#008B2D;padding:10px 25px;color:white;border:1px solid black;cursor:pointer;font-size:125%;} input.confinput:hover {outline:3px solid #ff3600;} .groupExp dt textarea.txtfield {width:430px;height:150px;}</style>Moduleinstellungen',
|
||||
'SHOP_MODULE_blTinyMCE_filemanager' => 'Dateimanager aktivieren',
|
||||
'HELP_SHOP_MODULE_blTinyMCE_filemanager' => 'Ist diese Option aktiv, können Bilder hochgeladen werden. Der Speicherort ist: out/pictures/wysiwigpro/',
|
||||
|
@ -20,7 +20,7 @@ $sLangName = 'English';
|
||||
$aLang = array(
|
||||
'charset' => 'UTF-8',
|
||||
'TINYMCE_TOGGLE' => 'toggle editor',
|
||||
'TINYMCE_PLAINCMS' => '<b class="errorbox">TinyMCE was disabled for this page because it may not contain HTML code</b>',
|
||||
'TINYMCE_PLAINCMS' => '<b class="errorbox">The editor was disabled for this page because it may not contain HTML code</b>',
|
||||
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size:medium;color:#ff3600;}.groupExp dt input.txt {width:430px !important} .groupExp dl {display:block !important;} input.confinput {position:fixed;top:20px;right:70px;background:#008B2D;padding:10px 25px;color:white;border:1px solid black;cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>module settings',
|
||||
'SHOP_MODULE_blTinyMCE_filemanager' => 'enable filemanager',
|
||||
'HELP_SHOP_MODULE_blTinyMCE_filemanager' => 'When enabled, you can upload pictures into this directory: out/pictures/wysiwigpro/',
|
||||
|
Loading…
Reference in New Issue
Block a user