5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 23:46:57 +00:00

sacar console.log

This commit is contained in:
void 2019-11-20 00:54:50 -03:00
parent 375226d7dd
commit 0498a48b8c

View file

@ -66,16 +66,14 @@ const makeLink = (state, dispatch) => {
if (has) { if (has) {
tr.removeMark(from, to, type) tr.removeMark(from, to, type)
} else { } else {
console.log(tr.addMark(from, to, type.create({ tr.addMark(from, to, type.create({
href: window.prompt('elegir url', '//sutty.nl') href: window.prompt('elegir url', '//sutty.nl')
}))) }))
} }
return dispatch(tr) return dispatch(tr)
} }
console.log(schema)
class SuttyEditor { class SuttyEditor {
constructor ({element, markdown, toolbar}) { constructor ({element, markdown, toolbar}) {
this.state = this.buildState(markdown) this.state = this.buildState(markdown)