v0.5.14 - Fixed signups on event. Added en/dk versions. Added TinyMCEditor on events create/edit. Removed menuplans monday-thursday

This commit is contained in:
Anders
2020-08-07 14:11:13 +02:00
parent 9d6fc22b0f
commit 726cb52aee
8 changed files with 65 additions and 27 deletions
@@ -17,10 +17,17 @@
.toggle__text::before {
border-color: black;
}
.ck-editor__main {
.tox-notification {
display: none !important;
}
.tox {
border-radius: 4px !important;
margin-bottom: 1rem;
}
</style>
<script src="https://cdn.tiny.cloud/1/ikwmbvigw8ass90tn37xiql6mk1gjoks77t3m6tld60hdjov/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<h1>Opret Aktivitet:</h1>
<form method="post" action="{{ route("events.store") }}">
@csrf
@@ -42,13 +49,13 @@
</form>
<script>
ClassicEditor
.create( document.querySelector( '#editor' ))
.then( editor => {
console.log( editor );
} )
.catch( error => {
console.error( error );
} );
tinymce.init({
selector: 'textarea',
setup: function (editor) {
editor.on('change', function () {
tinymce.triggerSave();
});
}
});
</script>
@endsection