コード例 #1
0
ファイル: OpConverter.cs プロジェクト: wittech/Quill.Delta
        public string GetContent()
        {
            if (_op.IsContainerBlock())
            {
                return("");
            }

            if (_op.IsMentions())
            {
                return(((InsertDataText)_op.Insert).Value);
            }

            var content = _op.IsFormula() || _op.IsText() ?
                          ((InsertDataString)_op.Insert).Value : "";

            return(EncodeContent(content));
        }
コード例 #2
0
 static bool CanBeInBlock(DeltaInsertOp op) =>
 !(op.IsJustNewline() || op.IsCustomBlock() || op.IsVideo() || op.IsContainerBlock());