Hi all,
i have a little problem with injecting the editor somewhere else
in the dom
example code:
<div class="source">
<div class="editor-container">
<textarea class="editor"></textarea>
</div>
</div>
<div class="target"></div>
<div class="button">inject bottom to top</div>
<script type="text/javascript">
window.addEvent('domready', function () {
new MooEditable(document.getElement('textarea'));
document.getElement('div.button').addEvent('mouseup', function () {
document.getElement('div.editor-container').inject(document.getElement('div.target'));
});
});
</script>
the error message is:
uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE)
nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame :: http://dev/html/js/MooEditable.js
:: anonymous :: line 400" data: no]
someone of you got an idea how to solve it? perhaps a re-render
or sth like this ?
best regards
georg