mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update config view
This commit is contained in:
parent
4630b4c2c8
commit
0b20082b73
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@
|
||||||
@endsection
|
@endsection
|
||||||
@if($editor == true)
|
@if($editor == true)
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.4/ace.js"></script>
|
<script src="{{mix('js/ace.js')}}"></script>
|
||||||
<script>
|
<script>
|
||||||
let editor = ace.edit("editor");
|
let editor = ace.edit("editor");
|
||||||
editor.session.setUseWrapMode(true);
|
editor.session.setUseWrapMode(true);
|
||||||
editor.setTheme("ace/theme/monokai");
|
editor.setTheme("ace/theme/monokai");
|
||||||
editor.session.setMode("ace/mode/javascript");
|
editor.session.setMode("ace/mode/dot");
|
||||||
|
|
||||||
$('.btn-restore').on('click', function(e) {
|
$('.btn-restore').on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue