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 9070183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:37:21+00:00 2026-06-16T17:37:21+00:00

I have created a Raphael rect like below: var rect1 = paper.rect(100,100,100,100) Now, I

  • 0

I have created a Raphael rect like below:
var rect1 = paper.rect(100,100,100,100)

Now, I want that as I click on the rect a cursor appears and user is allowed to type/key in some text

I am very very new to JS and Raphael.

  • 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-16T17:37:22+00:00Added an answer on June 16, 2026 at 5:37 pm

    That’s not a natural use of Raphael. Think of it primarily as a drawing library. If you look through the SVG specifications or any of the demos on the RaphaelJS page, you’ll get the idea.

    But Raphael integrates naturally with native Javascript or jQuery. I would place a borderless textarea on top of your rectangle and activate (and focus) it when the user clicks on the space, like so:

    var paper = Raphael("canvas", 300, 300),
        rect1 = paper.rect(100,100,100,100).attr({fill: "#FFF"});
    
    rect1.click(function(e) {
       $('#text').show(); 
       $('#text').focus(); 
    });
    ​
    

    http://jsfiddle.net/NtKKZ/

    (Note that you need to fill the rectangle with white in order for the click event to fire.)

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

Sidebar

Related Questions

I have created Raphael content here .. http://jsfiddle.net/ryWH3/76/ Now I need to move the
Based on Raphael demo: http://raphaeljs.com/australia.html I have created objects that changes their colour. But
I have a pie chart created with raphael. I have a form checkbox that
I have this two var abjects I created with raphael.js, and I am trying
I have created some JQuery that will expand a div 'popup' on hover and
I have created an android application that calls (using kSOAP library) a SOAP based
I have created a function that shows/hides different messages according to a combination of
I have created two imageViews promatically as shown below: public void createImageViews(Integer count){ ImageView[]
I have created a dialog and got a problem that only part of the
I have a JS object that Raphael uses to generate a clickable SVG map.

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.