How do I create a custom field/module with both Image field and HTML field?

28/07/2018


I want to create a custom field that allows a user to upload image along with some HTML code.

In the image above, I want the ‘Enter the blocks’ area to be a CKeditor/HTML field.

The issue I’m facing is that; in order to get the image field, I have to extend ImageFormatter and to get the HTML field, I have to extend FormatterBase.

قالب وردپرس