Last active
August 29, 2015 14:12
-
-
Save kostia/7443b9ebb95def4d0fb4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We could also copy this file with `rails g scrivito_editors:install`... | |
//= require scrivito_editors/binary_editor | |
//= require scrivito_editors/multienum_editor | |
//= require scrivito_minicolors_editor | |
(function() { | |
scrivit.on('content', function(content) { | |
if (scrivito.in_editing_view()) { | |
$(content).find('[data-scrivito-field-type=binary]').scrivito_binary_editor(); | |
$(content).find('[data-scrivito-field-type=multienum]').scrivito_multienum_editor(); | |
$(content).find('[data-scrivito-field-name=balloon_color').scrivito_minicolors_editor(); | |
} | |
}); | |
}()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require scrivito_editors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require scrivito_editors/binary_editor | |
//= require scrivito_editors/multienum_editor | |
//... other editors. | |
(function() { | |
scrivit.on('content', function(content) { | |
if (scrivito.in_editing_view()) { | |
$(content).find('[data-scrivito-field-type=binary]').scrivito_binary_editor(); | |
$(content).find('[data-scrivito-field-type=multienum]').scrivito_multienum_editor(); | |
// ... other default settings. | |
} | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment