optimized editor with site template

pull/44/head
A1Gard 6 months ago
parent 2cc4a75976
commit e280b8deb8

@ -9,8 +9,7 @@ window.addEventListener('load',function () {
skin: 'moono-dark',
});
// WIP: need font and color like website
CKEDITOR.addCss('.cke_editable { background-color: #212529; color: white }');
CKEDITOR.addCss('.cke_editable { background-color: ' + website_bg + '; color: ' + website_text_color + ' ; font-family: ' + website_font + ' }');
editors[el.getAttribute('name')].on('change', function (evt) {
el.value = evt.editor.getData();
});

@ -1,6 +1,9 @@
@yield('js-content')
<script type="text/javascript">
var xupload = "{{route('admin.ckeditor.upload', ['_token' => csrf_token() ])}}";
var website_bg = "{{gfx()['background']}}";
var website_text_color = "{{gfx()['text']}}";
var website_font = "{{gfx()['font']}}";
window.routesList = @json(getAdminRoutes());
</script>
</body>

Loading…
Cancel
Save