Add enable_tinymce option to Pages editor

This commit is contained in:
slawkens
2020-02-11 01:02:46 +01:00
parent 1ab32ca3ba
commit f475c671f7
5 changed files with 58 additions and 13 deletions

5
system/migrations/29.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
if(!$db->hasColumn(TABLE_PREFIX . 'pages', 'enable_tinymce')) {
$db->exec('ALTER TABLE `' . TABLE_PREFIX . 'pages` ADD `enable_tinymce` TINYINT(1) NOT NULL DEFAULT 1 COMMENT \'1 - enabled, 0 - disabled\' AFTER `php`;');
}