Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8348819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:48:15+00:00 2026-06-09T07:48:15+00:00

If i select a piece of range in my codemirror editor with say shift+up/down/left/right

  • 0

If i select a piece of range in my codemirror editor with say shift+up/down/left/right , is there a way to get the co-ordinates of the piece of text selected ? Like the line num for start/end, the char positions relative to lines and also to document ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:48:17+00:00Added an answer on June 9, 2026 at 7:48 am

    codemirror.getCursor(true) will get you the start of the selection.
    codemirror.getCursor(false) will get you the end of the selection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following piece of SQL: select DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)) which comes through as
This is a piece of UI code <select id=order_unit_line_rate_806782_is_addenda_enabled class=selects_for_487886 onchange=select_addendum(806782, this);dateShowMemory(this.options[this.selectedIndex].value, '806782'); uniqueattr=Dynamic
Why isn't the following piece of code working in IE8? <select> <option onclick=javascript: alert('test');>5</option>
SELECT * From `users` AS `User` LEFT JOIN `selections` AS `Selections` ON (`Selections`.`user_id` =
Select only showing first character of option text in IE 9 Using click on
for Internet Explorer, I have the current code to select a range in an
I have an object of which I am looking to get a piece of
I have this piece of HTML <select multiple= name=colonia_id[] id=colonia_id[] onchange= size=10></select> I need
When I want just one piece of code printed, I can select it, and
Let's suppose i have the following piece of code: $qb = $this->em->createQueryBuilder(); $qb->add('select', 'a')

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.