Merge pull request #1399 from repotag/editor_fixes
Fix RTL button. Rename Edit Mode label to Markup.
This commit is contained in:
@@ -208,7 +208,8 @@
|
||||
}
|
||||
|
||||
if ( EditorHas.dir() ) {
|
||||
$('#function-dir').click(function( e ) {
|
||||
$('#function-text-direction').click(function( e ) {
|
||||
e.preventDefault();
|
||||
switchRtl(!window.ace_editor.session.$bidiHandler.$isRtl);
|
||||
});
|
||||
}
|
||||
@@ -570,7 +571,7 @@
|
||||
* @return boolean
|
||||
*/
|
||||
dir: function() {
|
||||
return ($('#gollum-editor #function-dir').length );
|
||||
return ($('#gollum-editor #function-text-direction').length );
|
||||
},
|
||||
|
||||
|
||||
@@ -634,7 +635,7 @@
|
||||
$(this).click( FunctionBar.evtFunctionButtonClick );
|
||||
$(this).removeClass('disabled');
|
||||
}
|
||||
else if ( !['function-help', 'function-dir'].includes( $(this).attr('id') ) ) {
|
||||
else if ( !['function-help', 'function-text-direction'].includes( $(this).attr('id') ) ) {
|
||||
$(this).addClass('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<option>vim</option>
|
||||
<option>emacs</option>
|
||||
</select>
|
||||
<label for="format">Edit Mode</label>
|
||||
<label for="format">Markup</label>
|
||||
<select id="wiki_format" name="format" class="form-select">
|
||||
{{#formats}}
|
||||
{{#enabled}}
|
||||
|
||||
Reference in New Issue
Block a user