MOBILE-4616 format-text: Avoid image treatment if it comes form tex
parent
48f73468e0
commit
c609330cce
|
@ -221,6 +221,10 @@ export class CoreFormatTextDirective implements OnChanges, OnDestroy, AsyncDirec
|
||||||
* @param img Image to adapt.
|
* @param img Image to adapt.
|
||||||
*/
|
*/
|
||||||
protected adaptImage(img: HTMLElement): void {
|
protected adaptImage(img: HTMLElement): void {
|
||||||
|
if (img.classList.contains('texrender')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Element to wrap the image.
|
// Element to wrap the image.
|
||||||
const container = document.createElement('span');
|
const container = document.createElement('span');
|
||||||
const originalWidth = img.attributes.getNamedItem('width');
|
const originalWidth = img.attributes.getNamedItem('width');
|
||||||
|
|
Loading…
Reference in New Issue