Esempio n. 1
0
        public override bool delete(Element element, RmlElementEditor editor, RmlWysiwygComponent component)
        {
            String src = element.GetAttributeString("src");

            if (String.IsNullOrEmpty(src))
            {
                component.deleteElement(element);
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
        public override bool delete(Element element, RmlElementEditor editor, RmlWysiwygComponent component)
        {
            String text = element.InnerRml;

            if (String.IsNullOrEmpty(text))
            {
                component.deleteElement(element);
                return(true);
            }
            return(false);
        }