Skip to content

Commit da208a5

Browse files
author
Shawn McCool
committed
add markdown editor to forums
1 parent 1361cc6 commit da208a5

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/views/forum/createthread.blade.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
<div class="row">
2020
<div class="">
2121
{{ Form::label('body', 'Thread') }}
22-
{{ Form::textarea('body') }}
22+
<div id="markdown_editor"></div>
23+
{{ Form::textarea('body', null, ['id' => '_markdown_textarea', 'style' => 'display: none;']) }}
2324
{{ $errors->first('body', '<small class="error">:message</small>') }}
2425
</div>
2526
</div>
@@ -34,4 +35,6 @@
3435
{{ Form::close() }}
3536

3637
</div>
37-
</div>
38+
</div>
39+
40+
@include('layouts._markdown_editor')

app/views/forum/thread.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232
<div class="row">
3333
<div class="">
34-
{{ Form::textarea('body') }}
34+
<div id="markdown_editor"></div>
35+
{{ Form::textarea('body', null, ['id' => '_markdown_textarea', 'style' => 'display: none;']) }}
3536
{{ $errors->first('body', '<small class="error">:message</small>') }}
3637
</div>
3738
</div>
@@ -44,6 +45,7 @@
4445
</div>
4546

4647
{{ Form::close() }}
47-
4848
</div>
49-
</div>
49+
</div>
50+
51+
@include('layouts._markdown_editor')

0 commit comments

Comments
 (0)