Changes to make it generic

Instead of a paragraph, now the element to be made editable can be
provided as an attribute