question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid filter <img>

See original GitHub issue

What is the current behavior? Describe the bug

With the new version of TinyMCE 6.0.0 the option images_dataimg_filter was removed. Is there some alternative to avoid filtering images.

image

What is the expected behavior? Render the image

image

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?

  • 6.0.0
  • Linux
  • Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
icaparros-at-wiriscommented, Apr 28, 2022

Hey @metricjs,

We would like to avoid the image filtering through blob, as the images_dataimg_filter achieved, so that our image src remains intact with the information we fill it with.

Our plugin can render formulas on the editor as a base64 encoded data URI that is added on the src attribute of the <img>. Also filter all mathml elements inside the editor to render them using the onBeforeSetContent event. You can check our demo using Tinymce 5 here.

Thank you for your response, If you need more information I will be attentive to your answer. (edited)

0reactions
Valgeriacommented, Sep 5, 2022

@icaparros-at-wiris

We have same problem. Is there is alternative to avoid filtering images. You have mentioned fixed with 6.1.0. Please share the solution. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Tips to Avoid Over Filtering Your Photos - Nine9
Also, a good rule of thumb is to avoid applying a setting that makes the image look “fake.” If the colors are so...
Read more >
colors - Exclude images from CSS filter - Stack Overflow
I got this css class (its applied on the body) and i don't wan't to invert the color of the images. how can...
Read more >
filter - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The filter CSS property applies graphical effects like blur or color shift to an element. Filters are commonly used to adjust the rendering ......
Read more >
Tutorial 1: Image Filtering - Stanford AI Lab
Image filtering changes the range (i.e. the pixel values) of an image, ... fit line given a data set and avoids the effect...
Read more >
filter | CSS-Tricks
The CSS filter property provides access to effects like blur or color shifting on an element's rendering before the element is displayed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found