Comments (8)
Hi, thanks for getting in touch!
Looks like this is fixed in the latest version of nystudio107/craft-code-editor
(see changelog: https://github.com/nystudio107/craft-code-editor/blob/develop/CHANGELOG.md#1016---20231130).
It worked as expected up to and including 1.0.13
and is fixed in 1.0.16
, but 1.0.16
is not yet available on Packagist.
You can temporarily fix this by requiring "nystudio107/craft-code-editor": "1.0.13"
or "nystudio107/craft-code-editor": "dev-develop#58e469ba2c2798150706bd11ae7fa6b854006208 as 1.0.15"
in your composer.json
and running composer update
.
(I also raised a PR to update the composer requirement for the CKEditor plugin to skip over versions 1.0.14
and 1.0.15
.)
from ckeditor.
@realjoshharrison, yes, it would be best to remove it then.
from ckeditor.
It worked as expected up to and including 1.0.13 and is fixed in 1.0.16, but 1.0.16 is not yet available on Packagist.
I didn't tag that release properly, thanks for the heads up. I've re-tagged it, we should be good to go.
from ckeditor.
+1 I am experiencing this also on a brand new install of CK Editor.
To note: this is a multisite and I am also getting an additional JS error:
linkui.js:40 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'join')
at a.value (linkui.js:40:48)
Attaching a screenshot of the editor screen
from ckeditor.
Hi Iwona, thank you for taking a look so quickly, and the explanation!
I'll wait for the update, and use your fix if I run into problems 🙂
from ckeditor.
Hi @i-just - I have added "nystudio107/craft-code-editor": "1.0.13"
to my composer.json
and updated, which all works as expected. Can I ask whether I need to do remove it again once the proper fix ships?
from ckeditor.
The fix has already shipped; apparently there's a bug downstream in the Monaco editor package which no longer exposes the global API, but I put in a fix already.
You just got unlucky if you ran into this, updating within the window that the regression went unnoticed.
The semver in the CK Editor's composer.json
is:
"nystudio107/craft-code-editor": "^1.0.8"
...which means it will get updates to the latest version automatically, so you don't need to put it in your project's composer.json
, you can just do:
composer update nystudio107/craft-code-editor
...to update to the latest version at any time.
from ckeditor.
This issue should be closed, it's already been addressed downstream in craft-code-editor
nystudio107/craft-code-editor@dea2736
from ckeditor.
Related Issues (20)
- Remove format from block styling HOT 2
- Adding Image Styles to Images HOT 2
- Some config data lost when toggling between JavaScript and JSON editors HOT 2
- CraftCMS 5[alpha] - Query selector error for nested entry type HOT 1
- Suggestion: Migration script should name the configs, not use 0-based indexing HOT 2
- Migration script missed a field named "disclaimer" on two separate sites inside a Matrix block HOT 2
- [4.0.0-beta.1] "New Entry" flow allows switching to unpermitted entry types within slideout HOT 1
- [4.0.0-beta.1] Select existing entry?
- Error after 3.7.2: cannot read properties of undefined (reading 'registerChildCommand') HOT 6
- Richtext Editor missing after Update to version 3.7.2 HOT 2
- [4.0.0-beta.4] GQL isn't working? HOT 7
- [5.x]: CKEditor fields not displayed in elements-index HOT 1
- Multiple warnings in console after updates Craft CMS 4.7.3 and CKEditor 3.7.3 HOT 2
- Anchor Links option not available HOT 1
- Live preview is not triggered when using panel features HOT 4
- Adding id attribute to text or headings
- Twig Runtime Error – Twig\Error\RuntimeError Calling unknown method: craft\ckeditor\CkeConfig::listPlugin() HOT 3
- Link option "Link to an asset" is missing when CKEditor field is in a matrix block. HOT 3
- [4.0] Unable to initialize field without Element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckeditor.