Issue #582Opened November 28, 2017by suraj7401 reactions

background image issue

Question

Hi @artf one more issue when using custom manager , what do we set on background images? editor.getSelected().set('src', url) not working on background images. should i replace 'src' with 'background'?

Answers (3)

artfNovember 30, 20171 reactions

Use this

editor.getSelected()
    .addStyle({'background-image': `url(${url})`});
suraj740November 30, 20170 reactions

@artf Thank you for the awesome work man! 👍

lock[bot]September 18, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.