This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCursorPos() { | |
var cursorPos; | |
if (window.getSelection) { | |
var selObj = window.getSelection(); | |
var selRange = selObj.getRangeAt(0); | |
cursorPos = findNode(selObj.anchorNode.parentNode.childNodes, selObj.anchorNode) + selObj.anchorOffset; | |
/* FIXME the following works wrong in Opera when the document is longer than 32767 chars */ | |
alert(cursorPos); | |
} | |
else if (document.selection) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html,body{ | |
-webkit-font-smoothing:antialiased!important; | |
font-family:Avenir,'Helvetica Neue'!important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import wepy from 'wepy' | |
export default class Child1 extends wepy.page { | |
props = { | |
childId: { | |
type: String, | |
default: null | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- parent --> | |
<template> | |
<div class="page-container"> | |
<custom-text @custom-click="customClick" /> | |
</div> | |
</template> | |
<script> | |
import wepy from '@wepy/core' |
OlderNewer