22번째 줄: |
22번째 줄: |
| onShow: gt.getPageAsDescription, | | onShow: gt.getPageAsDescription, |
| attachTo: '#mw-content-text > div.mw-parser-output > div.mw-inputbox-centered > form > input.mw-ui-input.mw-ui-input-inline.createboxInput', | | attachTo: '#mw-content-text > div.mw-parser-output > div.mw-inputbox-centered > form > input.mw-ui-input.mw-ui-input-inline.createboxInput', |
− | position: 'bottom' | + | position: 'bottom', |
| + | closeOnClickOutside: false, |
| }) | | }) |
| .transition( function () { | | .transition( function () { |
− | if (gt.isEditing()) { | + | if (gt.isEditingWithVisualEditor()) { |
| return 'edit1'; | | return 'edit1'; |
| + | } else if (gt.isEditingWithWikitext()) { |
| + | return 'switchToVisualEditor'; |
| } | | } |
| }) | | }) |
− | .back('intro'); | + | .back('intro') |
| + | .next('edit1'); |
| + | |
| + | tour.step({ |
| + | name: 'switchToVisualEditor', |
| + | title: '시각편집기로 전환', |
| + | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/switchToVisualEditor', |
| + | onShow: gt.getPageAsDescription, |
| + | attachTo: '#content > div > div.oo-ui-toolbar.oo-ui-toolbar-position-top.ve-ui-toolbar.ve-ui-dir-inline-ltr.ve-ui-dir-block-ltr.ve-ui-targetToolbar.ve-ui-positionedTargetToolbar.ve-init-mw-desktopArticleTarget-toolbar.ve-init-mw-desktopArticleTarget-toolbar-open.ve-init-mw-desktopArticleTarget-toolbar-opened.oo-ui-toolbar-narrow > div > div.oo-ui-toolbar-actions > div > div.oo-ui-toolbar-bar > div.oo-ui-toolbar-tools > div.ve-ui-toolbar-group-editMode.oo-ui-widget.oo-ui-widget-enabled.oo-ui-toolGroup.oo-ui-iconElement.oo-ui-indicatorElement.oo-ui-popupToolGroup.oo-ui-listToolGroup.oo-ui-popupToolGroup-active > span > span.oo-ui-iconElement-icon.oo-ui-icon-edit.oo-ui-image-progressive', |
| + | position: 'bottomLeft', |
| + | }) |
| + | .next('edit1'); |
| | | |
| tour.step({ | | tour.step({ |
40번째 줄: |
54번째 줄: |
| }) | | }) |
| .next('edit2'); | | .next('edit2'); |
| + | |
| + | |
| } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); | | } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); |