Fix HTML article inclusion
Fix draft inclusion in preview Enhance cache post content (avoid recomputing md5sum if present) Add generation duration time Add post only generation (for Dev) Remove Draft when it becomes Post Update blog Copyright Update TinyMCE plugins for inclusion Sort tags by name
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
/**
|
||||
* editor_plugin_src.js
|
||||
*
|
||||
* Copyright 2012, Grégory Soutadé
|
||||
* Released under LGPL License.
|
||||
*
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.DynastieColor', {
|
||||
init : function(ed, url) {
|
||||
var t = this, css = tinymce.explode(ed.settings.content_css);
|
||||
|
||||
t.editor = ed;
|
||||
|
||||
// Force absolute CSS urls
|
||||
tinymce.each(css, function(u, k) {
|
||||
css[k] = ed.documentBaseURI.toAbsolute(u);
|
||||
});
|
||||
|
||||
ed.addCommand('mceDynastieColor', function() {
|
||||
ed.windowManager.open({
|
||||
file : ed.getParam("plugin_dynastiecolor_pageurl", url + "/dynastiecolor.html"),
|
||||
width : parseInt(ed.getParam("plugin_dynastiecolor_width", "700")),
|
||||
height : parseInt(ed.getParam("plugin_dynastiecolor_height", "800")),
|
||||
resizable : "yes",
|
||||
scrollbars : "yes",
|
||||
popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"),
|
||||
}, {
|
||||
base : ed.documentBaseURI.getURI()
|
||||
});
|
||||
});
|
||||
|
||||
ed.addButton('dynastiecolor', {title : 'Insert code', cmd : 'mceDynastieColor', image : url + "/img/dynastiecolor.png"});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'DynastieColor',
|
||||
author : 'Grégory Soutadé',
|
||||
authorurl : 'http://soutade.fr',
|
||||
infourl : 'http://indefero.soutade.fr/p/dynastie',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('dynastiecolor', tinymce.plugins.DynastieColor);
|
||||
})();
|
1
dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/dynastiecolor/editor_plugin.js
vendored
Symbolic link
1
dynastie/static/js/tinymce/jscripts/tiny_mce/plugins/dynastiecolor/editor_plugin.js
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
editor_plugin_src.js
|
Reference in New Issue
Block a user