Conversation
supportHello, I’m using your plugin for the first time, and I imported the Boostrap Styles. I wanted to add my own (.h1 -> .h6, btw it could be a great addition ;-)) but when I try to submit the changes, it says that I have empty field values and so it doesn’t save. I suppose that what defines a Group of styles is the fact that they only have name and no other option (tag, class, styles) but still it says that it is not valid 🙁 I don’t know if I can post URL in here, but this is a screenshot of the issue : http://i.imgur.com/7Lw3lz4.png PS : Sorry for my bad English ^^
From what I see from the code, it seems to used to have a input named “type” to define the type of the row. This type is present from json data, but not in the form. So when I submit the form, it uses the type “item” if no type is defined : // set default type if ( !isset($format['type']) ) { $format['type'] = self::TYPE_ITEM; } This reply was modified 9 years, 3 months ago by darkstar123456 .
It seems you should just enable “Type” field on Settings tab. After that all will be fine. However I will check the import function. Because it should enable this field automatically.
In version 1.2 I added code to automatically enable this setting if it’s not On. Please try to upgrade, or you can manually turn it on.
Thank you ! It works perfectly now 🙂 (and the auto enable works as well ^^)
From what I see from the code, it seems to used to have a input named “type” to define the type of the row. This type is present from json data, but not in the form. So when I submit the form, it uses the type “item” if no type is defined : // set default type if ( !isset($format['type']) ) { $format['type'] = self::TYPE_ITEM; } This reply was modified 9 years, 3 months ago by darkstar123456 .
It seems you should just enable “Type” field on Settings tab. After that all will be fine. However I will check the import function. Because it should enable this field automatically.
In version 1.2 I added code to automatically enable this setting if it’s not On. Please try to upgrade, or you can manually turn it on.
Thank you ! It works perfectly now 🙂 (and the auto enable works as well ^^)