mirror of
https://github.com/MacDownApp/macdown.git
synced 2026-05-17 12:40:37 +00:00
c0b5c06336
Fix #244
26 lines
431 B
Objective-C
26 lines
431 B
Objective-C
//
|
|
// DOMNode+Text.h
|
|
// MacDown
|
|
//
|
|
// Created by Tzu-ping Chung on 18/1.
|
|
// Copyright (c) 2015 Tzu-ping Chung . All rights reserved.
|
|
//
|
|
|
|
#import <WebKit/WebKit.h>
|
|
|
|
struct DOMNodeTextCount
|
|
{
|
|
NSUInteger words;
|
|
NSUInteger characters;
|
|
NSUInteger characterWithoutSpaces;
|
|
};
|
|
|
|
typedef struct DOMNodeTextCount DOMNodeTextCount;
|
|
|
|
|
|
@interface DOMNode (Text)
|
|
|
|
@property (readonly, nonatomic) DOMNodeTextCount textCount;
|
|
|
|
@end
|