Error destroying text editor

Đang mở
#8,756 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Start by tracing the destroy call in TextEditorEmbed.ts at line 50 and its caller in Description.vue around lines 209 and 246. Reproduce the error by opening and closing a card while watching the browser console, then inspect how the editor instance is created and passed to destroy. Done means the exception no longer appears and text editor changes save correctly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

0. Needs triage bug needs info
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
Sometimes the text editor is not loading or the content is not saved properly (exception in console, edit is lost after browser reload)

To Reproduce
Steps to reproduce the behavior:

  1. Check Browser Console while Opening a Card
  2. When closing the card, the stacktrace is thrown on console

Expected behavior
No stack trace and my edit in text-editor is saved properly.

Screenshots
If applicable, add screenshots to help explain your problem.

Client details:

  • OS: macOS Golden Gate
  • Browser Firefox
  • Version 160.0
  • Device: macbook pro (2021)
Server details

Operating system: Debian Trixie - Linux 7.0.14-25-pve x86_64

Web server: nginx

Database: mariadb 10.11.19

PHP version: 8.5.12

Nextcloud version: 35.0.2

Where did you install Nextcloud from: Docker

Signing status:

No errors have been found.

List of activated apps:

Enabled:
  - activity: 8.0.0
  - admin_audit: 2.0.0
  - app_api: 35.0.0
  - appstore: 2.0.0
  - assistant: 4.1.0
  - bruteforcesettings: 8.0.0
  - calendar: 6.6.5
  - circles: 35.0.0
  - cloud_federation_api: 2.0.0
  - comments: 2.0.0
  - contacts: 8.9.5
  - contactsinteraction: 2.0.0
  - dashboard: 8.0.0
  - dav: 2.0.0
  - deck: 1.19.2
  - drawio: 4.3.11
  - external: 10.0.0
  - federatedfilesharing: 2.0.0
  - federation: 2.0.0
  - files: 3.0.0
  - files_downloadlimit: 5.3.0
  - files_lock: 35.0.1
  - files_pdfviewer: 8.0.0
  - files_reminders: 2.0.0
  - files_sharing: 2.0.0
  - files_trashbin: 2.0.0
  - files_versions: 2.0.0
  - firstrunwizard: 8.0.0
  - forms: 5.4.1
  - integration_openai: 5.0.0
  - logreader: 8.0.0
  - lookup_server_connector: 2.0.0
  - mail: 5.13.1
  - nextcloud_announcements: 7.0.0
  - notifications: 8.0.1
  - oauth2: 2.0.0
  - office: 1.1.0
  - password_policy: 7.0.0
  - photos: 8.0.0
  - privacy: 7.0.0
  - profile: 2.0.0
  - provisioning_api: 2.0.0
  - recommendations: 8.0.0
  - related_resources: 6.0.0
  - richdocuments: 12.0.1
  - serverinfo: 7.0.0
  - settings: 2.0.0
  - sharebymail: 2.0.0
  - sharing: 1.0.4
  - side_menu: 6.2.0
  - sociallogin: 6.6.0
  - spreed: 25.0.7
  - support: 7.0.0
  - survey_client: 7.0.0
  - systemtags: 2.0.0
  - tasks: 0.18.1
  - text: 9.0.1
  - theming: 3.0.0
  - twofactor_backupcodes: 2.0.0
  - twofactor_totp: 17.1.0
  - updatenotification: 2.0.0
  - user_status: 2.0.0
  - viewer: 8.0.0
  - weather_status: 2.0.0
  - webhook_listeners: 2.0.0
  - whiteboard: 2.1.2
  - workflowengine: 3.0.0
Disabled:
  - encryption: 3.0.1
  - files_external: 2.0.0
  - files_rightclick: 0.15.1 (installed 0.15.1)
  - notify_push: 1.4.2 (installed 1.4.2)
  - oidc: 2.6.1 (installed 2.6.1)
  - snappymail: 2.38.2 (installed 2.38.2)
  - suspicious_login: 13.0.0
  - twofactor_nextcloud_notification: 9.0.0
  - user_ldap: 2.0.0

Nextcloud configuration:

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "maintenance_window_start": 4,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "next.swokiz.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "35.0.2.2",
        "overwrite.cli.url": "http:\/\/next.swokiz.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "8465",
        "maintenance": false,
        "loglevel": 2,
        "theme": "",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "social_login_auto_redirect": true
    }
}

Are you using an external user-backend, if yes which one: Keycloak OAUTH

Logs
Nextcloud log (data/nextcloud.log)
<will be added later>
Browser log
Error destroying text editor: TypeError: can't access private field or method: object is not the right class
    destroy TextEditorEmbed.ts:50
    destroyEditor Description.vue:246
    beforeUnmount Description.vue:209
    Te runtime-core.esm-bundler.js:3232
    r runtime-core.esm-bundler.js:199
    o runtime-core.esm-bundler.js:206
    __weh runtime-core.esm-bundler.js:3212
    z shared.esm-bundler.js:85
    U runtime-core.esm-bundler.js:6984
    $ runtime-core.esm-bundler.js:6878
    V runtime-core.esm-bundler.js:7006
Ngôn ngữ chính
JavaScript
Star
1.4k
Fork
380
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
72

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/deck

Tất cả issue của nextcloud/deck

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.