Skip to content

Commit

Permalink
Update input.inc
Browse files Browse the repository at this point in the history
Das Add-On zum Redactor Editor heißt nicht "rex_redactor2" sondern nur "redactor2".
  • Loading branch information
helmuth-tschenett authored Mar 5, 2020
1 parent ce3d485 commit 525a3ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/module/0010_text_bild_video_link/input.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ $anzeige_download = 1;//download

$ausgabeform = '';

if(!rex_addon::get('markitup')->isAvailable() && !rex_addon::get('rex_redactor2')->isAvailable()) {
if(!rex_addon::get('markitup')->isAvailable() && !rex_addon::get('redactor2')->isAvailable()) {
echo rex_view::error('Dieses Modul benötigt das "MarkItUp" oder das "Redactor 2" Addon!');
}

if (rex_addon::get('markitup')->isAvailable() && !markitup::profileExists('simple')) {
markitup::insertProfile('simple', 'Angelegt durch das Addon Modulsammlung', 'textile', 300, 800, 'relative', 'bold,italic,underline,deleted,quote,sub,sup,code,unorderedlist,grouplink[internal|external|mailto]');
}

if (rex_addon::get('rex_redactor2')->isAvailable() && !rex_redactor2::profileExists('simple')) {
rex_redactor2::insertProfile('simple', 'Angelegt durch das Addon Modulsammlung', '300', '800', 'relative','bold, italic, underline, deleted, sub, sup, unorderedlist, orderedlist, grouplink[email|external|internal|media], cleaner');
if (rex_addon::get('redactor2')->isAvailable() && !redactor2::profileExists('simple')) {
redactor2::insertProfile('simple', 'Angelegt durch das Addon Modulsammlung', '300', '800', 'relative','bold, italic, underline, deleted, sub, sup, unorderedlist, orderedlist, grouplink[email|external|internal|media], cleaner');
}

$values = '';
Expand Down Expand Up @@ -194,7 +194,7 @@ echo '
<label class="col-sm-3 control-label">Fließext</label>
<div class="col-sm-9">';

if (rex_addon::get('rex_redactor2')->isAvailable()) {
if (rex_addon::get('redactor2')->isAvailable()) {
echo ' <textarea class="form-control redactorEditor2-simple" id="value-' . $i . '" name="REX_INPUT_VALUE[' . $i . '][text]">' . (isset($values[$i]['text']) ? $values[$i]['text'] : '') . '</textarea>';
} else {
echo ' <textarea id="markitup_textile_' . $i . '" class="form-control markitup markitupEditor-simple" name="REX_INPUT_VALUE[' . $i . '][text]">' . (isset($values[$i]['text']) ? $values[$i]['text'] : '') . '</textarea>';
Expand Down

0 comments on commit 525a3ce

Please sign in to comment.