Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/InsertPagebreak/insert-pagebreak.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/InsertPagebreak/insert-pagebreak.js,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/InsertPagebreak/insert-pagebreak.js 24 Nov 2007 15:35:41 -0000 1.3 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/InsertPagebreak/insert-pagebreak.js 13 May 2008 18:53:52 -0000 1.4 @@ -1,43 +1,20 @@ -// InsertPagebreak plugin for HTMLArea/Xinha -// Implementation by Udo Schmal & Schaffrath NeueMedien -// Original Author - Udo Schmal -// -// (c) Udo Schmal & Schaffrath NeueMedien 2004 -// Distributed under the same terms as HTMLArea itself. -// This notice MUST stay intact for use (see license.txt). - -function InsertPagebreak(editor, args) { - this.editor = editor; - var cfg = editor.config; - var self = this; - - cfg.registerButton({ - id : "pagebreak", - tooltip : this._lc("Page break"), - image : editor.imgURL("pagebreak.gif", "InsertPagebreak"), - textMode : false, - action : function(editor) { - self.buttonPress(editor); - } - }); - cfg.addToolbarElement("pagebreak", "inserthorizontalrule", 1); -} - -InsertPagebreak._pluginInfo = { - name : "InsertPagebreak", - version : "1.0", - developer : "Udo Schmal", - developer_url : "", - sponsor : "L.N.Schaffrath NeueMedien", - sponsor_url : "http://www.schaffrath-neuemedien.de/", - c_owner : "Udo Schmal & Schaffrath NeueMedien", - license : "htmlArea" -}; - -InsertPagebreak.prototype._lc = function(string) { - return Xinha._lc(string, 'InsertPagebreak'); -}; - -InsertPagebreak.prototype.buttonPress = function(editor, context, updatecontextclass) { - editor.insertHTML('