improve options

This commit is contained in:
O3-Shop 2023-04-05 16:16:00 +02:00
parent e6278a71e9
commit 56a7f1a67f
7 changed files with 24 additions and 10 deletions

View File

@ -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;
}
}

View File

@ -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).' ]';
}
}

View File

@ -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

View File

@ -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),

File diff suppressed because one or more lines are too long

View File

@ -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/',

View File

@ -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/',