X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/70fd8f6118a3e8bf298dd9c48c310f3309b780c3..d4e89595e829f60443056ce65f5f275d10f882ed:/modules/visualEditor.js?ds=sidebyside diff --git a/modules/visualEditor.js b/modules/visualEditor.js index 08085de..ce62c6a 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -12,6 +12,13 @@ rng.modules.visualEditor = function(sandbox) { node.find('#rng-visualEditor-meta').on('keyup', function() { isDirty = true; }); + + this.node.on('mouseover', '.rng', function(e) { $(e.target).addClass('rng-hover')}); + this.node.on('mouseout', '.rng', function(e) { $(e.target).removeClass('rng-hover')}); + this.node.on('click', '.rng', function(e) { + node.find('.rng').removeClass('rng-current'); + $(e.target).addClass('rng-current'); + }); }, getMetaData: function() { var toret = {};