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-kernel/bludit.pro.php
|
||||||
bl-themes/docs
|
bl-themes/docs
|
||||||
bl-themes/docsx
|
bl-themes/docsx
|
||||||
|
bl-themes/editorial
|
||||||
bl-themes/mediumish
|
bl-themes/mediumish
|
|
@ -1,7 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// DEPRECATED
|
function copyToClipboard(elementId) {
|
||||||
// ALL THIS FUNCTIONS ARE DEPREACTED
|
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) {
|
function sanitizeHTML(text) {
|
||||||
var map = {
|
var map = {
|
||||||
|
|
|
@ -300,6 +300,14 @@ class Site extends dbJSON {
|
||||||
return $this->getField('language');
|
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.
|
// Returns the current locale.
|
||||||
public function locale()
|
public function locale()
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ class pluginTinymce extends Plugin {
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->dbFields = array(
|
$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'=>'',
|
'toolbar2'=>'',
|
||||||
'mobileToolbar'=>'bold italic bullist formatselect',
|
'mobileToolbar'=>'bold italic bullist formatselect',
|
||||||
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
|
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
|
||||||
|
|
|
@ -507,10 +507,10 @@ function install($adminPassword, $timezone)
|
||||||
$dataHead.json_encode(
|
$dataHead.json_encode(
|
||||||
array(
|
array(
|
||||||
'position'=>1,
|
'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'=>'',
|
'toolbar2'=>'',
|
||||||
'mobileToolbar'=>'bold italic bullist formatselect',
|
'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),
|
JSON_PRETTY_PRINT),
|
||||||
LOCK_EX
|
LOCK_EX
|
||||||
|
|
Loading…
Reference in New Issue