Quicksave
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||
|
||||
SPDX-License-Identifier: MPL-2.0
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment';
|
||||
import { Map, Marker } from '@beyonk/svelte-mapbox';
|
||||
|
||||
export let lng: number;
|
||||
export let lat: number;
|
||||
export let markerText: string;
|
||||
export let zoom = 12;
|
||||
let center: [number, number];
|
||||
$: center = [lng, lat];
|
||||
</script>
|
||||
|
||||
{#if browser}
|
||||
<Map accessToken={import.meta.env.VITE_MAPBOX_ACCESS_TOKEN} bind:center bind:zoom>
|
||||
<Marker bind:lat bind:lng bind:label={markerText} />
|
||||
</Map>
|
||||
{/if}
|
||||
@@ -45,7 +45,7 @@ export class I18nService {
|
||||
initialize(): void {
|
||||
this.i18n.use(LanguageDetector).init({
|
||||
// lng: INITIAL_LANGUAGE,
|
||||
compatibilityJSON: 'v3',
|
||||
compatibilityJSON: 'v4',
|
||||
fallbackLng: 'en',
|
||||
debug: false,
|
||||
defaultNS: 'translation',
|
||||
@@ -61,7 +61,8 @@ export class I18nService {
|
||||
detection: {
|
||||
order: ['querystring', 'cookie', 'localStorage', 'navigator'],
|
||||
lookupQuerystring: 'lng',
|
||||
lookupLocalStorage: 'language'
|
||||
lookupLocalStorage: 'language',
|
||||
lookupSessionStorage: true
|
||||
}
|
||||
});
|
||||
this.i18n.addResourceBundle('en', 'translation', en);
|
||||
|
||||
@@ -5,7 +5,19 @@ SPDX-License-Identifier: MPL-2.0
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import BalloonEditor from '@ckeditor/ckeditor5-build-balloon';
|
||||
import {
|
||||
BalloonEditor,
|
||||
Essentials,
|
||||
Autoformat,
|
||||
Bold,
|
||||
Italic,
|
||||
Paragraph,
|
||||
TextTransformation,
|
||||
Superscript,
|
||||
Subscript,
|
||||
Strikethrough
|
||||
} from 'ckeditor5';
|
||||
import 'ckeditor5/ckeditor5.css';
|
||||
// import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
|
||||
// import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
|
||||
// import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
|
||||
@@ -54,8 +66,26 @@ SPDX-License-Identifier: MPL-2.0
|
||||
};*/
|
||||
let editor;
|
||||
onMount(() => {
|
||||
class Editor extends BalloonEditor {
|
||||
static builtinPlugins = [
|
||||
Essentials,
|
||||
Autoformat,
|
||||
Bold,
|
||||
Italic,
|
||||
Paragraph,
|
||||
TextTransformation,
|
||||
Strikethrough,
|
||||
Subscript,
|
||||
Superscript
|
||||
];
|
||||
|
||||
static defaultConfig = {
|
||||
language: 'en'
|
||||
};
|
||||
}
|
||||
// BalloonEditor.builtinPlugins = [Strikethrough]
|
||||
BalloonEditor.create(html_el, {
|
||||
Editor.create(html_el, {
|
||||
licenseKey: 'GPL',
|
||||
// plugins: [Strikethrough],
|
||||
config: {
|
||||
enterMode: BalloonEditor.ENTER_DIV,
|
||||
|
||||
Reference in New Issue
Block a user