Old
$('#content').redactor(options);
New
$R('#content', options);
Old
(function($)
{
$.Redactor.prototype.myplugin = function()
{
return {
init: function ()
{
}
};
};
})(jQuery);
New
(function($R)
{
$R.add('plugin', 'myplugin', {
init: function(app)
{
// define app
this.app = app;
// define some services, for example
this.caret = app.caret;
this.selection = app.selection;
}
});
})(Redactor);
Old
// JSON for uploaded images
{ "url": "/images/img.jpg", "id": "123" }
// JSON for uploaded files
{ "url": "/files/file.doc", "name": "Filename" }
New
// JSON for uploaded images
{
"file": {
"url": "image-url.jpg",
"id": "some-id"
}
}
// JSON for uploaded files
{
"file": {
"url": "some-file-url",
"name": "some-file-name",
"id": "some-id"
}
}
Old
(function($)
{
$.Redactor.opts.langs['en'] = {
"name": "value"
};
})(jQuery);
New
(function($R)
{
$R.lang['en'] = {
"name": "value"
};
})(Redactor);
New
Renamed
Deprecated
New
Renamed
Deprecated
All new services
All new modules
New methods
Renamed
Deprecated