public static ITextHandle GetEditorHandle() { if (CreateEditorHandle != null) { return(CreateEditorHandle()); } return(TextNativeHandle.New()); }
private void OnAttachToPanel(AttachToPanelEvent e) { iTextHandle = e.destinationPanel.contextType == ContextType.Editor ? TextNativeHandle.New() : TextHandleFactory.GetRuntimeHandle(); }