Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
63691c07
Commit
63691c07
authored
3 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
DRAFT: Start ext_wysiwyg draft
parent
91381dab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!59
REL: release 0.4.1
,
!56
ENH: Add a WYSIWYG editor for text properties
Pipeline
#16729
passed
3 years ago
Stage: linting
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.properties.d/00_default.properties
+3
-0
3 additions, 0 deletions
build.properties.d/00_default.properties
src/core/js/ext_editmode_wysiwyg_text.js
+34
-0
34 additions, 0 deletions
src/core/js/ext_editmode_wysiwyg_text.js
with
37 additions
and
0 deletions
build.properties.d/00_default.properties
+
3
−
0
View file @
63691c07
...
...
@@ -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 diff is collapsed.
Click to expand it.
src/core/js/ext_editmode_wysiwyg_text.js
0 → 100644
+
34
−
0
View file @
63691c07
/*
* 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
);
}
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment