Files
leanote-ios/Leanote/editor/EditorClasses/WPLegacyEditorViewController.h
2015-08-21 23:49:41 +08:00

29 lines
976 B
Objective-C
Executable File

#import <UIKit/UIKit.h>
@class WPLegacyEditorViewController;
@protocol WPLegacyEditorViewControllerDelegate <NSObject>
@optional
- (BOOL)editorShouldBeginEditing:(WPLegacyEditorViewController *)editorController;
- (void)editorTitleDidChange:(WPLegacyEditorViewController *)editorController;
- (void)editorTextDidChange:(WPLegacyEditorViewController *)editorController;
- (void)editorDidPressSettings:(WPLegacyEditorViewController *)editorController;
- (void)editorDidPressMedia:(WPLegacyEditorViewController *)editorController;
- (void)editorDidPressPreview:(WPLegacyEditorViewController *)editorController;
@end
@interface WPLegacyEditorViewController : UIViewController
@property (nonatomic, weak) id<WPLegacyEditorViewControllerDelegate> delegate;
@property (nonatomic, copy) NSString *titleText;
@property (nonatomic, copy) NSString *bodyText;
@property (nonatomic) BOOL isShowingKeyboard;
@property (nonatomic) BOOL isExternalKeyboard;
- (void)stopEditing;
@end