mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°3810 - Avoid syntax highlighting that shouldn't take place
This commit is contained in:
@@ -106,11 +106,11 @@ const CombodoBackofficeToolbox = {
|
||||
const sComplementarySelector = bForce ? '' : ':not(.hljs)';
|
||||
|
||||
// AttributeHTML and HTML AttributeText
|
||||
oContainerElem.find('[data-attribute-type="AttributeHTML"], [data-attribute-type="AttributeText"]').find('.HTML pre'+sComplementarySelector).each(function (iIdx, oElem) {
|
||||
oContainerElem.find('[data-attribute-type="AttributeHTML"], [data-attribute-type="AttributeText"]').find('.HTML pre'+sComplementarySelector+' > code').parent().each(function (iIdx, oElem) {
|
||||
hljs.highlightBlock(oElem);
|
||||
});
|
||||
// CaseLogs
|
||||
oContainerElem.find('[data-role="ibo-activity-entry--main-information-content"] pre'+sComplementarySelector).each(function (iIdx, oElem) {
|
||||
oContainerElem.find('[data-role="ibo-activity-entry--main-information-content"] pre'+sComplementarySelector+' > code').parent().each(function (iIdx, oElem) {
|
||||
hljs.highlightBlock(oElem);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user