Commit c7c6e7fe authored by 刘俊宏's avatar 刘俊宏

同上

parent be809a8b
...@@ -24,5 +24,7 @@ ...@@ -24,5 +24,7 @@
@property (nonatomic, weak) id<LMNoteViewControllerDelegate> delegatedata; @property (nonatomic, weak) id<LMNoteViewControllerDelegate> delegatedata;
@property (nonatomic, strong) NSString *htmlStr;
@end @end
...@@ -120,13 +120,19 @@ ...@@ -120,13 +120,19 @@
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:containerView]; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:containerView];
NSString *content = [self getStingByData:_htmlStr];
self.textView.text = content;
[self.textView updateExclusionPaths];
}
- (void)setHtmlStr:(NSString *)htmlStr {
_htmlStr = htmlStr;
} }
- (void)outVC { - (void)outVC {
NSLog(@"outvc====outvc"); NSLog(@"outvc====outvc");
[self.navigationController popViewControllerAnimated:YES]; [self.navigationController popViewControllerAnimated:YES];
// self.textView.text = @"ugh\nCccc\nThe new kJt";
// [self.textView updateExclusionPaths];
// [self.textView insertImage:[UIImage imageNamed:@"lmn_tool_image"] atIndex:self.cursorIndex]; // [self.textView insertImage:[UIImage imageNamed:@"lmn_tool_image"] atIndex:self.cursorIndex];
// //
...@@ -265,7 +271,7 @@ ...@@ -265,7 +271,7 @@
if (content.length == 0) { if (content.length == 0) {
[self.imgIndexArr addObject:@"0"]; [self.imgIndexArr addObject:@"0"];
}else{ }else{
NSString *index = [NSString stringWithFormat:@"%ld",(content.length + 1)]; NSString *index = [NSString stringWithFormat:@"%ld",(content.length + 1 + self.imgIndexArr.count)];
[self.imgIndexArr addObject:index]; [self.imgIndexArr addObject:index];
} }
NSString *imgSrc = @"https://c.gelifood.com/"; NSString *imgSrc = @"https://c.gelifood.com/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment