You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Highlight row backgroung in table
This commit is contained in:
@ -791,7 +791,9 @@ class NoteTextComponent extends React.Component {
|
|||||||
webviewReady: true,
|
webviewReady: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (Setting.value('env') === 'dev') this.webview_.openDevTools();
|
if (Setting.value('env') === 'dev') {
|
||||||
|
this.webviewRef_.current.wrappedInstance.openDevTools();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
editor_ref(element) {
|
editor_ref(element) {
|
||||||
|
@ -64,6 +64,10 @@ class NoteTextViewerComponent extends React.Component {
|
|||||||
this.destroyWebview();
|
this.destroyWebview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------
|
||||||
|
// Wrap WebView functions
|
||||||
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
send(channel, arg0 = null, arg1 = null, arg2 = null, arg3 = null) {
|
send(channel, arg0 = null, arg1 = null, arg2 = null, arg3 = null) {
|
||||||
return this.webviewRef_.current.send(channel, arg0, arg1, arg2, arg3);
|
return this.webviewRef_.current.send(channel, arg0, arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -76,6 +80,14 @@ class NoteTextViewerComponent extends React.Component {
|
|||||||
return this.webviewRef_.current.print(options);
|
return this.webviewRef_.current.print(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openDevTools() {
|
||||||
|
return this.webviewRef_.current.openDevTools();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------
|
||||||
|
// Wrap WebView functions (END)
|
||||||
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <webview
|
return <webview
|
||||||
ref={this.webviewRef_}
|
ref={this.webviewRef_}
|
||||||
|
@ -635,6 +635,9 @@ class MdToHtml {
|
|||||||
tr:nth-child(even) {
|
tr:nth-child(even) {
|
||||||
background-color: ` + style.htmlTableBackgroundColor + `;
|
background-color: ` + style.htmlTableBackgroundColor + `;
|
||||||
}
|
}
|
||||||
|
tr:hover {
|
||||||
|
background-color: ` + style.raisedBackgroundColor + `;
|
||||||
|
}
|
||||||
hr {
|
hr {
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: 2px solid ` + style.htmlDividerColor + `;
|
border-bottom: 2px solid ` + style.htmlDividerColor + `;
|
||||||
|
Reference in New Issue
Block a user