Styling scrollbar in visual editor
[fnpeditor.git] / modules / visualEditor.js
index 08085de..ce62c6a 100644 (file)
@@ -12,6 +12,13 @@ rng.modules.visualEditor = function(sandbox) {
             node.find('#rng-visualEditor-meta').on('keyup', function() {\r
                 isDirty = true;\r
             });\r
             node.find('#rng-visualEditor-meta').on('keyup', function() {\r
                 isDirty = true;\r
             });\r
+
+            this.node.on('mouseover', '.rng', function(e) { $(e.target).addClass('rng-hover')});\r
+            this.node.on('mouseout', '.rng', function(e) { $(e.target).removeClass('rng-hover')});\r
+            this.node.on('click', '.rng', function(e) {\r
+                node.find('.rng').removeClass('rng-current');\r
+                $(e.target).addClass('rng-current');\r
+            });
         },\r
         getMetaData: function() {\r
             var toret = {};\r
         },\r
         getMetaData: function() {\r
             var toret = {};\r