mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-19 22:50:22 +00:00
first commit
This commit is contained in:
19
lib/ckeditor4/plugins/lite/plugins/IceAddTitlePlugin/IceAddTitlePlugin.js
Executable file
19
lib/ckeditor4/plugins/lite/plugins/IceAddTitlePlugin/IceAddTitlePlugin.js
Executable file
@@ -0,0 +1,19 @@
|
||||
(function() {
|
||||
|
||||
var exports = this, IceAddTitlePlugin;
|
||||
|
||||
IceAddTitlePlugin = function(ice_instance) {
|
||||
this._ice = ice_instance;
|
||||
};
|
||||
|
||||
IceAddTitlePlugin.prototype = {
|
||||
nodeCreated: function(node, option) {
|
||||
node.setAttribute('title', (option.action || 'Modified') + ' by ' + node.getAttribute(this._ice.userNameAttribute)
|
||||
+ ' - ' + ice.dom.date('m/d/Y h:ia', parseInt(node.getAttribute(this._ice.timeAttribute))));
|
||||
}
|
||||
};
|
||||
|
||||
ice.dom.noInclusionInherits(IceAddTitlePlugin, ice.IcePlugin);
|
||||
exports._plugin.IceAddTitlePlugin = IceAddTitlePlugin;
|
||||
|
||||
}).call(this.ice);
|
||||
Reference in New Issue
Block a user