Giter VIP home page Giter VIP logo

Comments (8)

i-just avatar i-just commented on June 20, 2024 1

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.

i-just avatar i-just commented on June 20, 2024 1

@realjoshharrison, yes, it would be best to remove it then.

from ckeditor.

khalwat avatar khalwat commented on June 20, 2024 1

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.

justinholtweb avatar justinholtweb commented on June 20, 2024

+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

Screen Shot 2023-11-30 at 11 17 59 AM

from ckeditor.

realjoshharrison avatar realjoshharrison commented on June 20, 2024

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.

realjoshharrison avatar realjoshharrison commented on June 20, 2024

Hi @i-just - I have added "nystudio107/craft-code-editor": "1.0.13" to my composer.jsonand updated, which all works as expected. Can I ask whether I need to do remove it again once the proper fix ships?

from ckeditor.

khalwat avatar khalwat commented on June 20, 2024

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.

khalwat avatar khalwat commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.