From: Aleksander Ɓukasz Date: Thu, 6 Mar 2014 10:34:03 +0000 (+0100) Subject: editor: removing unused code X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/eb2569dfea00204192e8a69aa4599bd2ab46c51e editor: removing unused code --- diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index b7a4900..dbe6c48 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -403,27 +403,6 @@ $.extend(DocumentTextElement.prototype, { return element; }, - divide: function(params) { - var myText = this.getText(); - - if(params.offset === myText.length) { - return this.after(params); - } - if(params.offset === 0) { - return this.before(params); - } - - var lhsText = myText.substr(0, params.offset), - rhsText = myText.substr(params.offset), - newElement = DocumentNodeElement.create({tag: params.tag, klass: params.klass}, this.canvas), - rhsTextElement = DocumentTextElement.create({text: rhsText}); - - this.setText(lhsText); - this.after(newElement); - newElement.after(rhsTextElement); - return newElement; - }, - toggleHighlight: function() { // do nothing for now }