X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/3733d5e0527a89111f9e33bb8380fed20ea768fc..0022318acaf4767c0b70052ccbd0c0a86effc691:/modules/visualEditor.js 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(); } }