Skip to content

Commit

Permalink
Apply CSS classes from article to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 14, 2023
1 parent 35bb27a commit 6b36a57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/realtime-compiler/resources/live-edit.js
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ function initLiveEdit() {
article.parentNode.insertBefore(editor, article.nextSibling);
editor = getLiveEditor();

// Apply CSS classes from article to editor to match layout
editor.classList.add(...article.classList);

showEditor();

document.getElementById('liveEditCancel').addEventListener('click', hideEditor);

0 comments on commit 6b36a57

Please sign in to comment.