Skip to content

Commit

Permalink
編集時のプレビュー画面でuser-iconが表示されるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
mousu-a committed Jan 20, 2025
1 parent a377ddd commit 7b96cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/practice_memo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ document.addEventListener('DOMContentLoaded', () => {
memoEditorPreview.innerHTML = markdownInitializer.render(
editorTextarea.value
)
TextareaInitializer.initialize('#js-practice-memo')
})

const editorTab = memoEditor.querySelector('.editor-tab')
Expand Down
1 change: 1 addition & 0 deletions app/javascript/user_mentor_memo.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ document.addEventListener('DOMContentLoaded', () => {
memoEditorPreview.innerHTML = markdownInitializer.render(
editorTextarea.value
)
TextareaInitializer.initialize('#js-user-mentor-memo')
})

const editorTab = memoEditor.querySelector('.editor-tab')
Expand Down

0 comments on commit 7b96cb9

Please sign in to comment.