move code editor modal to code-editor module
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import type { UmbCodeEditorElement } from '../components/code-editor.element.js';
|
||||
import type { UmbCodeEditorModalData, UmbCodeEditorModalValue } from './code-editor-modal.token.js';
|
||||
import { css, html, ifDefined, customElement, query } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
||||
import type { UmbCodeEditorElement } from '@umbraco-cms/backoffice/code-editor';
|
||||
import type { UmbCodeEditorModalData, UmbCodeEditorModalValue } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
import '@umbraco-cms/backoffice/code-editor';
|
||||
|
||||
const elementName = 'umb-code-editor-modal';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import '../confirm/confirm-modal.element.js';
|
||||
|
||||
import type { UmbCodeEditorModalData } from './code-editor-modal.token.js';
|
||||
import type { Meta, Story } from '@storybook/web-components';
|
||||
import { html } from '@umbraco-cms/backoffice/external/lit';
|
||||
import type { UmbCodeEditorModalData } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
export default {
|
||||
title: 'API/Modals/Layouts/Code Editor',
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UmbModalToken } from './modal-token.js';
|
||||
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
// TODO => investigate why exporting CodeEditorLanguage in code-editor barrel
|
||||
// causes the schema generation task to fail... For now, language property below
|
||||
@@ -0,0 +1 @@
|
||||
export * from './code-editor-modal.token.js';
|
||||
@@ -0,0 +1,8 @@
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.CodeEditor',
|
||||
name: 'Code Editor Modal',
|
||||
element: () => import('./code-editor-modal.element.js'),
|
||||
},
|
||||
];
|
||||
@@ -1,5 +1,7 @@
|
||||
export * from './components/index.js';
|
||||
export * from './models/index.js';
|
||||
export * from './code-editor-modal/index.js';
|
||||
|
||||
export type { UmbCodeEditorController } from './code-editor.controller.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { manifest as propertyEditorManifest } from './property-editor/manifests.js';
|
||||
import { manifests as codeEditorModalManifests } from './code-editor-modal/manifests.js';
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [propertyEditorManifest];
|
||||
export const manifests: Array<UmbExtensionManifest> = [propertyEditorManifest, ...codeEditorModalManifests];
|
||||
|
||||
@@ -5,12 +5,6 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Confirm Modal',
|
||||
element: () => import('./confirm/confirm-modal.element.js'),
|
||||
},
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.CodeEditor',
|
||||
name: 'Code Editor Modal',
|
||||
element: () => import('./code-editor/code-editor-modal.element.js'),
|
||||
},
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.EmbeddedMedia',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export * from './change-password-modal.token.js';
|
||||
export * from './code-editor-modal.token.js';
|
||||
export * from './confirm-modal.token.js';
|
||||
export * from './debug-modal.token.js';
|
||||
export * from './embedded-media-modal.token.js';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { type TinyMcePluginArguments, UmbTinyMcePluginBase } from '../components/input-tiny-mce/tiny-mce-plugin.js';
|
||||
import { UmbLocalizationController } from '@umbraco-cms/backoffice/localization-api';
|
||||
import { UMB_CODE_EDITOR_MODAL, UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
|
||||
import { UMB_CODE_EDITOR_MODAL } from '@umbraco-cms/backoffice/code-editor';
|
||||
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
export default class UmbTinyMceCodeEditorPlugin extends UmbTinyMcePluginBase {
|
||||
constructor(args: TinyMcePluginArguments) {
|
||||
|
||||
Reference in New Issue
Block a user