| | |
| | | "googie.setLanguages(%s);\n". |
| | | "googie.setCurrentLanguage('%s');\n". |
| | | "googie.setDecoration(false);\n". |
| | | "googie.decorateTextarea('%s');\n". |
| | | "%s.set_env('spellcheck', googie);", |
| | | "googie.decorateTextarea('%s');\n", |
| | | $RCMAIL->output->get_skin_path(), |
| | | $RCMAIL->url(array('_task' => 'utils', '_action' => 'spell', '_remote' => 1)), |
| | | !empty($dictionary) ? 'true' : 'false', |
| | |
| | | rcube::JQ(rcube::Q($RCMAIL->gettext('addtodict'))), |
| | | rcube_output::json_serialize($spellcheck_langs), |
| | | $lang, |
| | | $attrib['id'], |
| | | rcmail_output::JS_OBJECT_NAME), 'foot'); |
| | | $attrib['id']), 'foot'); |
| | | |
| | | $OUTPUT->add_label('checking'); |
| | | $OUTPUT->set_env('spellcheck_langs', join(',', $editor_lang_set)); |
| | | } |
| | | |
| | | $out .= "\n".'<iframe name="savetarget" src="program/resources/blank.gif" style="width:0;height:0;border:none;visibility:hidden;"></iframe>'; |
| | | $out .= "\n".'<iframe name="savetarget" src="program/resources/blank.gif" style="width:0;height:0;border:none;visibility:hidden;" aria-hidden="true"></iframe>'; |
| | | |
| | | return $out; |
| | | } |
| | |
| | | if (empty($attrib['name'])) |
| | | $attrib['name'] = 'editorSelect'; |
| | | |
| | | $attrib['onchange'] = "return rcmail_toggle_editor(this, '".$attrib['editorid']."')"; |
| | | $attrib['onchange'] = "return rcmail.command('toggle-editor', {id: '".$attrib['editorid']."', html: this.value == 'html'}, '', event)"; |
| | | |
| | | $select = new html_select($attrib); |
| | | |
| | |
| | | foreach ($RCMAIL->get_compose_responses(true) as $response) { |
| | | $key = $response['key']; |
| | | $item = html::a(array( |
| | | 'href '=> '#'.urlencode($response['name']), |
| | | 'href' => '#'.urlencode($response['name']), |
| | | 'class' => rtrim('insertresponse ' . $attrib['itemclass']), |
| | | 'unselectable' => 'on', |
| | | 'tabindex' => '0', |
| | | 'rel' => $key, |
| | | ), rcube::Q($response['name'])); |
| | | |