eric
eric
__block bool receiveEditorDidChangeEvents = _receiveEditorDidChangeEvents; __weak typeof(self) weakSelf = self; JSContext *ctx = [webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"]; ctx[@"contentUpdateCallback"] = ^(JSValue *msg) { __weak typeof(weakSelf) StrongSelf = weakSelf; if (receiveEditorDidChangeEvents) { [StrongSelf editorDidChangeWithText:[StrongSelf...
1. 在ZSSRichTextEditor.m 文件添加接口 /** font 1-7 */ - (void)setFontSize:(int)font { NSString *normal = [NSString stringWithFormat:@"zss_editor.setFontSize(\"%d\");",font]; [self.editorView stringByEvaluatingJavaScriptFromString:normal]; } 2. ZSSRichTextEditor.js 文件中添加接口 zss_editor.setFontSize = function(aFontSize) { document.execCommand("styleWithCSS", null, true); document.execCommand('fontSize', false,...
iOS 11
iOS 11 左滑图片不显示,麻烦看一下,系统提供的api 图片没有颜色。