Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotsunited/wordpress-plugin-editor-grid

WordPress editor extension to create and manage grids.
https://github.com/dotsunited/wordpress-plugin-editor-grid

Last synced: about 1 month ago
JSON representation

WordPress editor extension to create and manage grids.

Awesome Lists containing this project

README

        

WordPress Editor Grid Plugin
===

A lightweight WordPress Plugin to create and manage grids via the WordPress Post Editor.

Installation
---

Install with

```bash
composer require dotsunited-wordpress-plugin/editor-grid
```

Note: This plugin does not automatically add the required styles to the frontend
pages (only to the Admin Editor), in order to prevent multiple css files from
multiple plugins in the site header (which would ruin the pagespeed).

The incorporation into a [Webpack](https://github.com/webpack/webpack) workflow
with LESS is encouraged.

You can find an example boilerplate for possible frontend styles
[here](https://github.com/dotsunited/wordpress-boilerplate/blob/master/assets/main/editor-grid/style.less),
and for a possible WordPress-Webpack setup
[here](https://github.com/dotsunited/wordpress-boilerplate/blob/master/webpack.config.js).

The HTML generated by the plugin looks like this:

```html











```

Enabling for additional editors
---

The grid plugin can be enabled for other editors by registering the editor IDs
through the `dotsunited_editor_grid_editor_ids` filter.

```php
add_filter('dotsunited_editor_grid_editor_ids', function($editor_ids) {
// WP Editor Widget plugin
$editor_ids[] = 'wpeditorwidget';
return $editor_ids;
});
```

License
---

Copyright (c) 2015-2018 Dots United GmbH.
Released under the [MIT](LICENSE) license.