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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:23:50+00:00 2026-05-23T05:23:50+00:00

I’m looking for a straight forward description of how to use a canvas element

  • 0

I’m looking for a straight forward description of how to use a canvas element sort of like a text area.

I have seen projects such as Ace. Just wondering how to go about writing to the area as if it where a textarea. Just plain text, nothing fancy.

Thanks in advance.

  • 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-05-23T05:23:51+00:00Added an answer on May 23, 2026 at 5:23 am

    Ace used to be Mozilla Skywriter, which used to be Mozilla Bespin.

    The code for Bespin is actually pretty simple to understand if you are willing to dig through it and make your own based on it, but it is sort of a fool’s errand. The Canvas spec actually advises specifically against this:

    Authors should avoid implementing text
    editing controls using the canvas
    element. Doing so has a large number
    of disadvantages:

    Mouse placement of the caret has to be
    reimplemented.

    Keyboard movement of the caret has to
    be reimplemented (possibly across
    lines, for multiline text input).

    Scrolling of the text field has to be
    implemented (horizontally for long
    lines, vertically for multiline
    input).

    Native features such as copy-and-paste
    have to be reimplemented.

    Native features such as spell-checking
    have to be reimplemented.

    Native features such as drag-and-drop
    have to be reimplemented.

    Native features such as page-wide text
    search have to be reimplemented.

    Native features specific to the user,
    for example custom text services, have
    to be reimplemented. This is close to
    impossible since each user might have
    different services installed, and
    there is an unbounded set of possible
    such services.

    Bidirectional text editing has to be
    reimplemented.

    For multiline text editing, line
    wrapping has to be implemented for all
    relevant languages.

    Text selection has to be
    reimplemented.

    Dragging of bidirectional text
    selections has to be reimplemented.

    Platform-native keyboard shortcuts
    have to be reimplemented.

    Platform-native input method editors
    (IMEs) have to be reimplemented.

    Undo and redo functionality has to be
    reimplemented.

    Accessibility features such as
    magnification following the caret or
    selection have to be reimplemented.
    This is a huge amount of work, and
    authors are most strongly encouraged
    to avoid doing any of it by instead
    using the input element, the textarea
    element, or the contenteditable
    attribute.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a jquery bug and I've been looking for hours now, I can't
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a reasonable size flat file database of text documents mostly saved in
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have two tables with like below codes: Table: Accounts id | username |
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I would like to count the length of a string with PHP. The string
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.