windy 4 years ago
parent
commit
749e1029d5
  1. 2
      src/base/single/editor/editor.textarea.js
  2. 1
      src/less/core/utils/common.less

2
src/base/single/editor/editor.textarea.js

@ -84,7 +84,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) { if (!this.watermark) {
this.watermark = BI.createWidget({ this.watermark = BI.createWidget({
type: "bi.text_button", type: "bi.text_button",
cls: "bi-water-mark cursor-default textarea-watermark bi-user-select-disable", cls: "bi-water-mark cursor-default textarea-watermark",
textAlign: "left", textAlign: "left",
whiteSpace: "normal", whiteSpace: "normal",
text: o.watermark, text: o.watermark,

1
src/less/core/utils/common.less

@ -427,6 +427,7 @@ textarea {
.bi-water-mark { .bi-water-mark {
color: @font-color-tips; color: @font-color-tips;
cursor: text; cursor: text;
.user-select-disable();
& .bi-input { & .bi-input {
color: @font-color-tips; color: @font-color-tips;
} }

Loading…
Cancel
Save