diff --git a/web/app/styles/app.less b/web/app/styles/app.less index 1f81fcc..ae4f466 100644 --- a/web/app/styles/app.less +++ b/web/app/styles/app.less @@ -98,3 +98,13 @@ input[type="number"] { .index-content > p { margin: 0 0 6px; } + +.application-content { + white-space: pre-wrap; /* Since CSS 2.1 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + background-color: inherit; + border: 0; +} \ No newline at end of file diff --git a/web/app/templates/components/customer-application/preview-btn.hbs b/web/app/templates/components/customer-application/preview-btn.hbs index bb9864a..c5fc635 100644 --- a/web/app/templates/components/customer-application/preview-btn.hbs +++ b/web/app/templates/components/customer-application/preview-btn.hbs @@ -1,4 +1,4 @@ - + {{!-- --}} {{model.name}} @@ -12,7 +12,9 @@ close-to-parent=false}}
+ {{/each}} {{/with}} diff --git a/web/app/templates/customer-application/create.hbs b/web/app/templates/customer-application/create.hbs index 1398e74..19a006b 100644 --- a/web/app/templates/customer-application/create.hbs +++ b/web/app/templates/customer-application/create.hbs @@ -10,9 +10,7 @@ }} {{form-input name='name' label='Name'}} {{form-input name='note' label='Remark'}} - {{#form-input name='content' label='Content'}} - {{wysiwyg-editor model=model name='content'}} - {{/form-input}} + {{form-input name='content' label='Content' type='textarea'}} {{#form-input name='image' label='Images'}}