Skip to content

Commit

Permalink
Add placeholder property to polymer quill
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckh committed Dec 22, 2016
1 parent 27dba20 commit 6c7bb3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion polymer-quill.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<h2>Full Toolbar, Show Results, Custom height (150px), Save as Deltas, Save every 1 second</h2>
<polymer-quill
content='{"ops":[{"insert":"Hello World! - Store as Delta"},{"attributes":{"header":2},"insert":"\n"}]}'
class='full'
class="full"
store-as="delta"
save-interval="1000"
toolbar-type="full"
Expand Down Expand Up @@ -313,6 +313,11 @@ <h2>Standard Toolbar, Hide Results, Default height (100px), Save as HTML, Save e
value: false,
notify: true,
},
placeholder: {
type: String,
value: 'Compose an epic...',
notify: true,
}
},

ready: function() {
Expand All @@ -327,7 +332,9 @@ <h2>Standard Toolbar, Hide Results, Default height (100px), Save as HTML, Save e
theme: 'snow',
strict: false,
readOnly: this.readyOnly,
placeholder: 'Compose an epic...'
});
// placeholder: this.placeholder,

// Set if editor is dsiabled
if (this.enable === 'false') {
Expand Down

0 comments on commit 6c7bb3a

Please sign in to comment.