MMRichTextConfig.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // MMRichTextConfig.h
  3. // RichTextEditDemo
  4. //
  5. // Created by aron on 2017/7/20.
  6. // Copyright © 2017年 aron. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #define MMEditConfig [MMRichTextConfig sharedInstance]
  11. @interface MMRichTextConfig : NSObject
  12. + (instancetype)sharedInstance;
  13. @property (nonatomic, assign, readonly) CGFloat editAreaLeftPadding;
  14. @property (nonatomic, assign, readonly) CGFloat editAreaRightPadding;
  15. @property (nonatomic, assign, readonly) CGFloat editAreaTopPadding;
  16. @property (nonatomic, assign, readonly) CGFloat editAreaBottomPadding;
  17. @property (nonatomic, assign, readonly) CGFloat editAreaWidth;
  18. @property (nonatomic, assign, readonly) CGFloat imageDeltaWidth;
  19. @property (nonatomic, assign, readonly) CGFloat editTitleAreaLeftPadding;
  20. @property (nonatomic, assign, readonly) CGFloat editTitleAreaRightPadding;
  21. @property (nonatomic, assign, readonly) CGFloat editTitleAreaTopPadding;
  22. @property (nonatomic, assign, readonly) CGFloat editTitleAreaBottomPadding;
  23. @property (nonatomic, assign, readonly) NSInteger titleMaxCount;
  24. @property (nonatomic, assign, readonly) NSInteger maxImageCount;
  25. @property (nonatomic, assign, readonly) NSInteger maxTextContentCount;
  26. @property (nonatomic, assign, readonly) NSInteger minImageContentCellHeight;
  27. @property (nonatomic, strong, readonly) UIFont* defaultEditContentFont;
  28. @property (nonatomic, strong, readonly) UIFont* defaultEditTitleFont;
  29. @end