Skip to content

Commit

Permalink
Fixed compatibility with Craft 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed Apr 10, 2020
1 parent 4b909db commit edc6cdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Redactor Split Changelog

## 1.1.0 - 2020-04-10
### Fixed
- Plugin not working on Craft 3.4

### Changed
- Redactor Split now requires Craft 3.4 or greater

## 1.0.1 - 2019-03-14
### Changed
- Updated icon and cleaned code for release
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "venveo/craft-redactor-split",
"description": "Split a matrix block",
"description": "Split a redactor field within Matrix blocks into additional blocks",
"type": "craft-plugin",
"version": "1.0.1",
"version": "1.1.0",
"keywords": [
"craft",
"cms",
Expand All @@ -22,7 +22,7 @@
}
],
"require": {
"craftcms/cms": "^3.1.0",
"craftcms/cms": "^3.4.0",
"craftcms/redactor": "^2.3"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/redactor-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
var split = fieldId.split('-')
var fieldHandle = split[split.length - 2]; // Get the field handle
// We'll probably need to modify this to make things like Neo and supertable work.
var id = e.target.inputIdPrefix + '-' + $block[0].dataset.id + '-fields-' + fieldHandle;
var id = e.target.inputIdPrefix + '-blocks-' + $block[0].dataset.id + '-fields-' + fieldHandle;

// Tell the init method what field to target for setting the content
nextRedactorFieldId = id;
Expand Down

0 comments on commit edc6cdd

Please sign in to comment.