Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

markText won't set attributes without a className #6414

Closed

Description

@marcandre
// has no effect:
cm.markText(somePt, someOtherPt, {attributes: {'data-foo': 'bar'} })
// sets class and attribute:
cm.markText(somePt, someOtherPt, {attributes: {'data-foo': 'bar'}, className: 'dummy'})

markText should set the attributes for the given range irrespective of the presence of className.

Activity

  1. marijnh commented on Sep 15, 2020

    @marijnh
    Member

    Attached patch should help.

  2. marcandre commented on Sep 15, 2020

    @marcandre
    Author

    Great, thanks 👍

  3. added a commit that references this issue on Oct 31, 2020
    14d7274
  4. added a commit that references this issue on May 1, 2024
    db719a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions