Context Menu

  •  05-14-2010, 5:53 PM

    Context Menu

    Hi,
     
    We are marking up the HTML with custom tags. We've set these so they can not be editable so the user doesn't do anything unexpected. We use the ContentEditable="false" attribute in the tag which allows for that. We've configured the context menu to pop the properties window for modifying the tag. All is good.
     
    Our issue is being able to delete the tag in the case the user wants to remove it. You'd think you could click the tag and press delete but that can't be performed now that ContentEditable is false. What we'd like to do is put a Delete on the context menu that fires a simple removal of that tag.
     
    Is is possible to add to the context menu our custom Delete item but only show it when our tag is clicked and then be able to fire an API call to remove the tag? If so, could someone point us in the general direction to accomplish that?
     
    Our other option would be to place a remove button on the property popup, not preferred but I guess that would work.
     
    Thoughts?
     
     
    Thanks,
    -Charles
View Complete Thread