Skip to content

Commit

Permalink
show placeholder text in mc-description
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus committed Jul 24, 2018
1 parent ec00e5f commit 57a2c33
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ const WysiwygComponent = Viewmaster.extend({
return
}

const placeholder = textarea.placeholder || ''

window.STUDIP.wysiwyg.replace(textarea)
const element = window.CKEDITOR.dom.element.get(textarea)
if (element) {
this.editor = element.getEditor()
this.editor.config.placeholder = placeholder
this.editor.on('change', this.onEditorChange, this)
this.editor.once('focus', this.onEditorFocus, this)
}
Expand Down

0 comments on commit 57a2c33

Please sign in to comment.