Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
364 views
in Q2A Core by

Hello, because of CLS I would like to add srcset attributes to IMG tag in questions answers and comments.

Do you know what file is the core HTML code for the IMG tags in?

Thanks.

Q2A version: 1.8

1 Answer

+2 votes
by
selected by
 
Best answer
There is no single location, since for example editor plugins that allow including images need to handle this themselves.
by
Roger that ! With markdown plugin it's in LinkTrait.php, line 239 at path :

qa-plugin/q2a-markdown-editor/cebe-markdown/inline

Cheers.
...