Disable all editor components except poll_maker by default #1786

This commit is contained in:
Kijin Sung 2021-09-10 23:49:55 +09:00
parent 5311b73d68
commit d49614d59c

View file

@ -68,16 +68,10 @@ class editor extends ModuleObject
$oModuleController = getController('module');
// Add the default editor component
$oEditorController = getAdminController('editor');
$oEditorController->insertComponent('colorpicker_text',true);
$oEditorController->insertComponent('colorpicker_bg',true);
$oEditorController->insertComponent('emoticon',true);
$oEditorController->insertComponent('url_link',true);
$oEditorController->insertComponent('image_link',true);
$oEditorController->insertComponent('multimedia_link',true);
$oEditorController->insertComponent('quotation',true);
$oEditorController->insertComponent('table_maker',true);
$oEditorController->insertComponent('poll_maker',true);
$oEditorController->insertComponent('image_gallery',true);
$oEditorController->insertComponent('emoticon', false);
$oEditorController->insertComponent('image_link', false);
$oEditorController->insertComponent('image_gallery', false);
$oEditorController->insertComponent('poll_maker', true);
// Create a directory to use in the editor module
FileHandler::makeDir('./files/cache/editor');
// 2007. 10. 17 Add a trigger to delete automatically saved document whenever the document(insert or update) is modified