Skip to content

Commit 6c69983

Browse files
committed
Add placeholder value to titles
1 parent 164c505 commit 6c69983

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/widgets/text_editors/MultiFormatTextEditor.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,14 @@ class MultiFormatTextEditor extends Component {
209209
return null;
210210
}
211211

212-
const {onChange, placeholder, value, localize: _} = this.props;
212+
const {onChange, localize: _} = this.props;
213+
let {placeholder, value} = this.props;
214+
215+
if (value.startsWith('Click to enter') && value.endsWith('title')) {
216+
placeholder = `${value.replace('Click to enter', 'Enter')}`;
217+
value = '';
218+
}
219+
213220
const {currentTab} = this.state;
214221

215222
const richTextClassNames = classnames(

0 commit comments

Comments
 (0)