I am trying to create a Polymer element for contenteditable.
I create a div contenteditable, place it this.innerHTMLthere, and it becomes editable. Everything is fine with polyfills, for example. in Firefox. But it does not work in Chrome 35 with the native Shadow DOM.
Well, it is still editable, but neither document.execCommand, nor window.getSelectionwork.
document.execCommand doing nothing.window.getSelection().getRangeAt(0).toString() defined but empty.- No error is displayed.
Therefore, I can not stylize the selection.
Does anyone know if you can create your own editable element or not? What am I doing wrong? Maybe there is another way to work with content resources in the current / future network?
source
share