Elastic: Fix CodeMIrror editor display

pull/6175/head
Aleksander Machniak 7 years ago
parent 674eac1c1c
commit bbc19ac084

@ -1329,8 +1329,6 @@ class rcube_sieve_engine
$script = $this->sieve->get_script($script_name);
$script_post = $_POST['rawsetcontent'];
$out = '<form name="filtersetrawform" action="./" method="post" enctype="multipart/form-data">'."\n";
$hiddenfields = new html_hiddenfield();
$hiddenfields->add(array('name' => '_task', 'value' => $this->rc->task));
$hiddenfields->add(array('name' => '_action', 'value' => 'plugin.managesieve-saveraw'));
@ -1338,7 +1336,7 @@ class rcube_sieve_engine
$hiddenfields->add(array('name' => '_seteditraw', 'value' => 1));
$hiddenfields->add(array('name' => '_framed', 'value' => ($_POST['_framed'] || $_GET['_framed'] ? 1 : 0)));
$out .= $hiddenfields->show();
$out = $hiddenfields->show();
$txtarea = new html_textarea(array(
'id' => 'rawfiltersettxt',
@ -1358,7 +1356,15 @@ class rcube_sieve_engine
$this->rc->output->show_message('managesieve.filterunknownerror', 'error');
}
return $out;
$out = html::tag('form', $attrib + array(
'id' => 'filtersetrawform',
'name' => 'filtersetrawform',
'action' => './',
'method' => 'post',
'enctype' => 'multipart/form-data',
), $out);
return $attrib['close-form'] ? $out : str_replace('/</form>', '', $out);
}
function filterset_form($attrib)

@ -3,7 +3,7 @@
<h1 class="voice"><roundcube:label name="managesieve.filterseteditraw" /></h1>
<div class="formcontent">
<roundcube:object name="filterseteditraw" class="propform" />
<roundcube:object name="filterseteditraw" class="propform raweditor" />
</div>
<div class="formbuttons">

Loading…
Cancel
Save