Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Feb 22, 2023
1 parent 4c19ef1 commit 1934c4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/ckeditor5-build-balloon-block/build-and-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

rm -rf node_modules/@ckeditor/ckeditor5-mention
rm -rf node_modules/@ckeditor/ckeditor5-find-and-replace
rm -rf node_modules/@ckeditor/ckeditor5-link
mkdir node_modules
# force usage of local modification
# mention contains changes to support the attribute editor
cp -r ../ckeditor5-mention node_modules/@ckeditor/
# find and replace disables keyboard shortcut so that it doesn't override trilium find widget
cp -r ../ckeditor5-find-and-replace node_modules/@ckeditor/
# link binds by ctrl+click to open the link which conflicts with trilium handling
cp -r ../ckeditor5-link node_modules/@ckeditor/

npm run build

Expand Down
4 changes: 2 additions & 2 deletions packages/ckeditor5-build-balloon-block/build/ckeditor.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/ckeditor5-link/src/linkediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ export default class LinkEditing extends Plugin {
// Setup highlight over selected link.
inlineHighlight( editor, 'linkHref', 'a', HIGHLIGHT_CLASS );

// hack to fix https://github.com/zadam/trilium/issues/3630
// Handle link following by CTRL+click or ALT+ENTER
this._enableLinkOpen();
// this._enableLinkOpen();

// Change the attributes of the selection in certain situations after the link was inserted into the document.
this._enableInsertContentSelectionAttributesFixer();
Expand Down

0 comments on commit 1934c4b

Please sign in to comment.