Пример #1
0
 public static bool IsDefaultTextShowing(IHTMLElement element)
 {
     while (element != null)
     {
         if (IsEditField(element))
         {
             InlineEditField editField = new InlineEditField(element, null, null, null, null);
             return(editField.IsDefaultText);
         }
         element = element.parentElement;
     }
     return(false);
 }
Пример #2
0
        private bool IsValidEmoticonInsertionPoint()
        {
            MarkupRange selection = _currentSelection.Clone();

            // Check to make sure the target is not in an edit field
            if (InlineEditField.IsWithinEditField(selection.ParentElement()))
            {
                return(false);
            }

            // Check to make sure the target is in the body of the post
            selection.MoveToElement(_postBodyElement, false);
            if (!selection.InRange(_currentSelection))
            {
                return(false);
            }

            return(true);
        }
 public static bool IsDefaultTextShowing(IHTMLElement element)
 {
     while (element != null)
     {
         if (IsEditField(element))
         {
             InlineEditField editField = new InlineEditField(element, null, null, null, null);
             return editField.IsDefaultText;
         }
         element = element.parentElement;
     }
     return false;
 }