Allow creating and editing tables in note-editor (#2511)

Fixes #2480
This commit is contained in:
Martynas Bagdonas 2022-04-15 04:17:32 +07:00 committed by GitHub
parent 01506b27e9
commit f494ab5114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 1 deletions

View file

@ -1347,6 +1347,14 @@ noteEditor.applyAnnotationColors = Show Annotation Colors
noteEditor.removeAnnotationColors = Hide Annotation Colors
noteEditor.addCitations = Show Annotation Citations
noteEditor.removeCitations = Hide Annotation Citations
noteEditor.insertTable = Insert Table
noteEditor.insertRowBefore = Insert Row Above
noteEditor.insertRowAfter = Insert Row Below
noteEditor.insertColumnBefore = Insert Column Left
noteEditor.insertColumnAfter = Insert Column Right
noteEditor.deleteRow = Delete Row
noteEditor.deleteColumn = Delete Column
noteEditor.deleteTable = Delete Table
pdfReader.annotations = Annotations
pdfReader.showAnnotations = Show Annotations

View file

@ -170,3 +170,21 @@ ul.attachments div.note {
ul.attachments div.note p:first-child {
margin-top: .75em;
}
div table {
border-collapse: collapse;
}
div table td, div table th {
border: 1px #ccc solid;
border-collapse: collapse;
}
div table td *:first-child, div table th *:first-child {
margin-top: 0;
}
div table td *:last-child, div table th *:last-child {
margin-bottom: 0;
}

@ -1 +1 @@
Subproject commit 0d84a3ec1028ac8f224a9167d44c76c35523e8eb
Subproject commit 0ac27d39b606ef781ff4cae74f1c80840a497743