|
2 | 2 |
|
3 | 3 | {%block head%} |
4 | 4 | <script src="{{url_for('static', filename='jquery_3.2.1.min.js')}}"></script> |
| 5 | + |
5 | 6 | {%endblock%} |
6 | 7 | {% block content %} |
7 | 8 | <br> |
|
36 | 37 | <div class="field"> |
37 | 38 | {{ form.content.label }} <br> |
38 | 39 | <div class="input-group mb-3"> |
39 | | - <textarea class="form-control" name="content">{{ form.content }}</textarea> |
| 40 | + <textarea id="content" class="form-control" name="content">{{ form.content }}</textarea> |
40 | 41 | </div> |
41 | 42 | </div> |
42 | 43 |
|
|
48 | 49 | </div> |
49 | 50 | </div> |
50 | 51 | </div> |
51 | | -<script type="text/javascript" src="{{ url_for('static', filename='tinymce/tinymce.min.js') }}"></script> |
| 52 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/6.3.1/tinymce.min.js" integrity="sha512-eV68QXP3t5Jbsf18jfqT8xclEJSGvSK5uClUuqayUbF5IRK8e2/VSXIFHzEoBnNcvLBkHngnnd3CY7AFpUhF7w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
52 | 53 | <script type="text/javascript"> |
53 | 54 | tinymce.init({ |
54 | 55 | selector: '#content', |
55 | | - plugins: [ |
56 | | - 'advlist autolink link image imagetools lists charmap print preview hr anchor pagebreak spellchecker', |
57 | | - 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking', |
58 | | - 'save table contextmenu directionality template paste textcolor codesample' |
59 | | - ], |
| 56 | + plugins: `advlist autolink link image imagetools lists |
| 57 | + charmap print preview hr anchor pagebreak |
| 58 | + searchreplace wordcount visualblocks visualchars code |
| 59 | + fullscreen insertdatetime media nonbreaking |
| 60 | + save table directionality template paste |
| 61 | + codesample` |
| 62 | + , |
60 | 63 | imagetools_toolbar: "rotateleft rotateright | flipv fliph | editimage imageoptions", |
61 | | - toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | codesample', |
| 64 | + toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | codesample | table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol', |
62 | 65 | relative_urls: false, |
63 | 66 | images_upload_url: "", |
64 | 67 | image_title: true, |
|
73 | 76 | { text: 'Python', value: 'python' } |
74 | 77 | ], |
75 | 78 | width: "100%", |
| 79 | + promotion: false |
76 | 80 | }); |
77 | 81 | </script> |
78 | 82 | <script type="text/javascript"> |
|
0 commit comments