[Skip to main content](#vessel-content)

#   Backend custom WYSIWYG field width

##

- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")**
- [![jfischer&#95;hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)

Less More

- Posts: 51
- Thank you received: 3
-
-

3 years 9 months ago [\#349287](#349287) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")  *[Backend custom WYSIWYG field width](/forum/26-product-category-display/905896-backend-custom-wysiwyg-field-width#349287 "-- HikaShop version -- : 4.7.7 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0.27 -- Browser(s) name and version -- : firefox  Hello,  I have added several custom fields in my product category of the WYSIWYG type. I noticed that the field widths are based on a percentage of screen size. On some screens this makes the WYSIWYG editor too narrow to use effectively. I see that the description field by default has the chevron button to change the width of the editor . Is there a way to add this feature to the WYSIWYG field type? Ideally this would be an option on all backend fields. If this is not possible, is there some css code to change these WYSIWYG field widths without changing all the field widths?")* was created by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")*

-- HikaShop version -- : 4.7.7
-- Joomla version -- : 4.2.7
-- PHP version -- : 8.0.27
-- Browser(s) name and version -- : firefox

Hello,

I have added several custom fields in my product category of the WYSIWYG type. I noticed that the field widths are based on a percentage of screen size. On some screens this makes the WYSIWYG editor too narrow to use effectively. I see that the description field by default has the chevron button to change the width of the editor . Is there a way to add this feature to the WYSIWYG field type? Ideally this would be an option on all backend fields. If this is not possible, is there some css code to change these WYSIWYG field widths without changing all the field widths?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDU4OTYtYmFja2VuZC1jdXN0b20td3lzaXd5Zy1maWVsZC13aWR0aD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

3 years 9 months ago [\#349291](#349291) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Backend custom WYSIWYG field width](/forum/26-product-category-display/905896-backend-custom-wysiwyg-field-width#349291 "-- HikaShop version -- : 4.7.7 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0.27 -- Browser(s) name and version -- : firefox  Hello,  I have added several custom fields in my product category of the WYSIWYG type. I noticed that the field widths are based on a percentage of screen size. On some screens this makes the WYSIWYG editor too narrow to use effectively. I see that the description field by default has the chevron button to change the width of the editor . Is there a way to add this feature to the WYSIWYG field type? Ideally this would be an option on all backend fields. If this is not possible, is there some css code to change these WYSIWYG field widths without changing all the field widths?")*

Hi,

Adding the feature to the field itself doesn't make much sense, structurally speaking. A custom field is displayed in a block on the product edit form page. And in that block, there can be other fields. Changing the width of the whole block based on the setting of one of the fields inside it would be dirty. A cleaner solution would be to allow changing the size of any block with a similar button than the one on the description block. That's something we could look into in the future.
However, as a short term solution for your needs, you could add a bit of CSS to force the block and the HTML editor to be displayed with a bigger width.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDU4OTYtYmFja2VuZC1jdXN0b20td3lzaXd5Zy1maWVsZC13aWR0aD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")**
- [![jfischer&#95;hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)

Less More

- Posts: 51
- Thank you received: 3
-
-

3 years 9 months ago [\#349300](#349300) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")  Replied by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")* on topic *[Backend custom WYSIWYG field width](/forum/26-product-category-display/905896-backend-custom-wysiwyg-field-width#349300 "-- HikaShop version -- : 4.7.7 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0.27 -- Browser(s) name and version -- : firefox  Hello,  I have added several custom fields in my product category of the WYSIWYG type. I noticed that the field widths are based on a percentage of screen size. On some screens this makes the WYSIWYG editor too narrow to use effectively. I see that the description field by default has the chevron button to change the width of the editor . Is there a way to add this feature to the WYSIWYG field type? Ideally this would be an option on all backend fields. If this is not possible, is there some css code to change these WYSIWYG field widths without changing all the field widths?")*

Hello Nicolas

> A cleaner solution would be to allow changing the size of any block with a similar button than the one on the description block.

That is what I was meaning to say. The ability to change the width of the block that contains the WYSIWYG field.

For the short term, I modified the product-&gt;form view to change the width of my custom fields as follows.
Code:

&lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_fields" data-id="fields" style="width:auto;"&gt;&lt;div&gt;

This works for my custom fields block. I hope you could implement the cleaner solution in future updates.

Many Thanks

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDU4OTYtYmFja2VuZC1jdXN0b20td3lzaXd5Zy1maWVsZC13aWR0aD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
