Example #1
0
        /// <summary>
        /// remove and return text after cursor
        /// </summary>
        /// <returns></returns>
        public string SplitText()
        {
            if (!(firstCursor.selectedTag is TextTag))
            {
                return("");
            }
            if (!(CursorMode))
            {
                return("");
            }

            TextTag currentTag = (TextTag)(firstCursor.selectedTag);

            string beforeSplit = currentTag.Html(true, true, false, false);
            string afterSplit  = currentTag.Html(false, false, true, false);

            currentTag.text = beforeSplit;
            return(afterSplit);
        }