WPIntell

Source evidence

Styles form : validation errors

Just TinyMCE Custom Styles · support · 2017-02-24T10:14:00+00:00

mixedsentiment
mediumseverity
0.84relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

8 / 34 rows with source links

23.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
darkstar123456 resolved
Hello, 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 ^^)

Comments

4 shown
darkstar123456 2017-02-24T10:26:00+00:00

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 .

Alex Prokopenko / JustCoded 2017-03-01T16:04:00+00:00

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.

Alex Prokopenko / JustCoded 2017-03-01T17:03:00+00:00

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.

darkstar123456 2017-03-06T15:27:00+00:00

Thank you ! It works perfectly now 🙂 (and the auto enable works as well ^^)