Skip to content

Commit

Permalink
Update markup for wiki.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmotyczynska committed Nov 10, 2023
1 parent 58cd4d3 commit 38b7322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/features/wikieditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class WikiEditor extends Editor {
const dom = super.getDom( root );

dom.toolbarContainer = root.querySelector( '.comment-form-head' );
dom.panels.markdown = root.querySelector( '.previewable-comment-form > file-attachment > .write-content' );
dom.panels.markdown = root.querySelector( '.js-previewable-comment-form > file-attachment > .write-content' );

delete dom.toolbar;

Expand Down
4 changes: 3 additions & 1 deletion tests/_util/html/root.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

<!-- Wiki editor extras -->
<div class="comment-form-head"></div>
<div class="write-content"></div>
<file-attachment>
<div class="write-content"></div>
</file-attachment>

<!-- Code editor extras -->
<div class="file-header"></div>
Expand Down

0 comments on commit 38b7322

Please sign in to comment.