Skip to content

Build your personal knowledge base with Trilium Notes

chore(ckeditor5-keyboard-marker): integrate rest of the files

Elian Dorandad7e3e408ba
diff --git a/_regroup/ckeditor5-keyboard-marker/.editorconfig b/_regroup/ckeditor5-keyboard-marker/.editorconfig
deleted file mode 100644
index ab5fd231ef..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# Configurations to normalize the IDE behavior.
-# http://editorconfig.org/
-
-root = true
-
-[*]
-indent_style = tab
-tab_width = 4
-charset = utf-8
-end_of_line = lf
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[package.json]
-indent_style = space
-tab_width = 2
diff --git a/_regroup/ckeditor5-keyboard-marker/.eslintrc.js b/_regroup/ckeditor5-keyboard-marker/.eslintrc.js
deleted file mode 100644
index 60f819d770..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/.eslintrc.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
-
-/* eslint-env node */
-
-'use strict';
-
-module.exports = {
- extends: 'ckeditor5'
-};
diff --git a/_regroup/ckeditor5-keyboard-marker/.gitattributes b/_regroup/ckeditor5-keyboard-marker/.gitattributes
deleted file mode 100644
index 9c20d56f70..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/.gitattributes
+++ /dev/null
@@ -1,18 +0,0 @@
-* text=auto
-
-*.htaccess eol=lf
-*.cgi eol=lf
-*.sh eol=lf
-
-*.css text
-*.htm text
-*.html text
-*.js text
-*.json text
-*.php text
-*.txt text
-*.md text
-
-*.png -text
-*.gif -text
-*.jpg -text
diff --git a/_regroup/ckeditor5-keyboard-marker/.gitignore b/_regroup/ckeditor5-keyboard-marker/.gitignore
deleted file mode 100644
index 5524d755c6..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/.gitignore
+++ /dev/null
@@ -1,106 +0,0 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-
-# Diagnostic reports (https://nodejs.org/api/report.html)
-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-*.lcov
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (https://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# TypeScript v1 declaration files
-typings/
-
-# TypeScript cache
-*.tsbuildinfo
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Microbundle cache
-.rpt2_cache/
-.rts2_cache_cjs/
-.rts2_cache_es/
-.rts2_cache_umd/
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-.env.test
-
-# parcel-bundler cache (https://parceljs.org/)
-.cache
-
-# Next.js build output
-.next
-
-# Nuxt.js build / generate output
-.nuxt
-dist
-
-# Gatsby files
-.cache/
-# Comment in the public line in if your project uses Gatsby and *not* Next.js
-# https://nextjs.org/blog/next-9-1#public-directory-support
-# public
-
-# vuepress build output
-.vuepress/dist
-
-# Serverless directories
-.serverless/
-
-# FuseBox cache
-.fusebox/
-
-# DynamoDB Local files
-.dynamodb/
-
-# TernJS port file
-.tern-port
-
-test
\ No newline at end of file
diff --git a/_regroup/ckeditor5-keyboard-marker/.stylelintrc b/_regroup/ckeditor5-keyboard-marker/.stylelintrc
deleted file mode 100644
index 1d86a41f98..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/.stylelintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "stylelint-config-ckeditor5"
-}
diff --git a/_regroup/ckeditor5-keyboard-marker/README.md b/_regroup/ckeditor5-keyboard-marker/README.md
deleted file mode 100644
index 83dbf661d2..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-[![npm](https://img.shields.io/npm/dm/@mlewand/ckeditor5-keyboard-marker.svg?style=flat-square)](https://www.npmjs.org/package/@mlewand/ckeditor5-keyboard-marker)
-
-# CKEditor 5 keyboard marker
-
-This plugin adds support for the keyboard input element (`<kbd>`) to CKEditor 5.
-
-![Keyboard marker example](assets/demo.gif)
-
-## Installation
-
-* Follow the [Creating custom builds](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/custom-builds.html) guide.
-* Execute `npm i @mlewand/ckeditor5-keyboard-marker --save` (or `yarn add @mlewand/ckeditor5-keyboard-marker`)
-* Include the `Kbd` plugin and add `kbd` button to the toolbar (if desired).
-
-An example configuration:
-
-```js
-'use strict';
-
-// The editor creator to use.
-import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
-
-import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
-import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
-import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
-import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
-import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
-import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
-import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
-import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
-
-import Kbd from '@mlewand/ckeditor5-keyboard-marker/src/Kbd';
-
-export default class ClassicEditor extends ClassicEditorBase {}
-
-// Plugins to include in the build.
-ClassicEditor.builtinPlugins = [
- EssentialsPlugin,
- AutoformatPlugin,
- BoldPlugin,
- ItalicPlugin,
- HeadingPlugin,
- LinkPlugin,
- ListPlugin,
- ParagraphPlugin,
- RemoveFormat,
-
- Kbd
-];
-
-ClassicEditor.defaultConfig = {
- toolbar: [ 'heading', '|', 'bold', 'italic', 'kbd', 'removeFormat' ],
-
- // This value must be kept in sync with the language defined in webpack.config.js.
- language: 'en'
-};
-```
diff --git a/_regroup/ckeditor5-keyboard-marker/package.json b/_regroup/ckeditor5-keyboard-marker/package.json
deleted file mode 100644
index de96399c21..0000000000
--- a/_regroup/ckeditor5-keyboard-marker/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "name": "@mlewand/ckeditor5-keyboard-marker",
- "version": "1.0.2",
- "description": "This plugin adds support for the keyboard input element (`<kbd>`) to CKEditor 5.",
- "keywords": [
- "ckeditor",
- "ckeditor5",
- "ckeditor 5"
- ],
- "peerDependencies": {
- "@ckeditor/ckeditor5-core": ">=19.0.0",
- "@ckeditor/ckeditor5-ui": ">=19.0.0",
- "@ckeditor/ckeditor5-basic-styles": ">=19.0.0"
- },
- "devDependencies": {
- "eslint": "^5.5.0",
- "eslint-config-ckeditor5": "^2.0.0",
- "husky": "^1.3.1",
- "lint-staged": "^7.0.0",
- "stylelint": "^11.1.1",
- "stylelint-config-ckeditor5": "^1.0.0"
- },
- "engines": {
- "node": ">=10.0.0",
- "npm": ">=5.7.1"
- },
- "author": "Marek Lewandowski",
- "license": "GPL-3.0",
- "homepage": "https://github.com/mlewand/ckeditor5-keyboard-marker",
- "bugs": "https://github.com/mlewand/ckeditor5-keyboard-marker/issues",
- "repository": {
- "type": "git",
- "url": "https://github.com/mlewand/ckeditor5-keyboard-marker.git"
- },
- "files": [
- "src",
- "icons"
- ],
- "scripts": {
- "lint": "eslint --quiet '**/*.js'",
- "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'"
- },
- "lint-staged": {
- "**/*.js": [
- "eslint --quiet"
- ],
- "**/*.css": [
- "stylelint --quiet --allow-empty-input"
- ]
- },
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- }
-}
diff --git a/_regroup/ckeditor5-keyboard-marker/LICENSE b/packages/ckeditor5-keyboard-marker/LICENSE
similarity index 100%
rename from _regroup/ckeditor5-keyboard-marker/LICENSE
rename to packages/ckeditor5-keyboard-marker/LICENSE
diff --git a/packages/ckeditor5-keyboard-marker/LICENSE.md b/packages/ckeditor5-keyboard-marker/LICENSE.md
deleted file mode 100644
index b60c76711a..0000000000
--- a/packages/ckeditor5-keyboard-marker/LICENSE.md
+++ /dev/null
@@ -1,6 +0,0 @@
-Software License Agreement
-==========================
-
-Copyright (c) 2025. All rights reserved.
-
-Licensed under the terms of [MIT license](https://opensource.org/licenses/MIT).
diff --git a/packages/ckeditor5-keyboard-marker/README.md b/packages/ckeditor5-keyboard-marker/README.md
index af6aa6fd90..ed9e98925c 100644
--- a/packages/ckeditor5-keyboard-marker/README.md
+++ b/packages/ckeditor5-keyboard-marker/README.md
@@ -1,21 +1,24 @@
-@triliumnext/ckeditor5-keyboard-marker
-======================================
+# CKEditor 5 keyboard marker
-This package was created by the [ckeditor5-package-generator](https://www.npmjs.com/package/ckeditor5-package-generator) package.
+This plugin adds support for the keyboard input element (`<kbd>`) to CKEditor 5.
+
+![Keyboard marker example](demo.gif)
## Table of contents
-* [Developing the package](#developing-the-package)
-* [Available scripts](#available-scripts)
- * [`start`](#start)
- * [`test`](#test)
- * [`lint`](#lint)
- * [`stylelint`](#stylelint)
- * [`build:dist`](#builddist)
- * [`translations:synchronize`](#translationssynchronize)
- * [`translations:validate`](#translationsvalidate)
- * [`ts:build` and `ts:clear`](#tsbuild-and-tsclear)
-* [License](#license)
+- [CKEditor 5 keyboard marker](#ckeditor-5-keyboard-marker)
+ - [Table of contents](#table-of-contents)
+ - [Developing the package](#developing-the-package)
+ - [Available scripts](#available-scripts)
+ - [`start`](#start)
+ - [`test`](#test)
+ - [`lint`](#lint)
+ - [`stylelint`](#stylelint)
+ - [`build:dist`](#builddist)
+ - [`translations:synchronize`](#translationssynchronize)
+ - [`translations:validate`](#translationsvalidate)
+ - [`ts:build` and `ts:clear`](#tsbuild-and-tsclear)
+ - [Installation](#installation)
## Developing the package
@@ -134,8 +137,53 @@ npm run translations:validate
These scripts compile TypeScript and remove the compiled files. They are used in the aforementioned life cycle scripts, and there is no need to call them manually.
-## License
+## Installation
+
+* Follow the [Creating custom builds](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/custom-builds.html) guide.
+* Execute `npm i @mlewand/ckeditor5-keyboard-marker --save` (or `yarn add @mlewand/ckeditor5-keyboard-marker`)
+* Include the `Kbd` plugin and add `kbd` button to the toolbar (if desired).
+
+An example configuration:
+
+```js
+'use strict';
+
+// The editor creator to use.
+import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
+
+import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
+import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
+import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
+import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
+import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
+import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
+import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
-The `@triliumnext/ckeditor5-keyboard-marker` package is available under [MIT license](https://opensource.org/licenses/MIT).
+import Kbd from '@mlewand/ckeditor5-keyboard-marker/src/Kbd';
-However, it is the default license of packages created by the [ckeditor5-package-generator](https://www.npmjs.com/package/ckeditor5-package-generator) package and can be changed.
+export default class ClassicEditor extends ClassicEditorBase {}
+
+// Plugins to include in the build.
+ClassicEditor.builtinPlugins = [
+ EssentialsPlugin,
+ AutoformatPlugin,
+ BoldPlugin,
+ ItalicPlugin,
+ HeadingPlugin,
+ LinkPlugin,
+ ListPlugin,
+ ParagraphPlugin,
+ RemoveFormat,
+
+ Kbd
+];
+
+ClassicEditor.defaultConfig = {
+ toolbar: [ 'heading', '|', 'bold', 'italic', 'kbd', 'removeFormat' ],
+
+ // This value must be kept in sync with the language defined in webpack.config.js.
+ language: 'en'
+};
+```
diff --git a/_regroup/ckeditor5-keyboard-marker/assets/demo.gif b/packages/ckeditor5-keyboard-marker/assets/demo.gif
similarity index 100%
rename from _regroup/ckeditor5-keyboard-marker/assets/demo.gif
rename to packages/ckeditor5-keyboard-marker/assets/demo.gif
diff --git a/packages/ckeditor5-keyboard-marker/package.json b/packages/ckeditor5-keyboard-marker/package.json
index 93812f1475..92b1da92a7 100644
--- a/packages/ckeditor5-keyboard-marker/package.json
+++ b/packages/ckeditor5-keyboard-marker/package.json
@@ -23,7 +23,9 @@
"./browser/*": null,
"./package.json": "./package.json"
},
- "license": "MIT",
+ "author": "Marek Lewandowski",
+ "license": "GPL-3.0",
+ "homepage": "https://github.com/mlewand/ckeditor5-keyboard-marker",
"engines": {
"node": ">=18.0.0",
"npm": ">=5.7.1"