6174 / 6174/pagedown

unbinding the editor

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
auto-migrated Priority-Medium Type-Defect
主要語言
JavaScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

```
I use the editor within a 'modal' dialog within the page (using colorbox). When
someone closes the dialog, I'd like to be able to cleanup after the editor has
been shown so that if they re-open the dialog, everything is fresh again.

This means unbinding any events and removing elements like the wmd-button-bar.
Would it be possible to add a editor.close() function?
```

Original issue reported on code.google.com by `latch...@gmail.com` on 20 Dec 2011 at 12:33

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

查看 pagedown 原始碼中的編輯器初始化程式碼,以了解事件和 wmd-button-bar 等 DOM 元素是如何繫結的。找出編輯器的主要類別或函式,然後設計一個清理方法,用來移除事件監聽器和 DOM 元素。建立一個開啟和關閉編輯器的模態對話框進行測試,以確保清理正常運作,且重新初始化時使用的是全新的狀態。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
frontend
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。