Skip to content
Snippets Groups Projects
Commit 63691c07 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

DRAFT: Start ext_wysiwyg draft

parent 91381dab
No related branches found
No related tags found
2 merge requests!59REL: release 0.4.1,!56ENH: Add a WYSIWYG editor for text properties
Pipeline #16729 passed
......@@ -60,6 +60,8 @@ BUILD_MODULE_USER_MANAGEMENT_CHANGE_OWN_PASSWORD_REALM=CaosDB
BUILD_MODULE_EXT_RESOLVE_REFERENCES=ENABLED
BUILD_EXT_REFERENCES_CUSTOM_RESOLVER=person_reference
BUILD_MODULE_EXT_EDITMODE_WYSIWYG_TEXT=DISABLED
##############################################################################
# Navbar properties
##############################################################################
......@@ -174,4 +176,5 @@ MODULE_DEPENDENCIES=(
ext_qrcode.js
form_panel.js
ckeditor.js
ext_editmode_wysiwyg_text.js
)
/*
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2021 Florian Spreckelsen <f.spreckelsen@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
"use strict";
/**
* Replaces textareas in the edit mode by a wysiwyg editor
*/
var ext_editmode_wysiwyg_text = function ($, logger) {
}($, log.getLogger("ext_editmode_wysiwyg_text"));
$(document).ready(() => {
if ("${BUILD_MODULE_EXT_EDITMODE_WYSIWYG_TEXT}" == "ENABLED") {
caosdb_modules.register(ext_editmode_wysiwyg_text);
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment