Commit 8cd2f9abcf5877a26439f42f8295a24216187e0f
1 parent
6c32d532
dist再次发送
Showing
2 changed files
with
19 additions
and
4 deletions
dist/index.html
| ... | ... | @@ -89,6 +89,20 @@ |
| 89 | 89 | <li> |
| 90 | 90 | <a href="#replayzone" data-toggle="tab"><i class="icon iconfont icon-yulan"></i><p class="pull-right"> 课程预览区</p></a> |
| 91 | 91 | </li> |
| 92 | + <li> | |
| 93 | + <div class="btn-group" id="quickTool"> | |
| 94 | + <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | |
| 95 | + <span id="text">快速引入文件</span> | |
| 96 | + <span class="caret"></span> | |
| 97 | + </button> | |
| 98 | + <ul class="dropdown-menu"> | |
| 99 | + <li><a href="#">图片</a></li> | |
| 100 | + <li><a href="#">bootstrap.css</a></li> | |
| 101 | + <li><a href="#">bootstrap.js</a></li> | |
| 102 | + <li><a href="#">jQuery</a></li> | |
| 103 | + </ul> | |
| 104 | + </div> | |
| 105 | + </li> | |
| 92 | 106 | </ul> |
| 93 | 107 | <div id="editorwrapper"> |
| 94 | 108 | <button type="button" class="lang btn btn-default btn-primary pull-right" id="htmlbutton" title="" data-editorname="html"></button> | ... | ... |
dist/js/c.js
| ... | ... | @@ -35,6 +35,7 @@ $(function(){ |
| 35 | 35 | }) |
| 36 | 36 | |
| 37 | 37 | |
| 38 | + | |
| 38 | 39 | // new一个老师录制的控制条工具 |
| 39 | 40 | var techTool = new ToolBox({ |
| 40 | 41 | el: '#toolBox', |
| ... | ... | @@ -85,13 +86,13 @@ $(function(){ |
| 85 | 86 | var selectVal = $target.text(); |
| 86 | 87 | |
| 87 | 88 | if (selectVal == '图片') { |
| 88 | - Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<img src="//www.igeekbar.com/igeekbar/laitu/300x200&text=hello world/222222/ffffff" alt="占位图片">', "end") | |
| 89 | + Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<img src="http://www.igeekbar.com/igeekbar/laitu/300x200&text=hello world/222222/ffffff" alt="占位图片">', "end") | |
| 89 | 90 | }else if (selectVal == 'bootstrap.css') { |
| 90 | - Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<link href="//cdn.gbtags.com/bootswatch/3.2.0+1/custom/bootstrap.min.css" rel="stylesheet">', "end") | |
| 91 | + Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<link href="http://cdn.gbtags.com/bootswatch/3.2.0+1/custom/bootstrap.min.css" rel="stylesheet">', "end") | |
| 91 | 92 | }else if(selectVal == 'bootstrap.js'){ |
| 92 | - Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<script src="//cdn.gbtags.com/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>', "end") | |
| 93 | + Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<script src="http://cdn.gbtags.com/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>', "end") | |
| 93 | 94 | }else if (selectVal == 'jQuery') { |
| 94 | - Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<script src="//cdn.gbtags.com/jquery/2.1.1/jquery.min.js"></script>', "end") | |
| 95 | + Dir.treeLinkEditor[0].CodeMirrorRecord.replaceSelection('<script src="http://cdn.gbtags.com/jquery/2.1.1/jquery.min.js"></script>', "end") | |
| 95 | 96 | } |
| 96 | 97 | |
| 97 | 98 | }) | ... | ... |