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

ensureRootElement() deletes id-attributes #46

Open
sdf1981cgn opened this issue May 31, 2011 · 0 comments
Open

ensureRootElement() deletes id-attributes #46

sdf1981cgn opened this issue May 31, 2011 · 0 comments

Comments

@sdf1981cgn
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant