Skip to content

Instantly share code, notes, and snippets.

View mhed89's full-sized avatar
🍻

Markus mhed89

🍻
  • Sweden
View GitHub Profile
@mhed89
mhed89 / imageuploadfield.js
Created August 26, 2024 17:09 — forked from primableatom/imageuploadfield.js
Image upload field component for Extjs
/**
* This componet handles icon upload along with preview and drag drop.
* Usage: include it as xtype: 'imageuploadfield', including this field in a form requires us to submit it via a method submitWithImage instead of submit.
*/
Ext.define('SomeNameSpace.ImageUploadField', {
alias: 'widget.imageuploadfield',
extend: 'Ext.form.FieldContainer',
/**
@mhed89
mhed89 / index.html
Created January 4, 2024 06:15 — forked from cdsaenz/index.html
Demo Alpine JS and Fetch from Remote API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alpine Ajax test</title>
</head>
<body>
<h1>Users API Retrieval Test</h1>
@mhed89
mhed89 / gutenberg.txt
Created December 5, 2023 07:09 — forked from chrismccoy/gutenberg.txt
Gutenberg Resources
How to Read WordPress Block Content Programmatically
https://www.ibenic.com/read-wordpress-block-content-programmatically/
Creating a Server-Side Rendered ACF Field Block for WordPress
https://wpblockz.com/tutorial/learn-gutenberg-block-building-create-a-block-that-renders-an-acf-field/
Coding Gutenberg Toggle Control Block Settings
https://wpblockz.com/tutorial/wp-gutenberg-editor-controls-form-toggle/
Remove the default block patterns from WordPress