Comments (2)
Overwriting existing values should be done in a array_replace_recursive
callback. Untested here, but I got it working in other plugins.
The toolkit actually has a A::merge
function that allows merging arrays in a cleaner way. I'm planning to replace it but got little time this end of week.
In the end, prop should probably look like this though, to allow overwriting the config on a per-field basis:
'buttons' => function($buttons = null) {
return $buttons ?? option('community.markdown-field.buttons');
}
Then we'll be able to get rid of this
These global settings, rather than on a per-field basis, could also benefit the other options.
from kirby-markdown-field.
1a62cc3 ✅
from kirby-markdown-field.
Related Issues (20)
- Remove strict version check HOT 10
- Field loses content after change of URL appendix HOT 5
- Adding file via button deletes the selected text HOT 2
- Support for the `==highlight==` => `<mark>highlight</mark>` syntax HOT 2
- Disabled Field appears "disabled" but content is still editable HOT 3
- Question/Feature Request: Link via button as markdown-style rather than kirbytag HOT 4
- pagelink dialog does not return results HOT 3
- Nested lists HOT 4
- [K4] 4.0 Compatibility HOT 16
- Field label not bold in v4
- Cannot read properties of undefined (reading 'page') HOT 7
- Scroll on input HOT 7
- Having 2 dividers does not work with the Symfony YAML parser HOT 4
- [3.0] Properly support file UUIDs [Clicking on a file/image link does not work] HOT 4
- [3.0] Pasting an URL with `link: markdown` option still adds KirbyTag HOT 1
- Markdown syntax for images HOT 5
- Selecting a text -> Link button should pre-fill "Link text" or not erase it
- Re-use `toggleInlineFormat()` inside of inline extension? HOT 5
- Configurable Options for Link Button HOT 5
- Incorrect permalinks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-markdown-field.