Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
16 code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrisoxide committed Apr 26, 2024
1 parent bc4a738 commit a8e6994
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/javascript/controllers/library_checklists/show_controller.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import { Controller } from "@hotwired/stimulus"
import { Editor } from '@toast-ui/editor'

export default class extends Controller {

static targets = ["previewPanel", "settingsPanel"]

connect() {
const content = this.previewPanelTarget.querySelector('.markdown').innerHTML;

const viewer = new Editor.factory({
el: document.querySelector('#viewer'),
viewer: true,
height: '500px',
initialValue: content
});
}

showPanel(event, panelToShow, panelsToHide) {
event.preventDefault();

Expand Down

0 comments on commit a8e6994

Please sign in to comment.