-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd8d970
commit c943d51
Showing
3 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
tinymce.init({ | ||
selector: '#modal .wysiwyg', | ||
height: 500, | ||
menubar: false, | ||
plugins: [ | ||
'advlist autolink lists link image charmap print preview anchor', | ||
'searchreplace visualblocks fullscreen', | ||
'insertdatetime media table paste codeeditor help wordcount' | ||
], | ||
toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | codeeditor', | ||
content_css: [ | ||
'//www.tiny.cloud/css/codepen.min.css', | ||
'{{ asset('css/app.css') }}', | ||
'{{ asset('css/lorekeeper.css') }}' | ||
] | ||
}); | ||
<script> | ||
$(document).on('focusin', function(e) { | ||
if ($(e.target).closest(".tox-tinymce, .tox-tinymce-aux, .moxman-window, .tam-assetmanager-root").length) { | ||
e.stopImmediatePropagation(); | ||
} | ||
}); | ||
$(document).ready(function() { | ||
tinymce.init({ | ||
selector: '#modal .wysiwyg', | ||
height: 500, | ||
menubar: false, | ||
plugins: [ | ||
'advlist autolink lists link image charmap print preview anchor', | ||
'searchreplace visualblocks fullscreen', | ||
'insertdatetime media table paste codeeditor help wordcount' | ||
], | ||
toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | codeeditor', | ||
content_css: [ | ||
'//www.tiny.cloud/css/codepen.min.css', | ||
'{{ asset('css/app.css') }}', | ||
'{{ asset('css/lorekeeper.css') }}' | ||
] | ||
}); | ||
}); | ||
</script> |