Tinymce: remove autoresize and added unlink
This commit is contained in:
parent
d0c31cd794
commit
2c066bc65f
|
@ -8,4 +8,5 @@ bl-plugins/updater
|
|||
bl-kernel/bludit.pro.php
|
||||
bl-themes/docs
|
||||
bl-themes/docsx
|
||||
bl-themes/editorial
|
||||
bl-themes/mediumish
|
|
@ -1,7 +1,13 @@
|
|||
<script>
|
||||
|
||||
// DEPRECATED
|
||||
// ALL THIS FUNCTIONS ARE DEPREACTED
|
||||
function copyToClipboard(elementId) {
|
||||
var aux = document.createElement("input");
|
||||
aux.setAttribute("value", document.getElementById(elementId).innerHTML);
|
||||
document.body.appendChild(aux);
|
||||
aux.select();
|
||||
document.execCommand("copy");
|
||||
document.body.removeChild(aux);
|
||||
}
|
||||
|
||||
function sanitizeHTML(text) {
|
||||
var map = {
|
||||
|
|
|
@ -300,6 +300,14 @@ class Site extends dbJSON {
|
|||
return $this->getField('language');
|
||||
}
|
||||
|
||||
// Returns the sort version of the site's language
|
||||
public function languageShortVersion()
|
||||
{
|
||||
$current = $this->language();
|
||||
$explode = explode('_', $current);
|
||||
return $explode[0];
|
||||
}
|
||||
|
||||
// Returns the current locale.
|
||||
public function locale()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ class pluginTinymce extends Plugin {
|
|||
public function init()
|
||||
{
|
||||
$this->dbFields = array(
|
||||
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
|
||||
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link unlink pagebreak image removeformat code',
|
||||
'toolbar2'=>'',
|
||||
'mobileToolbar'=>'bold italic bullist formatselect',
|
||||
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
|
||||
|
|
|
@ -507,10 +507,10 @@ function install($adminPassword, $timezone)
|
|||
$dataHead.json_encode(
|
||||
array(
|
||||
'position'=>1,
|
||||
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
|
||||
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link unlink pagebreak image removeformat code',
|
||||
'toolbar2'=>'',
|
||||
'mobileToolbar'=>'bold italic bullist formatselect',
|
||||
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern autoresize'
|
||||
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
|
||||
),
|
||||
JSON_PRETTY_PRINT),
|
||||
LOCK_EX
|
||||
|
|
Loading…
Reference in New Issue