I am currently working on developing a unique web editor concept. This involves creating a page with a draggable toolbar containing divs with background images representing HTML elements, along with a drop zone (a large div). Users are able to generate HTML elements on the page by dragging a div from the toolbar into the drop zone.
Once a div is dropped into the drop zone, the markup for the element represented by its background image is generated, and a distinct ID is assigned. Subsequently, these elements are transferred to a web service to be implemented on the page.
The main issue I am encountering at the moment is the inability to modify the newly created elements. Despite being able to assign colors during the dropping process, they cannot be changed afterwards. Additionally, I have noticed that the IDs of these elements match those of the toolbar divs rather than the unique IDs originally generated for them. Any assistance in modifying element colors and adding individual IDs would be greatly appreciated.