From 1d1346559b9ec03b7f13562da3138135f6509353 Mon Sep 17 00:00:00 2001 From: "Cool Bytes (MacOS)" <57877111+CoolBytesIN@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:03:48 +0530 Subject: [PATCH 1/2] Added known issues to README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fb89c41..fa841aa 100644 --- a/README.md +++ b/README.md @@ -97,4 +97,10 @@ Example: ], "version": "2.29.1" } -``` \ No newline at end of file +``` + +## Known Issues + +* After merging similar code blocks, pressing any arrow key results in an error. (Probably caused by the way Editor.js handles merges) +* There is no syntax highlighting for code. This is done to avoid any impact to the actual code data (Adding syntax highlighting can impact inner HTML, which will directly affect saved data). +* Terminal buttons are non-functional. These are intentionally left to avoid making the package too complex. These can be anyway be added at the render time. \ No newline at end of file From 0bc69496f9e766685f8de44aab17e5e09e5a9eb6 Mon Sep 17 00:00:00 2001 From: "Cool Bytes (MacOS)" <57877111+CoolBytesIN@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:00:01 +0530 Subject: [PATCH 2/2] Fixed styling issues --- package.json | 2 +- src/index.css | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 395d8f4..be4083c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@coolbytes/editorjs-code", "description": "Code block tool for Editor.js", - "version": "1.0.0", + "version": "1.0.1", "private": false, "homepage": "https://apps.coolbytes.in/editorjs-code", "license": "MIT", diff --git a/src/index.css b/src/index.css index 81cd5fa..a4caced 100644 --- a/src/index.css +++ b/src/index.css @@ -90,11 +90,12 @@ bottom: 0; right: 15px; height: 16px; + display: flex; } .ce-terminal-language { - vertical-align: bottom; - display: inline; + /* vertical-align: bottom; + display: inline; */ margin-left: 5px; } @@ -105,7 +106,7 @@ .ce-copy-tooltip { font-size: 12px; - width: 50px; + /* width: 50px; */ margin-left: -25px; /* Center the tooltip */ background-color: #0c0c0c; color: #ececec;