Answer the question
In order to leave comments, you need to log in
Is it possible to set the maximum resolution of an uploaded photo in CKEditor? Or process through HTML\CSS?
I am doing the functionality of creating posts for the user with the ability to upload photos.
CKEditor allows the user to set any photo resolution, but this is inconvenient and I do not want to set it above the required limit.
Can a user be restricted?
Google gave out a pair of crutches from 10 years ago, and they no longer work.
If not, is there a way to restrict the HTML or CSS img tag to be in the text?
An example of text that needs to be limited to at least the width:
<p><img alt="" src="/images/0-02-0a-0bfd62959092a27aa1716f5d349de3c6cd9fbd9dc577af05fecbd9c80ca905a2_bcd4787081b341ba%20%E2%80%94%20%D0%BA%D0%BE%D0%BF%D0%B8%D1%8F.png" style="height:132px; width:1598px">Равным образом постоянный количественный рост и сфера нашей активности требует от нас анализа существующих финансовых и административных условий. Значимость этих проблем настолько очевидна, что новая модель организационной деятельности играет важную роль в формировании позиций, занимаемых участниками в отношении поставленных задач. Задача организации, в особенности же реализация намеченного плана развития требует от нас системного анализа системы масштабного изменения ряда параметров?</p>
Answer the question
In order to leave comments, you need to log in
Set the MAX_CONTENT_LENGTH parameter on the backend and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question