Skip to content

Commit

Permalink
feat(js-api): add types for Editor Config Contributor client extension
Browse files Browse the repository at this point in the history
  • Loading branch information
markocikos committed Dec 19, 2023
1 parent 6008120 commit 50938f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions projects/js-toolkit/packages/js-api/editor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/

/**
* Editor Transformer
*
* For CKEditor 4, see config API:
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
*/

export interface EditorConfigTransformer<T> {
(args: T): T;
}

export interface EditorTransformer<T> {
editorConfigTransformer: EditorConfigTransformer<T>;
}

0 comments on commit 50938f3

Please sign in to comment.