-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add footnotes functionnality to richtext #2071
Conversation
# Conflicts: # libs/vre/resource-editor/resource-properties/src/lib/property-row.component.ts # package-lock.json
…ssues # Conflicts: # package-lock.json
.../resource-editor/resource-properties/src/lib/switch-components/rich-text-switch.component.ts
Fixed
Show fixed
Hide fixed
if (targetElement.nodeName.toLowerCase() === 'footnote') { | ||
const content = targetElement.getAttribute('content'); | ||
if (content === null) { | ||
throw new AppError('Footnote content is null'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intended for the dev
libs/vre/resource-editor/resource-properties/src/lib/footnotes.component.ts
Outdated
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/footnotes.component.ts
Outdated
Show resolved
Hide resolved
@@ -22,6 +23,51 @@ describe('Resource', () => { | |||
}); | |||
}); | |||
|
|||
describe('footnotes', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there might be more tests with footnotes, I suggest moving them to a separate test file
libs/vre/resource-editor/resource-properties/src/lib/footnotes.component.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly stylistic improvements, please check below:
libs/vre/resource-editor/resource-properties/src/lib/footnote.directive.ts
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/footnote.directive.ts
Outdated
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/footnote.service.ts
Outdated
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/property-row.component.ts
Outdated
Show resolved
Hide resolved
.../resource-editor/resource-properties/src/lib/switch-components/rich-text-switch.component.ts
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/property-row.component.ts
Outdated
Show resolved
Hide resolved
libs/vre/resource-editor/resource-properties/src/lib/footnote.directive.ts
Outdated
Show resolved
Hide resolved
This reverts commit 52b6a7d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixes and answers. From my side it's ok, but what about github-advanced-security comment about Math.random()
?
No description provided.