mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	feat(editor): update to 43.2.0
This commit is contained in:
		
							parent
							
								
									99f218d79e
								
							
						
					
					
						commit
						3c43b5b381
					
				@ -28,39 +28,39 @@
 | 
				
			|||||||
    "CHANGELOG.md"
 | 
					    "CHANGELOG.md"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@ckeditor/ckeditor5-adapter-ckfinder": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-adapter-ckfinder": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-alignment": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-alignment": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-autoformat": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-autoformat": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-basic-styles": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-basic-styles": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-block-quote": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-block-quote": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-ckbox": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-ckbox": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-ckfinder": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-ckfinder": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-cloud-services": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-cloud-services": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-easy-image": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-easy-image": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-editor-decoupled": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-editor-decoupled": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-essentials": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-essentials": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-font": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-font": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-heading": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-heading": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-image": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-image": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-indent": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-indent": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-link": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-link": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-list": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-list": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-media-embed": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-media-embed": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-paragraph": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-paragraph": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-paste-from-office": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-paste-from-office": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-table": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-table": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-typing": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-typing": "43.2.0",
 | 
				
			||||||
    "@triliumnext/ckeditor5-math": "41.4.2-hotfix1"
 | 
					    "@triliumnext/ckeditor5-math": "43.2.0-hotfix1"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@ckeditor/ckeditor5-core": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-core": "43.2.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-dev-translations": "^39.7.0",
 | 
					    "@ckeditor/ckeditor5-dev-translations": "^43.0.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-dev-utils": "^39.7.0",
 | 
					    "@ckeditor/ckeditor5-dev-utils": "^43.0.0",
 | 
				
			||||||
    "@ckeditor/ckeditor5-theme-lark": "41.4.2",
 | 
					    "@ckeditor/ckeditor5-theme-lark": "43.2.0",
 | 
				
			||||||
    "terser-webpack-plugin": "^4.2.3",
 | 
					    "terser-webpack-plugin": "^4.2.3",
 | 
				
			||||||
    "typescript": "5.0.4",
 | 
					    "typescript": "5.0.4",
 | 
				
			||||||
    "webpack": "^5.58.1",
 | 
					    "webpack": "^5.94.0",
 | 
				
			||||||
    "webpack-cli": "^4.9.0"
 | 
					    "webpack-cli": "^5.1.4"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "author": "CKSource (http://cksource.com/)",
 | 
					  "author": "CKSource (http://cksource.com/)",
 | 
				
			||||||
  "license": "GPL-2.0-or-later",
 | 
					  "license": "GPL-2.0-or-later",
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@ import { BlockToolbar } from '@ckeditor/ckeditor5-ui';
 | 
				
			|||||||
import '../theme/theme.css';
 | 
					import '../theme/theme.css';
 | 
				
			||||||
import { COMMON_PLUGINS, COMMON_SETTINGS } from './config';
 | 
					import { COMMON_PLUGINS, COMMON_SETTINGS } from './config';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//@ts-ignore
 | 
				
			||||||
export default class BalloonEditor extends BalloonEditorBase {
 | 
					export default class BalloonEditor extends BalloonEditorBase {
 | 
				
			||||||
	public static override builtinPlugins = [
 | 
						public static override builtinPlugins = [
 | 
				
			||||||
		...COMMON_PLUGINS,
 | 
							...COMMON_PLUGINS,
 | 
				
			||||||
 | 
				
			|||||||
@ -8,6 +8,7 @@ import { DecoupledEditor as DecoupledEditorBase } from '@ckeditor/ckeditor5-edit
 | 
				
			|||||||
import '../theme/theme.css';
 | 
					import '../theme/theme.css';
 | 
				
			||||||
import { COMMON_PLUGINS, COMMON_SETTINGS } from './config';
 | 
					import { COMMON_PLUGINS, COMMON_SETTINGS } from './config';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//@ts-ignore
 | 
				
			||||||
export default class DecoupledEditor extends DecoupledEditorBase {
 | 
					export default class DecoupledEditor extends DecoupledEditorBase {
 | 
				
			||||||
	public static override builtinPlugins = [
 | 
						public static override builtinPlugins = [
 | 
				
			||||||
		...COMMON_PLUGINS,
 | 
							...COMMON_PLUGINS,
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										15
									
								
								packages/ckeditor5-build-trilium/sync_version.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								packages/ckeditor5-build-trilium/sync_version.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					const fs = require("fs");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const sourcePackageJson = JSON.parse(fs.readFileSync("../ckeditor5-build-decoupled-document/package.json"));
 | 
				
			||||||
 | 
					const destPackageJson = JSON.parse(fs.readFileSync("./package.json"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function updateDependencies(sourceDeps, destDeps) {
 | 
				
			||||||
 | 
						for (const [ name, version ] of Object.entries(sourceDeps)) {
 | 
				
			||||||
 | 
							destDeps[name] = version;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					updateDependencies(sourcePackageJson.dependencies, destPackageJson.dependencies);
 | 
				
			||||||
 | 
					updateDependencies(sourcePackageJson.devDependencies, destPackageJson.devDependencies);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					fs.writeFileSync("./package.json", JSON.stringify(destPackageJson, null, 2));
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user