首页
话题
消息
手册
我的
返回介绍

tinymce-dom-RangeUtils

发布于 2019-05-06 字数1559 浏览 1025 评论 0

Methods

name summary defined by
compareRanges() Compares two ranges and checks if they are equal. tinymce.dom.RangeUtils
getCaretRangeFromPoint() Gets the caret range for the given x/y location. tinymce.dom.RangeUtils

Methods

compareRanges

compareRanges(rng1:DOMRange, rng2:DOMRange):Boolean

Compares two ranges and checks if they are equal.

Parameters
  • rng1 (DOMRange) – First range to compare.
  • rng2 (DOMRange) – First range to compare.
Return value
  • Boolean – true/false if the ranges are equal.

getCaretRangeFromPoint

getCaretRangeFromPoint(clientX:Number, clientY:Number, doc:Document):Range

Gets the caret range for the given x/y location.

Parameters
  • clientX (Number) – X coordinate for range
  • clientY (Number) – Y coordinate for range
  • doc (Document) – Document that x/y are relative to
Return value
  • Range – caret range

Can’t find what you’re looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.

您暂时不能评论!

管理员开启了需要登录才能够评论,你可以免费注册一个本站的账号。

还没有评论!

目前还没有任何评论,快来抢沙发吧!