From: Aleksander Ɓukasz Date: Fri, 19 Apr 2013 13:39:42 +0000 (+0200) Subject: Visual editor: refactoring X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/0022318acaf4767c0b70052ccbd0c0a86effc691 Visual editor: refactoring --- diff --git a/modules/visualEditor.js b/modules/visualEditor.js index bb4ad31..06a5ab6 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -93,7 +93,7 @@ rng.modules.visualEditor = function(sandbox) { this.currentNode = node; mediator.nodeSelected(node); }, - markFirstSelected: function() { + selectFirstNode: function() { var firstNodeWithText = this.node.find('[wlxml-tag]').filter(function() { return $(this).clone().children().remove().end().text().trim() !== ''; }).first(); @@ -218,7 +218,7 @@ rng.modules.visualEditor = function(sandbox) { onShowed: function() { if(!wasShownAlready) { wasShownAlready = true; - view.markFirstSelected(); + view.selectFirstNode(); } }