Commit c09a1d0c authored by RawKStar77's avatar RawKStar77

Killed code Markdown button.

With its confusing and limited behavior, along with its not so great icon, this markdown button in the editor wasn't so helpful. People who are likely to insert code into a markdown post to begin with, likely have a good idea of how to already do that or where to find information on how to code in markdown (there is also a link next to the preview button).
parent 90c39fef
...@@ -247,9 +247,6 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc ...@@ -247,9 +247,6 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc
scope.insertQuote = -> scope.insertQuote = ->
scope.applyBlockMarkup("> ") scope.applyBlockMarkup("> ")
scope.insertCode = ->
scope.applyBlockMarkup(" ")
# Keyboard shortcuts for bold, italic, and link. # Keyboard shortcuts for bold, italic, and link.
elem.on elem.on
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
<i class="h-icon-math markdown-tools-button" ng-click="insertMath()" title="Insert mathematical notation (LaTex is supported)"></i> <i class="h-icon-math markdown-tools-button" ng-click="insertMath()" title="Insert mathematical notation (LaTex is supported)"></i>
<i class="h-icon-numlist markdown-tools-button" ng-click="insertNumList()" title="Insert numbered list"></i> <i class="h-icon-numlist markdown-tools-button" ng-click="insertNumList()" title="Insert numbered list"></i>
<i class="h-icon-ulist markdown-tools-button" ng-click="insertList()" title="Insert list"></i> <i class="h-icon-ulist markdown-tools-button" ng-click="insertList()" title="Insert list"></i>
<i class="h-icon-code markdown-tools-button" ng-click="insertCode()" title="Insert code"></i>
</div> </div>
<textarea class="form-input form-textarea js-markdown-input" <textarea class="form-input form-textarea js-markdown-input"
ng-hide="readonly || preview" ng-hide="readonly || preview"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment