Ejemplo n.º 1
0
 private void Select()
 {
     if (_contentState == SmartContentState.Preserve)
     {
         if (HTMLElement != null && HTMLElement.className == HtmlPreserver.PRESERVE_CLASS)
         {
             PreserveContentSelection.SelectElement(EditorContext, HTMLElement, _contentState);
         }
     }
     else
     {
         SmartContentSelection.SelectIfSmartContentElement(EditorContext, HTMLElement, _contentState);
     }
 }
Ejemplo n.º 2
0
        public static PreserveContentSelection SelectElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState)
        {
            PreserveContentSelection selection = (PreserveContentSelection)SelectElementCore(editorComponentContext, e, new PreserveContentSelection(editorComponentContext, e, contentState));

            return(selection);
        }