Z
Z
zelsky2015-05-21 19:39:52
Django
zelsky, 2015-05-21 19:39:52

CkEditor Django library change?

How to add an attribute when adding an image?
So I add an image and with pens in the source (in the form itself) I need to add a
class="img-responisve" гde find code so that when adding an image, it doesn’t write, but writes<img src="folder/asdasd.png">

<img class="img-responisve"  src="folder/asdasd.png">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2015-05-21
@deliro

$(document).ready(function() {
    $('img').addClass('img-responisve');
});

Customize the event to your liking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question