mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 17:38:47 +02:00
workaround for CKEditor bug with setting empty data
This commit is contained in:
parent
0bdf900e2e
commit
58362405c6
11
bin/build.sh
11
bin/build.sh
@ -4,11 +4,6 @@ echo "Deleting existing builds"
|
||||
|
||||
rm -r dist/*
|
||||
|
||||
echo "Rebuilding binaries for linux-x64"
|
||||
./node_modules/.bin/electron-rebuild --arch=x64
|
||||
|
||||
./node_modules/.bin/electron-packager . --out=dist --platform=linux --arch=x64 --overwrite
|
||||
|
||||
echo "Rebuilding binaries for linux-ia32"
|
||||
./node_modules/.bin/electron-rebuild --arch=ia32
|
||||
|
||||
@ -16,6 +11,12 @@ echo "Rebuilding binaries for linux-ia32"
|
||||
|
||||
./node_modules/.bin/electron-packager . --out=dist --platform=win32 --arch=x64 --overwrite
|
||||
|
||||
# we build x64 as second so that we keep X64 binaries in node_modules for local development
|
||||
echo "Rebuilding binaries for linux-x64"
|
||||
./node_modules/.bin/electron-rebuild --arch=x64
|
||||
|
||||
./node_modules/.bin/electron-packager . --out=dist --platform=linux --arch=x64 --overwrite
|
||||
|
||||
echo "Copying required windows binaries"
|
||||
|
||||
WIN_RES_DIR=./dist/trilium-win32-x64/resources/app
|
||||
|
@ -121,7 +121,8 @@ const noteEditor = (function() {
|
||||
|
||||
noteTitleEl.val(currentNote.detail.note_title);
|
||||
|
||||
editor.setData(currentNote.detail.note_text);
|
||||
// temporary workaround for https://github.com/ckeditor/ckeditor5-enter/issues/49
|
||||
editor.setData(currentNote.detail.note_text ? currentNote.detail.note_text : "<p></p>");
|
||||
|
||||
noteChangeDisabled = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user