Hello everyone. I have a field in my model with type: Types.Html, wysiwyg: true, and I also have 'wysiwyg cloudinary images': true, in my keystone.init(). So when I'm adding a Cloudinary image to the wysiwyg editor I need to add q_auto parameter to its link automatically.
For example, this is what I have now after adding an Cloudinary image to the wysiwyg editor:
<img src="https://res.cloudinary.com/keystone-demo/image/upload/v1559662075/qwhnnzwrvbxawxb90lgu.png" alt="" />
What I want to have:
<img src="https://res.cloudinary.com/keystone-demo/image/upload/q_auto/qwhnnzwrvbxawxb90lgu.png" alt="" />
Is it possible to set q_auto parameter automatically when a user is adding Cloudinary image to the wysiwyg editor?
Hello everyone. I have a field in my model with
type: Types.Html, wysiwyg: true,
and I also have'wysiwyg cloudinary images': true,
in mykeystone.init()
. So when I'm adding a Cloudinary image to the wysiwyg editor I need to addq_auto
parameter to its link automatically. For example, this is what I have now after adding an Cloudinary image to the wysiwyg editor:<img src="https://res.cloudinary.com/keystone-demo/image/upload/v1559662075/qwhnnzwrvbxawxb90lgu.png" alt="" />
What I want to have:<img src="https://res.cloudinary.com/keystone-demo/image/upload/q_auto/qwhnnzwrvbxawxb90lgu.png" alt="" />
Is it possible to setq_auto
parameter automatically when a user is adding Cloudinary image to the wysiwyg editor?Environment