Initial checkin
This commit is contained in:
commit
d75eb444fc
4304 changed files with 369634 additions and 0 deletions
17
thirdparty/tiny/plugins/pagebreak/.svn/all-wcprops
vendored
Normal file
17
thirdparty/tiny/plugins/pagebreak/.svn/all-wcprops
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 57
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/pagebreak
|
||||
END
|
||||
editor_plugin.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 74
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/pagebreak/editor_plugin.js
|
||||
END
|
||||
editor_plugin_src.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 78
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/pagebreak/editor_plugin_src.js
|
||||
END
|
102
thirdparty/tiny/plugins/pagebreak/.svn/entries
vendored
Normal file
102
thirdparty/tiny/plugins/pagebreak/.svn/entries
vendored
Normal file
|
@ -0,0 +1,102 @@
|
|||
9
|
||||
|
||||
dir
|
||||
34
|
||||
http://svn.astat.org/astat/trunk/thirdparty/tiny/plugins/pagebreak
|
||||
http://svn.astat.org/astat
|
||||
|
||||
|
||||
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
svn:special svn:externals svn:needs-lock
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bb7ccd2a-c66b-0410-9765-967ca6f03dfc
|
||||
|
||||
editor_plugin.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:26.000000Z
|
||||
a1c5a59a36f772bc526411a9c8e74c63
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1530
|
||||
|
||||
editor_plugin_src.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:26.000000Z
|
||||
32968e1ab6272b9aec2fc38207b24599
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2200
|
||||
|
||||
css
|
||||
dir
|
||||
|
||||
img
|
||||
dir
|
||||
|
1
thirdparty/tiny/plugins/pagebreak/.svn/format
vendored
Normal file
1
thirdparty/tiny/plugins/pagebreak/.svn/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
9
|
1
thirdparty/tiny/plugins/pagebreak/.svn/text-base/editor_plugin.js.svn-base
vendored
Normal file
1
thirdparty/tiny/plugins/pagebreak/.svn/text-base/editor_plugin.js.svn-base
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
(function(){tinymce.create('tinymce.plugins.PageBreakPlugin',{init:function(ed,url){var pb='<img src="'+url+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',cls='mcePageBreak',sep=ed.getParam('pagebreak_separator','<!-- pagebreak -->'),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a;}),'g');ed.addCommand('mcePageBreak',function(){ed.execCommand('mceInsertContent',0,pb);});ed.addButton('pagebreak',{title:'pagebreak.desc',cmd:cls});ed.onInit.add(function(){if(ed.settings.content_css!==false)ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='pagebreak';});}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e);});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('pagebreak',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls));});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb);});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/<img[^>]+>/g,function(im){if(im.indexOf('class="mcePageBreak')!==-1)im=sep;return im;});});},getInfo:function(){return{longname:'PageBreak',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('pagebreak',tinymce.plugins.PageBreakPlugin);})();
|
74
thirdparty/tiny/plugins/pagebreak/.svn/text-base/editor_plugin_src.js.svn-base
vendored
Normal file
74
thirdparty/tiny/plugins/pagebreak/.svn/text-base/editor_plugin_src.js.svn-base
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
/**
|
||||
* $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.PageBreakPlugin', {
|
||||
init : function(ed, url) {
|
||||
var pb = '<img src="' + url + '/img/trans.gif" class="mcePageBreak mceItemNoResize" />', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', '<!-- pagebreak -->'), pbRE;
|
||||
|
||||
pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g');
|
||||
|
||||
// Register commands
|
||||
ed.addCommand('mcePageBreak', function() {
|
||||
ed.execCommand('mceInsertContent', 0, pb);
|
||||
});
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls});
|
||||
|
||||
ed.onInit.add(function() {
|
||||
if (ed.settings.content_css !== false)
|
||||
ed.dom.loadCSS(url + "/css/content.css");
|
||||
|
||||
if (ed.theme.onResolveName) {
|
||||
ed.theme.onResolveName.add(function(th, o) {
|
||||
if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls))
|
||||
o.name = 'pagebreak';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
ed.onClick.add(function(ed, e) {
|
||||
e = e.target;
|
||||
|
||||
if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls))
|
||||
ed.selection.select(e);
|
||||
});
|
||||
|
||||
ed.onNodeChange.add(function(ed, cm, n) {
|
||||
cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
|
||||
});
|
||||
|
||||
ed.onBeforeSetContent.add(function(ed, o) {
|
||||
o.content = o.content.replace(pbRE, pb);
|
||||
});
|
||||
|
||||
ed.onPostProcess.add(function(ed, o) {
|
||||
if (o.get)
|
||||
o.content = o.content.replace(/<img[^>]+>/g, function(im) {
|
||||
if (im.indexOf('class="mcePageBreak') !== -1)
|
||||
im = sep;
|
||||
|
||||
return im;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'PageBreak',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin);
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue