Error: presencelist-missing-container

Created on 25 June 2024, 3 months ago
Updated 14 August 2024, about 2 months ago

Problem/Motivation

Not sure if this is related to using text format within Paragraphs, but I get the error 'presencelist-missing-container'

CKEditorError: presencelist-missing-container
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-presencelist-missing-container
    at Rs._createView (real-time-collaboration.js:5:574164)
    at new Rs (real-time-collaboration.js:5:573707)
    at ckeditor5-dll.js?v=40.2.0:5:109690
    at Array.map (<anonymous>)
    at l.init (ckeditor5-dll.js?v=40.2.0:5:109638)
    at D.initPlugins (ckeditor5-dll.js?v=40.2.0:5:115287)
    at editor-classic.js?v=40.2.0:4:9630
    at new Promise (<anonymous>)
    at D.create (editor-classic.js?v=40.2.0:4:9587)
    at Object.attach [as coreAttach] (ckeditor5.js?sfmxyy:374:21)

Similarly it could be expecting that real time collaboration is enabled, but actually I have only track changes and commenting enabled. So perhaps it should not let me check that box

Steps to reproduce

Enable collaboration sub-module
Enable presense list

Proposed resolution

Possibly do not allow presense list unless realtime collaboration is enabled?

Remaining tasks

Understand the cause better

User interface changes

TBD

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.2

Component

Plugin: Collaboration

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @scott_euser
  • First commit to issue fork.
  • Status changed to Needs review 3 months ago
  • 🇵🇱Poland dolszewski

    Hello @scott_euser
    Thank you for reporting the issue. There is a problem with the missing container while reloading the form with Ajax.
    I've added a patch, please check it.

  • Status changed to Needs work 3 months ago
  • 🇬🇧United Kingdom scott_euser

    Unfortunately not, I still get this:

    CKEditorError: presencelist-missing-container
    Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-presencelist-missing-container
        at gd._createView (real-time-collaboration.js:5:503410)
        at new gd (real-time-collaboration.js:5:503041)
        at ckeditor5-dll.js?v=41.3.1:5:124988
        at Array.map (<anonymous>)
        at l.init (ckeditor5-dll.js?v=41.3.1:5:124936)
        at V.initPlugins (ckeditor5-dll.js?v=41.3.1:5:133962)
        at editor-classic.js?v=41.3.1:4:10883
        at new Promise (<anonymous>)
        at V.create (editor-classic.js?v=41.3.1:4:10840)
        at Object.attach [as coreAttach] (ckeditor5.js?sg04zn:374:21)

    I see it occur each time I attempt to switch between text formats as well within the Paragraph that has CKE5 in it.

  • 🇬🇧United Kingdom scott_euser

    I did check out the branch and confirmed your change is applied at web/modules/contrib/ckeditor5_premium_features/modules/ckeditor5_premium_features_realtime_collaboration/js/ckeditor5_plugins/realtimeAdapter/src/realtimeAdapter.js, cleared cache, and refreshed the page to reload the JS

  • Status changed to Needs review 3 months ago
  • 🇵🇱Poland dolszewski

    @scott_euser Can you check again? I forgot to update the library version maybe that was the problem.
    If an error still occurs, the problem's source is in different places. Do you use a custom admin theme or anything that changes node form?

  • Status changed to RTBC 2 months ago
  • 🇬🇧United Kingdom scott_euser

    Looks like it does yes, thanks!

  • 🇵🇱Poland salmonek

    Fix released in 1.3.0

  • Status changed to Fixed about 2 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024