Skip to content

Commit

Permalink
Allow text to be copied
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoKaiLun committed Jul 30, 2018
1 parent 6f35b37 commit 0acbfc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.2.0 (2018-07-30)
- [A] 支持文本复制

### v1.1.0 (2017-11-16)
- [A] 支持 pre 标签中的代码片段包含标签
- [A] 支持 video 标签属性解析
Expand Down
2 changes: 1 addition & 1 deletion wxParser/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</template>
<template name="wxParserText">
<view class="wxParserText wxParser-inline" style="{{item.styleStr}}">
<block wx:if="{{item.node == 'text'}}">{{item.text}}</block>
<block wx:if="{{item.node == 'text'}}"><text selectable="true">{{item.text}}</text></block>
</view>
</template>
<template name="wxParser">
Expand Down

0 comments on commit 0acbfc5

Please sign in to comment.