Tinymce: remove autoresize and added unlink
This commit is contained in:
parent
d0c31cd794
commit
2c066bc65f
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@ bl-plugins/updater
|
||||
bl-kernel/bludit.pro.php
|
||||
bl-themes/docs
|
||||
bl-themes/docsx
|
||||
bl-themes/mediumish
|
||||
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'
|
||||
|
@ -56,7 +56,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($site->codepen()): ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?php echo $site->codepen() ?>" target="_blank">
|
||||
|
@ -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
Block a user