X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0c57fd826a58a217f499b5084c837fb8ef3f6d4f..a49547b7a4bef633bb92bee9cf97fdcfe67c76aa:/src/editor/modules/documentCanvas/canvas/gutter.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/gutter.js b/src/editor/modules/documentCanvas/canvas/gutter.js index 472998a..00b118e 100644 --- a/src/editor/modules/documentCanvas/canvas/gutter.js +++ b/src/editor/modules/documentCanvas/canvas/gutter.js @@ -8,7 +8,7 @@ var $ = require('libs/jquery'), gutterBoxTemplate = require('libs/text!./gutterBox.html'); -var GutterView = function(gutter) { +var GutterView = function(gutter, tutorial) { gutter.on('show', function(group) { if(this.groupView) { this.groupView.remove(); @@ -19,6 +19,9 @@ var GutterView = function(gutter) { this.groupView.show(); }, this); this.dom = $('
'); + var tutorialHolder = $('
').attr('data-toggle', 'tutorial').attr('data-tutorial', tutorial.index) + .attr('data-placement', 'left').attr('data-content', tutorial.text).css('height', '200px'); + this.dom.append($('
/').css('height', '0').append(tutorialHolder)); };