guardian/scribe

Code button in the demo not working properly

オープン

#482 opened on 2016/06/09

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (265 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (3,516 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Hi Guardian team!

Using Chrome 51 on Windows.

When I try your current demo, the Code button is not working correctly. It is like the editor did't recognize that some text was already wrapped in <code>, so it keeps wrapping it over and over instead of removing the code formatting after second click.

How to reproduce:

  1. Open the demo
  2. Select the word World
  3. Press Code button
  4. Press Code button again

Expected: The selected word would be wrapped in <code> and then unwrapped. Actual: The selected word is wrapped twice (<code><code>World</code></code>)

コントリビューターガイド