Browse Source

Made tabbing in editor use spaces

pull/3287/head
Richard Mahn 9 years ago
parent
commit
c29b9ab531
  1. 7
      public/js/gogs.js

7
public/js/gogs.js

@ -589,8 +589,9 @@ function initWikiForm() {
renderingConfig: { renderingConfig: {
singleLineBreaks: false singleLineBreaks: false
}, },
spellChecker: false, indentWithTabs: false,
tabSize: 4, tabSize: 4,
spellChecker: false,
toolbar: ["bold", "italic", "strikethrough", "|", toolbar: ["bold", "italic", "strikethrough", "|",
"heading-1", "heading-2", "heading-3", "heading-bigger", "heading-smaller", "|", "heading-1", "heading-2", "heading-3", "heading-bigger", "heading-smaller", "|",
"code", "quote", "|", "code", "quote", "|",
@ -630,8 +631,9 @@ function initIssueForm() {
renderingConfig: { renderingConfig: {
singleLineBreaks: false singleLineBreaks: false
}, },
spellChecker: false, indentWithTabs: false,
tabSize: 4, tabSize: 4,
spellChecker: false,
toolbar: ["bold", "italic", "strikethrough", "|", toolbar: ["bold", "italic", "strikethrough", "|",
"code", "quote", "|", "code", "quote", "|",
"unordered-list", "ordered-list", "|", "unordered-list", "ordered-list", "|",
@ -798,6 +800,7 @@ function setSimpleMDE() {
renderingConfig: { renderingConfig: {
singleLineBreaks: false singleLineBreaks: false
}, },
indentWithTabs: false,
tabSize: 4, tabSize: 4,
spellChecker: false, spellChecker: false,
previewRender: function (plainText, preview) { // Async method previewRender: function (plainText, preview) { // Async method

Loading…
Cancel
Save