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

同上

parent be809a8b
......@@ -24,5 +24,7 @@
@property (nonatomic, weak) id<LMNoteViewControllerDelegate> delegatedata;
@property (nonatomic, strong) NSString *htmlStr;
@end
......@@ -119,14 +119,20 @@
[containerView addSubview:button];
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 {
NSLog(@"outvc====outvc");
[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];
//
......@@ -265,7 +271,7 @@
if (content.length == 0) {
[self.imgIndexArr addObject:@"0"];
}else{
NSString *index = [NSString stringWithFormat:@"%ld",(content.length + 1)];
NSString *index = [NSString stringWithFormat:@"%ld",(content.length + 1 + self.imgIndexArr.count)];
[self.imgIndexArr addObject:index];
}
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