Jump to content

Type Directly into a Table Cell


ScriptUser
 Share

Recommended Posts

Hi all, I am trying to create a page that simulates a WYSIWG using CSS, Javascript, and HTML5. Essentially the user of this particular page can drag and drop HTML elements onto the page then modify them. I was able to drag and drop a table onto the page by dragging a table icon (which I've created) onto the page. However, I am not able to type directly into the table cell using javascript even after adding an eventlisten. Please suggest a solution if you have done something similar to what I am attempting. Thanks in advance.

Link to comment
Share on other sites

Every element has a contentEditable property which you can manipulate with Javascript.

 

I haven't worked with it a lot, myself, but here's a page discussing it: http://stackoverflow.com/questions/20830353/how-to-make-html-content-editable-with-javascript-jquery

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...