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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:42:36+00:00 2026-05-29T09:42:36+00:00

QQ: How can I update an object’s property to match the innerHtml of an

  • 0

QQ: How can I update an object’s property to match the innerHtml of an element in a view when a button is clicked?

I am working on building a content editing interface using EmberJS and the HTML5 contenteditable attribute (via the Hallo editor). This means that valueBinding doesn’t do the trick, since we’re dealing with the actual page HTML, not input/textarea value attributes. I’ve built a similar app in Backbone, which lacks dynamic bindings but allows you to set the model object as a property of the view.

What’s the best way to get this working with EmberJS? Should I set a property on the view to the entire model? Do I need to create some sort of innerHtml binding and view helper, modeled on valueBinding?

I’ve set up a fiddle with an example of what I’m trying to do (with basic jQuery handling of the contentEditable attribute, instead of hallo):

http://jsfiddle.net/W6gsW/2/

Thanks!

  • 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-29T09:42:37+00:00Added an answer on May 29, 2026 at 9:42 am

    http://jsfiddle.net/ud3323/nXCvq/

    I did change a few things with how you defined the bindings in App.docView to make things cleaner. My solution does feel a litte hackish, but it works with 1 line of code per property.

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

Sidebar

Related Questions

In LINQ to Object context ,can i update an object in memory. I mean
How can I use automapper to update the properties values of another object without
I can't figure out why this simple update command won't work: private void button1_Click(object
How can I update an object from a formset using request.POST ? Here is
How can I update an object in class A from a method in class
I'm trying to design a class which can update a reference to an object
IN hibernate JPA how can I update of a object? I have one Project
I m using generic view to update object. I m using form : class
<xsl:output method=text omit-xml-declaration=yes /> <xsl:template match=/Update/Object/Insert> Insert into <xsl:value-of select=@Table />( <xsl:for-each select=Field> <xsl:value-of
I am currently working on a strongly-typed update view in ASP.NET MVC2. In addition

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.