Closed SummerHF closed 3 years ago
NOT WORK
- (void)setSelectedColor:(UIColor*)color tag:(int)tag { NSString *hex = [NSString stringWithFormat:@"#%06x",HexColorFromUIColor(color)]; NSString *trigger; if (tag == 1) { trigger = [NSString stringWithFormat:@"zss_editor.setTextColor(\"%@\");", hex]; } else if (tag == 2) { trigger = [NSString stringWithFormat:@"zss_editor.setBackgroundColor(\"%@\");", hex]; } [self.editorView evaluateJavaScript:trigger completionHandler:^(NSString *result, NSError *error) { }]; }
NOT WORK