fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

Add dot notation #100

Closed S1SYPHOS closed 3 years ago

S1SYPHOS commented 3 years ago

Hey there, when changing a single font option, like this:

'community.markdown-field.font' => [
  'family' => 'sans-serif',
]

.. the other options are overwritten, and I get this:

image

.. so I'd like to do it this way (without affecting the other options):

'community.markdown-field.font.family' => 'sans-serif'

sylvainjule commented 3 years ago

Hello, I can't reproduce it in my "plugins sandbox" + a fresh Starterkit with Kirby 3.5.

It shouldn't overwrite all keys indeed but only replace the key you've explicitely set, I'm using A::merge() here from Kirby's toolkit and it works fine in my tests.

Please reopen if the issue still occur for you in 3.5.