Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
How to customize html source in ckeditor 5

I'm able to get the ckeditor to display the sourceEditing plugin correctly. What I'm trying to do is customize the ckeditor so when I upload an image instead of the image source being something like this:

<figure class="image image-style-side">
    <img src="https://c.cksource.com/a/1/img/docs/sample-image-bilingual-personality-disorder.jpg">
    <figcaption>
        One language, one person.
    </figcaption>
</figure>

I want it to display images of different size when depending on screen width like this:

<picture class="image image-style-side">
  <source media="(max-width: 799px)" https://small-c.cksource.com/a/1/img/docs/sample-image-bilingual-personality-disorder.jpg">
  <source media="(min-width: 800px)" https://medium-c.cksource.com/a/1/img/docs/sample-image-bilingual-personality-disorder.jpgg">
  <img src="elva-800w.jpg" alt="https://largmc-.cksource.com/a/1/img/docs/sample-image-bilingual-personality-disorder.jpgElva">
</picture>

Is something like this even possible?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!