* Added theme colors to form fields
* Added some basic table styles for inserting some shitty tables * Made popup notification styles look better and work better on mobile * Quick note now opens a note and not some weird page * Menu collapses when page is small, behaves like mobile menu * Added terms and conditions to help and login forms * Added password change functionality * Better styles for shared page * Added some tests for changing password
This commit is contained in:
@@ -345,62 +345,26 @@ const SquireButtonFunctions = {
|
||||
this.editor.focus()
|
||||
this.editor.moveCursorToEnd()
|
||||
},
|
||||
insertTable(wide, tall){
|
||||
console.log('Insert a table')
|
||||
insertTable(tall, wide){
|
||||
console.log(`Table: ${wide} x ${tall}`)
|
||||
|
||||
let tableSyntax = `
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<th><p><br></p></th>
|
||||
<th><p><br></p></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><br></p></td>
|
||||
<td><p><br></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><br></p></td>
|
||||
<td><p><br></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
`
|
||||
|
||||
tableSyntax = `
|
||||
<span class="t-table">
|
||||
<span>
|
||||
<span>
|
||||
<p><br></p>
|
||||
</span>
|
||||
<span>
|
||||
<p><br></p>
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
<span>
|
||||
<p><br></p>
|
||||
</span>
|
||||
<span>
|
||||
<p><br></p>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<p><br></p>
|
||||
`
|
||||
tableSyntax = ''
|
||||
tableSyntax += '<span class="t-table">'
|
||||
//Insert a table
|
||||
let tableSyntax = '<div>'
|
||||
tableSyntax += '<table>'
|
||||
for (let i = 0; i < tall; i++) {
|
||||
|
||||
tableSyntax += '<tr>'
|
||||
for (let j = 0; j < wide; j++) {
|
||||
|
||||
tableSyntax += '<td><p><br></p></td>'
|
||||
}
|
||||
tableSyntax += '</tr>'
|
||||
}
|
||||
tableSyntax += '</span><p><br></p>'
|
||||
tableSyntax += '</table></div><p><br></p>'
|
||||
|
||||
this.editor.insertHTML(tableSyntax)
|
||||
this.editor.focus()
|
||||
this.editor.moveCursorToEnd()
|
||||
|
||||
this.$router.go(-1)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user