markdown in tooltips
This commit is contained in:
@@ -380,13 +380,14 @@ Espo.define('views/fields/base', 'view', function (Dep) {
|
||||
tooltipText = this.translate(this.tooltip, 'tooltips', this.model.name);
|
||||
}
|
||||
|
||||
tooltipText = tooltipText || this.translate(this.name, 'tooltips', this.model.name);
|
||||
tooltipText = tooltipText || this.translate(this.name, 'tooltips', this.model.name) || '';
|
||||
tooltipText = this.getHelper().transfromMarkdownText(tooltipText).toString();
|
||||
|
||||
$a.popover({
|
||||
placement: 'bottom',
|
||||
container: 'body',
|
||||
html: true,
|
||||
content: tooltipText.replace(/\n/g, "<br />"),
|
||||
content: tooltipText,
|
||||
}).on('shown.bs.popover', function () {
|
||||
$('body').off('click.popover-' + this.id);
|
||||
$('body').on('click.popover-' + this.id , function (e) {
|
||||
|
||||
@@ -2463,7 +2463,8 @@ table.table td.cell .complex-text {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.complex-text {
|
||||
.complex-text,
|
||||
.popover-content {
|
||||
h1:first-child,
|
||||
h2:first-child,
|
||||
h3:first-child,
|
||||
|
||||
Reference in New Issue
Block a user