Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

window.getSelection() Not working



  • l try to get the selection text from contenteditable div whit window.getSelection() but i have this instead.

    Selection
    anchorNode: <ons-icon class=“ons-icon zmdi zmdi-format-bold”>
    anchorOffset: 0
    baseNode: <ons-icon class=“ons-icon zmdi zmdi-format-bold”>
    baseOffset: 0
    extentNode: <ons-icon class=“ons-icon zmdi zmdi-format-bold”>
    extentOffset: 0
    focusNode: <ons-icon class=“ons-icon zmdi zmdi-format-bold”>
    focusOffset: 0
    isCollapsed: true
    rangeCount: 1
    type: "Caret"
    Selection Prototype