Skip to content

Commit

Permalink
feat(medium editor): selection tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
smartapant committed Jan 18, 2018
1 parent 78b4072 commit b32ea64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/forms/medium-editor/MediumEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


<p>
You enter into your favorite local bar looking <b>good</b> as hell, but you know the only heads you want to turn — spicy & stylish alpha bitches — are heavily
You enter into your favorite local bar looking <b class="default-selection">good</b> as hell, but you know the only heads you want to turn — spicy & stylish alpha bitches — are heavily
fixated on the D. The hot girl talks to you, but she only wants to be your best friend. Her nonthreatening and attentive best friend. Receiver of sexy
selfies, listener of stories. Meanwhile, you attract unwanted attention from straight men, pudgy and greasy moths to your emotionally distant flame.
</p>
Expand Down Expand Up @@ -99,6 +99,8 @@
}
})
this.composerContent && this.editor.setContent(this.composerContent)
let selectionEl = document.getElementsByClassName('default-selection')[0]
setTimeout(() => this.editor.selectElement(selectionEl))
this.editor.subscribe('editableInput', (input, editor) => this.updateComposerContent(input, editor.innerHTML))
},
Expand Down

0 comments on commit b32ea64

Please sign in to comment.