You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/04/09 02:19:40 UTC
[incubator-weex] branch master updated: [iOS] fix richtext show
error on eagle
This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 67cb4e4 [iOS] fix richtext show error on eagle
new 7a46aeb Merge pull request #2290 from jianhan-he/master
67cb4e4 is described below
commit 67cb4e4ae67b4b55c704ece8fc79e4b704d766dd
Author: linghe.lh <li...@alibaba-inc.com>
AuthorDate: Tue Apr 9 10:16:58 2019 +0800
[iOS] fix richtext show error on eagle
---
ios/sdk/WeexSDK/Sources/Component/WXRichText.mm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXRichText.mm b/ios/sdk/WeexSDK/Sources/Component/WXRichText.mm
index 93bb876..aedafb3 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXRichText.mm
+++ b/ios/sdk/WeexSDK/Sources/Component/WXRichText.mm
@@ -153,6 +153,9 @@ do {\
- (void)fillAttributes:(NSDictionary *)attributes
{
id value = attributes[@"value"];
+ if ([value isKindOfClass:[NSString class]]) {
+ value = [WXUtility objectFromJSON:value];
+ }
if ([value isKindOfClass: [NSArray class]]) {
[_richNodes removeAllObjects];