mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: new site setting 'code formatting style'
This commit is contained in:
parent
800081f606
commit
83309752ae
5 changed files with 26 additions and 12 deletions
|
@ -257,6 +257,7 @@ testCase('link modal (link with description)', function(assert) {
|
|||
componentTest('advanced code', {
|
||||
template: '{{d-editor value=value}}',
|
||||
setup() {
|
||||
this.siteSettings.code_formatting_style = '4-spaces-indent';
|
||||
this.set('value',
|
||||
`function xyz(x, y, z) {
|
||||
if (y === z) {
|
||||
|
@ -286,6 +287,7 @@ componentTest('advanced code', {
|
|||
componentTest('code button', {
|
||||
template: '{{d-editor value=value}}',
|
||||
setup() {
|
||||
this.siteSettings.code_formatting_style = '4-spaces-indent';
|
||||
this.set('value', "first line\n\nsecond line\n\nthird line");
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue