Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…571) * chore(deps): update ckEditor * chore(deps): update ckEditor * style(value): set ckEditor height * feat(value): consider rich-text gui element in text value * test(value): fix tests * Merge branch 'main' into wip/dev-182-edit-richt-text * fix(deps): use correct ckeditor custom build branch * refactor(style): clean up style imports * fix(value): consider gui element in text value
- Loading branch information
1 parent
bddc2f1
commit 6bfe254
Showing
39 changed files
with
2,321 additions
and
7,487 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/main/action/confirmation-dialog/confirmation-dialog.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../assets/style/viewer"; | ||
1 change: 0 additions & 1 deletion
1
.../main/action/confirmation-dialog/confirmation-message/confirmation-message.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/workspace/resource/operations/add-value/add-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/workspace/resource/operations/display-edit/display-edit.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/boolean-value/boolean-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
|
||
.read-mode-view .mat-icon, | ||
.boolValue { | ||
margin-top: 4px; | ||
|
1 change: 1 addition & 0 deletions
1
src/app/workspace/resource/values/color-value/color-picker/color-picker.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.child-input-component { | ||
height: 48px; | ||
max-width: 256px; | ||
} |
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/color-value/color-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
|
||
:host ::ng-deep .child-value-component { | ||
width: fit-content; | ||
|
||
|
2 changes: 0 additions & 2 deletions
2
...p/workspace/resource/values/date-value/date-input-text/date-edit/date-edit.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../../../../../../../assets/style/viewer"; | ||
|
||
.era-radio { | ||
margin-bottom: 15px; | ||
} | ||
|
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/date-value/date-input-text/date-input-text.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/date-value/date-input/date-input.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/date-value/date-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/workspace/resource/values/decimal-value/decimal-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/geoname-value/geoname-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/int-value/int-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
|
||
// Firefox: | ||
// Hide number picker | ||
input[type=number] { | ||
|
1 change: 0 additions & 1 deletion
1
...app/workspace/resource/values/interval-value/interval-input/interval-input.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../../assets/style/viewer"; | ||
2 changes: 0 additions & 2 deletions
2
src/app/workspace/resource/values/interval-value/interval-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/workspace/resource/values/link-value/link-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
1 change: 0 additions & 1 deletion
1
src/app/workspace/resource/values/list-value/list-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../assets/style/viewer"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { Constants } from '@dasch-swiss/dsp-js'; | ||
|
||
export class ckEditor { | ||
|
||
static config = { | ||
entities: false, | ||
toolbar: { | ||
items: [ | ||
'heading', | ||
'|', | ||
'bold', | ||
'italic', | ||
'underline', | ||
'strikethrough', | ||
'subscript', | ||
'superscript', | ||
'|', | ||
'removeFormat', | ||
'|', | ||
'undo', | ||
'redo', | ||
'-', | ||
'link', | ||
'|', | ||
'bulletedList', | ||
'numberedList', | ||
'horizontalLine', | ||
'|', | ||
'blockQuote', | ||
'code', | ||
'codeBlock', | ||
'insertTable', | ||
'specialCharacters', | ||
'|', | ||
'sourceEditing', | ||
], | ||
shouldNotGroupWhenFull: true | ||
}, | ||
heading: { | ||
options: [ | ||
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' }, | ||
{ model: 'heading1', view: 'h1', title: 'Heading 1' }, | ||
{ model: 'heading2', view: 'h2', title: 'Heading 2' }, | ||
{ model: 'heading3', view: 'h3', title: 'Heading 3' }, | ||
{ model: 'heading4', view: 'h4', title: 'Heading 4' }, | ||
{ model: 'heading5', view: 'h5', title: 'Heading 5' }, | ||
{ model: 'heading6', view: 'h6', title: 'Heading 6' }, | ||
{ model: 'formatted', view: 'pre', title: 'Formatted' }, | ||
{ model: 'cite', view: 'cite', title: 'Cited' } | ||
] | ||
}, | ||
codeBlock: { | ||
languages: [ | ||
{ language: 'plaintext', label: 'Plain text', class: '' } | ||
] | ||
}, | ||
language: 'en', | ||
link: { | ||
addTargetToExternalLinks: false, | ||
decorators: { | ||
isInternal: { | ||
// label: 'internal link to a Knora resource', | ||
mode: 'automatic', // automatic requires callback -> but the callback is async and the user could save the text before the check ... | ||
callback: url => // console.log(url, url.startsWith( 'http://rdfh.ch/' )); | ||
!!url && url.startsWith('http://rdfh.ch/') // --> TODO: get this from config via AppInitService | ||
, | ||
attributes: { | ||
class: Constants.SalsahLink | ||
} | ||
} | ||
} | ||
}, | ||
table: { | ||
contentToolbar: [ | ||
'tableColumn', | ||
'tableRow', | ||
'mergeTableCells' | ||
] | ||
} | ||
}; | ||
} |
1 change: 0 additions & 1 deletion
1
...workspace/resource/values/text-value/text-value-as-html/text-value-as-html.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../../assets/style/viewer"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...space/resource/values/text-value/text-value-as-string/text-value-as-string.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
@import "../../../../../../assets/style/viewer"; | ||
Oops, something went wrong.