Skip to content

Commit

Permalink
Reference element content on element object.
Browse files Browse the repository at this point in the history
This closes jaredreich#97.
  • Loading branch information
jaredreich committed Mar 15, 2018
1 parent 6e4789b commit 1e7a314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/pell.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ var init = function init(settings) {
actionbar.className = classes.actionbar;
appendChild(element, actionbar);

var content = createElement('div');
var content = element.content = createElement('div');
content.contentEditable = true;
content.className = classes.content;
content.oninput = function (_ref) {
Expand Down
2 changes: 1 addition & 1 deletion dist/pell.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pell.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const init = settings => {
actionbar.className = classes.actionbar
appendChild(element, actionbar)

const content = createElement('div')
const content = element.content = createElement('div')
content.contentEditable = true
content.className = classes.content
content.oninput = ({ target: { firstChild } }) => {
Expand Down

0 comments on commit 1e7a314

Please sign in to comment.