Skip to content

Commit

Permalink
Merge pull request #294 from lblod/GN-5150-missing-ember-application-…
Browse files Browse the repository at this point in the history
…plugin

GN-5150: configure `emberApplication` prosemirror plugin
  • Loading branch information
elpoelma authored Nov 4, 2024
2 parents 7aa3696 + ee3e4cf commit f37d987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/spotty-plants-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"frontend-reglementaire-bijlage": patch
---

`rdfa-editor-container` component: include `emberApplication` prosemirror plugin by default.
This ensures that the serialization method of prosemirror nodes will be able to leverage `ember-intl` to provide an internationalized node serialization.
3 changes: 3 additions & 0 deletions app/components/rdfa-editor-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { firefoxCursorFix } from '@lblod/ember-rdfa-editor/plugins/firefox-curso
import { lastKeyPressedPlugin } from '@lblod/ember-rdfa-editor/plugins/last-key-pressed';
import recreateUuidsOnPaste from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/recreateUuidsOnPaste';
import { chromeHacksPlugin } from '@lblod/ember-rdfa-editor/plugins/chrome-hacks-plugin';
import { emberApplication } from '@lblod/ember-rdfa-editor/plugins/ember-application';
import { getOwner } from '@ember/application';

export default class RdfaEditorContainerComponent extends Component {
@tracked editor;
Expand Down Expand Up @@ -36,6 +38,7 @@ export default class RdfaEditorContainerComponent extends Component {
lastKeyPressedPlugin,
chromeHacksPlugin(),
recreateUuidsOnPaste,
emberApplication({ application: getOwner(this) }),
);
}

Expand Down

0 comments on commit f37d987

Please sign in to comment.