similar to masked input but for masking contenteditable divs with multiple styles in the mask