ScriptUser Posted October 6, 2014 Share Posted October 6, 2014 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 More sharing options...
niche Posted October 6, 2014 Share Posted October 6, 2014 How does the relevant part of your code read? Link to comment Share on other sites More sharing options...
Ingolme Posted October 6, 2014 Share Posted October 6, 2014 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 More sharing options...
ScriptUser Posted October 8, 2014 Author Share Posted October 8, 2014 Hi all and thank you for your reply. Thank you Foxy for your suggestion, I will do a research into the contentEditable property. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now