wip card description save

This commit is contained in:
viehlieb 2022-06-10 17:57:15 +02:00
parent 84d51393e4
commit 0f65e06338
6 changed files with 2380 additions and 4 deletions

View file

@ -23,7 +23,11 @@ BlazeComponent.extendComponent({
this.data().setDescription(description);
},
// Pressing Ctrl+Enter should submit the form
'keydown form textarea'(evt) {
// was keydown
// extraevent for saving input. buffer of keydown vs buffer time
'keyup form textarea'(evt) {
const description = this.getInput()[0].value;
this.data().setDescription(description);
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
const submitButton = this.find('button[type=submit]');
if (submitButton) {

View file

@ -1710,10 +1710,16 @@ BlazeComponent.extendComponent({
EscapeActions.register(
'detailsPane',
() => {
//save description editing on EscapeAction
if (document.getElementsByClassName("editor js-new-description-input").item(0))
{
Utils.getCurrentCard().setDescription(document.getElementsByClassName("editor js-new-description-input").item(0).value);
}
if (Session.get('cardDetailsIsDragging')) {
// Reset dragging status as the mouse landed outside the cardDetails template area and this will prevent a mousedown event from firing
Session.set('cardDetailsIsDragging', false);
Session.set('cardDetailsIsMouseDown', false);
} else {
// Prevent close card when the user is selecting text and moves the mouse cursor outside the card detail area
Utils.goBoardId(Session.get('currentBoard'));

1180
i18n/de.i18n.json Normal file

File diff suppressed because it is too large Load diff

1181
i18n/en.i18n.json Normal file

File diff suppressed because it is too large Load diff

6
package-lock.json generated
View file

@ -691,9 +691,9 @@
"dev": true
},
"caniuse-lite": {
"version": "1.0.30001332",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw=="
"version": "1.0.30001334",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001334.tgz",
"integrity": "sha512-kbaCEBRRVSoeNs74sCuq92MJyGrMtjWVfhltoHUCW4t4pXFvGjUBrfo47weBRViHkiV3eBYyIsfl956NtHGazw=="
},
"chai": {
"version": "4.3.6",

View file

@ -6,6 +6,10 @@ echo "Note: If you use other locale than en_US.UTF-8 , you need to additionally
echo " with 'sudo dpkg-reconfigure locales' , so that MongoDB works correctly."
echo " You can still use any other locale as your main locale."
export $(cat .env)
export OAUTH2_REQUEST_PERMISSIONS="openid profile email wekan_scope"
#Below script installs newest node 8.x for Debian/Ubuntu/Mint.
function pause(){
@ -111,6 +115,7 @@ do
"Run Meteor for dev on http://localhost:4000")
WRITABLE_PATH=.. NODE_OPTIONS="--max_old_space_size=4096" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000
break
;;