mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 19:08:55 +08:00
workaround for CKEditor bug with setting empty data
This commit is contained in:
parent
0bdf900e2e
commit
58362405c6
2 changed files with 8 additions and 6 deletions
11
bin/build.sh
11
bin/build.sh
|
@ -4,11 +4,6 @@ echo "Deleting existing builds"
|
||||||
|
|
||||||
rm -r dist/*
|
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"
|
echo "Rebuilding binaries for linux-ia32"
|
||||||
./node_modules/.bin/electron-rebuild --arch=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
|
./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"
|
echo "Copying required windows binaries"
|
||||||
|
|
||||||
WIN_RES_DIR=./dist/trilium-win32-x64/resources/app
|
WIN_RES_DIR=./dist/trilium-win32-x64/resources/app
|
||||||
|
|
|
@ -121,7 +121,8 @@ const noteEditor = (function() {
|
||||||
|
|
||||||
noteTitleEl.val(currentNote.detail.note_title);
|
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;
|
noteChangeDisabled = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue