hg-editor.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="editor-box">
  2. <view class="editor-box-header" wx:if="{{showTabBar}}">
  3. <view class="operate-box" data-uploadImageURL="{{uploadImageURL}}" bind:tap="_addImage">
  4. <text class="iconfont icon-image"></text>
  5. </view>
  6. <view class="operate-box" bind:tap="_addItalic">
  7. <text class="iconfont icon-italic"></text>
  8. </view>
  9. <view class="operate-box" bind:tap="_addBold">
  10. <text class="iconfont icon-bold"></text>
  11. </view>
  12. <view class="operate-box" data-header="h1" bind:tap="_addHeader">
  13. <text class="iconfont icon-h1"></text>
  14. </view>
  15. <view class="operate-box" data-header="h2" bind:tap="_addHeader">
  16. <text class="iconfont icon-h2"></text>
  17. </view>
  18. <view class="operate-box" data-header="h3" bind:tap="_addHeader">
  19. <text class="iconfont icon-h3"></text>
  20. </view>
  21. <view class="operate-box" data-align="left" bind:tap="_addAlign">
  22. <text class="iconfont icon-alignLeft"></text>
  23. </view>
  24. <view class="operate-box" data-align="right" bind:tap="_addAlign">
  25. <text class="iconfont icon-alignRight"></text>
  26. </view>
  27. <view class="operate-box" data-list="ordered" bind:tap="_addList">
  28. <text class="iconfont icon-orderedList"></text>
  29. </view>
  30. <view class="operate-box" data-list="bullet" bind:tap="_addList">
  31. <text class="iconfont icon-unorderedList"></text>
  32. </view>
  33. <view class="operate-box" bind:tap="_undo">
  34. <text class="iconfont icon-undo"></text>
  35. </view>
  36. </view>
  37. <view class="editor-box-content">
  38. <editor id="editor" name="{{name}}" placeholder="{{placeholder}}" bind:ready="_onEditorReady" bind:input="_onInputting" show-img-resize="{{true}}"></editor>
  39. </view>
  40. </view>