Created
December 5, 2012 13:10
-
-
Save lifeinafolder/4215388 to your computer and use it in GitHub Desktop.
Ember-Redactor.js
This file contains 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
RedactorView = Ember.View.extend({ | |
templateName: 'redactor', | |
didInsertElement: function () { | |
require('editor/vendor/redactor/redactor'); | |
// If 'css' is not injected yet, inject it. | |
if (!Utils.hasCss('css/redactor.css')) { | |
$('head').append('<link rel="stylesheet" href="css/redactor.css" type="text/css" />'); | |
} | |
this.$('#redactor').redactor(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you successfully implemented a Redactor field in Ember with valueBinding? I find a bit complicated since Redactor inserts a new element and I have to find a way to add bindings to that.