Error destroying text editor

Abierto
#8,756 1 comentario 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
JavaScript
Estrellas
1.4k
Forks
380
Merge medio
1 d 17 h
PR fusionados (30 d)
72

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/deck

Todos los issues de nextcloud/deck

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.