]> BookStack Code Mirror - bookstack/blob - resources/views/editor-test.blade.php
Started work on details/summary blocks
[bookstack] / resources / views / editor-test.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container">
5
6         <div>
7             <input id="markdown-toggle" type="checkbox">
8         </div>
9
10         <div id="editor" class="bs-editor page-content" style="margin-bottom: 23px"></div>
11
12         <div id="content" style="display: none;">
13             <h2>This is an editable block</h2>
14             <p>
15                 Lorem ipsum dolor sit amet, <strong>consectetur adipisicing</strong> elit. Asperiores? <br>
16                 Some <span style="text-decoration: underline">Underlined content</span> Lorem ipsum dolor sit amet. <br>
17                 Some <span style="text-decoration: line-through;">striked content</span> Lorem ipsum dolor sit amet. <br>
18                 Some <span style="color: red;">Red Content</span> Lorem ipsum dolor sit amet. <br>
19                 Some <a href="https://cats.com" target="_blank" title="link A">Linked Content</a> Lorem ipsum dolor sit amet. <br>
20             </p>
21
22             <details>
23                 <summary>Dropdown here</summary>
24                 <h1>Inner header</h1>
25                 <p>Paragraph</p>
26             </details>
27
28             <table style="width: 100%;">
29                 <thead>
30                 <tr>
31                     <th>Header A</th>
32                     <th>Header B</th>
33                 </tr>
34                 </thead>
35                 <tbody>
36                 <tr>
37                     <td style="width: 250px; height: 30px">Content 1</td>
38                     <td style="width: 320px; height: 30px">Content 2</td>
39                     <td style="width: 320px; height: 30px">Content 2</td>
40                 </tr>
41                 <tr>
42                     <td colspan="2">Row 2, Spanning 2</td>
43                     <td>Row 2 spanning 1</td>
44                 </tr>
45                 <tr>
46                     <td rowspan="2">Row 3/4, Column 1</td>
47                     <td>Row 3, Column 2</td>
48                     <td>Row 3, Column 3</td>
49                 </tr>
50                 <tr>
51                     <td>Row 4, Column 2</td>
52                     <td>Row 4, Column 3</td>
53                 </tr>
54                 </tbody>
55             </table>
56
57 {{--            <iframe width="560" height="315" src="https://www.youtube.com/embed/n6hIa-fPx0M" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>--}}
58
59             <p><img src="/user_avatar.png" alt="Logo"></p>
60             <ul>
61                 <li>Item A</li>
62                 <li>Item B</li>
63                 <li>Item C</li>
64             </ul>
65
66             <p>Lorem ipsum dolor sit amet.</p>
67
68             <hr>
69
70             <p class="align-right">Lorem ipsum dolor sit amet.</p>
71
72             <p class="callout info">
73                 This is an info callout test!
74             </p>
75         </div>
76
77     </div>
78 @endsection
79
80
81 @section('scripts')
82     <script src="{{ versioned_asset('dist/editor.js') }}" nonce="{{ $cspNonce }}"></script>
83 @stop