Skip to content

Commit

Permalink
Add snippet placholder node to regulatory statement edit schema
Browse files Browse the repository at this point in the history
  • Loading branch information
piemonkey committed May 16, 2024
1 parent c199951 commit e8c3b56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-wombats-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frontend-gelinkt-notuleren": minor
---

Add support for snippet placeholder nodes in regulatory statements
6 changes: 6 additions & 0 deletions app/controllers/regulatory-statements/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ import {
table_of_contents,
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/table-of-contents-plugin/nodes';
import { document_title } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/document-title-plugin/nodes';
import {
snippetPlaceholder,
snippetPlaceholderView,
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin/nodes/snippet-placeholder';

import generateExportFromEditorDocument from 'frontend-gelinkt-notuleren/utils/generate-export-from-editor-document';
import ENV from 'frontend-gelinkt-notuleren/config/environment';
Expand Down Expand Up @@ -143,6 +147,7 @@ export default class RegulatoryStatementsRoute extends Controller {
block_rdfa: blockRdfaWithConfig({ rdfaAware: true }),
inline_rdfa: inlineRdfaWithConfig({ rdfaAware: true }),
link: link(this.config.link),
snippet_placeholder: snippetPlaceholder,
},
marks: {
em,
Expand Down Expand Up @@ -172,6 +177,7 @@ export default class RegulatoryStatementsRoute extends Controller {
text_variable: textVariableView(controller),
templateComment: templateCommentView(controller),
inline_rdfa: inlineRdfaWithConfigView({ rdfaAware: true })(controller),
snippet_placeholder: snippetPlaceholderView(controller),
};
};
}
Expand Down
1 change: 1 addition & 0 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
@import "template-comments-plugin";
@import "confidentiality-plugin";
@import "worship-plugin";
@import "snippet-plugin";
@import "project/p-annotations"; // @TODO: refactor in ember-rdfa-editor

// give treatment (behandeling) content the same style as other say-documents
Expand Down

0 comments on commit e8c3b56

Please sign in to comment.