mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
WIP image upload via drag into ckeditor 4.5:
-Add extraPlugins into ckeditor config -Activate imageUpload for mail compose htmlarea
This commit is contained in:
parent
a2b96f0c9c
commit
e91a88e80d
@ -86,7 +86,7 @@
|
||||
</vbox>
|
||||
<vbox class="mailComposeBodySection" width="99%">
|
||||
<hbox disabled="@is_plain" class="mailComposeBody mailComposeHtmlContainer">
|
||||
<htmlarea span="all" name="mail_htmltext" id="mail_htmltext" imageDataUrl="true" expand_toolbar="true" height="478px" width="100%" resize_ratio="0"/>
|
||||
<htmlarea span="all" name="mail_htmltext" id="mail_htmltext" imageUpload="link_to" expand_toolbar="true" height="478px" width="100%" resize_ratio="0"/>
|
||||
</hbox>
|
||||
<hbox disabled="@is_html" class="mailComposeBody mailComposeTextContainer">
|
||||
<textbox multiline="true" rows="40" cols="120" width="100%" span="all" no_lang="1" name="mail_plaintext" id="mail_plaintext" resize_ratio="0"/>
|
||||
|
@ -309,7 +309,7 @@ drwxr-xr-x 3 kl kl 4096 Dez 9 14:26 office2013
|
||||
)
|
||||
{
|
||||
$spellchecker_button = 'SpellCheck';
|
||||
$config['extraPlugins'] = "aspell";
|
||||
self::append_extraPlugins_config_array($config, array("aspell"));
|
||||
}
|
||||
if ($GLOBALS['egw_info']['server']['enabled_spellcheck']!='YesNoSCAYT' &&
|
||||
$GLOBALS['egw_info']['server']['enabled_spellcheck']!='YesBrowserBased'
|
||||
@ -423,9 +423,34 @@ drwxr-xr-x 3 kl kl 4096 Dez 9 14:26 office2013
|
||||
self::add_spellchecker_options($config, $spellchecker_button, $scayt_button);
|
||||
self::add_toolbar_options($config, $mode, $spellchecker_button, $scayt_button);
|
||||
//error_log(__METHOD__."('$mode', $height, ".array2string($expanded_toolbar).") returning ".array2string($config));
|
||||
// Add extra plugins
|
||||
self::append_extraPlugins_config_array($config, array('uploadimage','uploadwidget','widget','notification','notificationaggregator','lineutils'));
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds extra
|
||||
* @param array $config
|
||||
* @param array $plugins plugins name which needs to be appended into extraPlugins
|
||||
*/
|
||||
public static function append_extraPlugins_config_array (&$config, $plugins)
|
||||
{
|
||||
if (is_array($plugins))
|
||||
{
|
||||
foreach ($plugins as &$plugin)
|
||||
{
|
||||
if (!empty($config['extraPlugins']) && $config['extraPlugins'] !== '')
|
||||
{
|
||||
$config['extraPlugins'] .= ',' . $plugin;
|
||||
}
|
||||
else
|
||||
{
|
||||
$config['extraPlugins'] = $plugin;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a json encoded string containing the configuration for the ckeditor.
|
||||
* @param string $mode specifies the count of toolbar buttons available to the user. Possible
|
||||
|
Loading…
Reference in New Issue
Block a user