Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

enableLinks option has disappeared #108

Open
@SteveMcArthur

Description

@SteveMcArthur

The enableLinks option has disappeared from version 2.1.0. So the example (using v1.2.0) with link enabled is now invalid. I was able to add it back to the code (around line 971) using:

  // Add text
  if (this._options.wrapNodeText) {
    var wrapper = this._template.text.clone();
    node.$el.append(wrapper);
    wrapper.append(node.text);
  }else if(this._options.enableLinks){
    node.$el.append($('<a href="#" style="color:inherit;"></a>')
      .attr('href', node.href)
      .append(node.text));
  } else {
    node.$el.append(node.text);
  }

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