Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

ensureRootElement() deletes id-attributes #46

@sdf1981cgn

Description

@sdf1981cgn

When creating an html-element with an id-attribute in an empty editor-field, the function MooEditable::ensureRootElement() deletes this attribute.
Change MooEditable.js line 642 from
html += new Element('div').adopt($(childNode).clone()).get('html');
to
html += new Element('div').adopt($(childNode).clone(true, true)).get('html');
to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions