Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from lblod/fix/generate-template-command
Browse files Browse the repository at this point in the history
Fix: use the htmlContent method instead of outerHTML
  • Loading branch information
elpoelma committed Sep 20, 2022
2 parents 4c4f9ee + e569587 commit 2570504
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addon/commands/generate-template-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class GenerateTemplateCommand {
const resourceUris = quads.map((quad) => quad.subject.value);
uris = [...uris, ...resourceUris];
}
let documentHTML = controller._rawEditor.rootNode.outerHTML;
let documentHTML = controller.htmlContent;
for (let uri of uris) {
const uriParts = uri.split('/');
uriParts.pop();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"uuid": "^8.3.2"
},
"peerDependencies": {
"@lblod/ember-rdfa-editor": ">=0.60.5",
"@lblod/ember-rdfa-editor": ">=0.63.3",
"ember-concurrency": "^2.2.0"
},
"devDependencies": {
Expand All @@ -50,7 +50,7 @@
"@embroider/test-setup": "^0.48.1",
"@glimmer/component": "^1.0.3",
"@glimmer/tracking": "^1.0.3",
"@lblod/ember-rdfa-editor": ">=0.60.5",
"@lblod/ember-rdfa-editor": ">=0.63.3",
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~3.28.5",
Expand Down

0 comments on commit 2570504

Please sign in to comment.