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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:29:44+00:00 2026-05-29T18:29:44+00:00

Code like: …text <span contenteditable=true onChange=someFunction()>blah blah</span> text… The onChange event doesn’t work. (at

  • 0

Code like:

...text <span contenteditable="true" onChange="someFunction()">blah blah</span> text...

The onChange event doesn’t work. (at least in FireFox)
I don’t want to use textarea/input tags, because there must be available to change only particular words in text, and must be displayed inline (not block).

Is there any way how to do that ?

  • 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-29T18:29:46+00:00Added an answer on May 29, 2026 at 6:29 pm

    The function that I wrote:
    One call of this function fixes all ContentEditable elements in the page.

    function fix_onChange_editable_elements()
    {
      var tags = document.querySelectorAll('[contenteditable=true][onChange]');//(requires FF 3.1+, Safari 3.1+, IE8+)
      for (var i=tags.length-1; i>=0; i--) if (typeof(tags[i].onblur)!='function')
      {
        tags[i].onfocus = function()
        {
          this.data_orig=this.innerHTML;
        };
        tags[i].onblur = function()
        {
          if (this.innerHTML != this.data_orig)
            this.onchange();
          delete this.data_orig;
        };
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like to format my code like this: void someFunction() { normalLine(); reallyLongLineThatNeedsToBeWrapped( OnlyIndentOneSpaceHere
hi i have some code like this and it dont work, don`t show error
I have a code like this: $(function() { if ($(div#ProductDetail_ProductDetails_div2 table tbody tr).text().trim() ==
I have code like the following: <s:VGroup gap=10 id=group height=100%> <s:Label text=This is page
I have code like <?php header('Content-Type: text/plain; charset=UTF-8'); echo 'Hello Loréane !'; the e
I have a javascript code like this <script type=text/javascript> window.onload=myFunction; </script> Is there any
Code like this often happens: l = [] while foo: # baz l.append(bar) #
The code like this: $(.hide).click(function(){ $(.online-contact).animate({width: 'toggle',height: '100%'}, fast); $(this).hide(); $(.show-class).show(); }) I want
Suppose code like this: class Base: def start(self): pass def stop(self) pass class A(Base):
I have some code like this in a winforms app I was writing to

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.