Skip to content

Commit 3557e7a

Browse files
authored
Merge pull request #32 from Acode-Foundation/sitemap-plus-fix
Refactor code structure for improved readability and maintainability
2 parents 542cd8c + 1268066 commit 3557e7a

File tree

2 files changed

+295
-729
lines changed

2 files changed

+295
-729
lines changed

client/pages/publishPlugin/index.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,15 @@ export default async function PublishPlugin({ mode = 'publish', id }) {
114114
<th>Editor Type</th>
115115
<td>
116116
<select name='supported_editor' id='editor_type' value={plugin?.supported_editor || 'cm'}>
117-
<option value='ace'>Ace</option>
118-
<option value='cm'>CodeMirror</option>
119-
<option value='all'>Both</option>
117+
<option value='ace' selected={plugin?.supported_editor === 'ace'}>
118+
Ace
119+
</option>
120+
<option value='cm' selected={plugin?.supported_editor === 'cm'}>
121+
CodeMirror
122+
</option>
123+
<option value='all' selected={plugin?.supported_editor === 'all'}>
124+
Both
125+
</option>
120126
</select>
121127
</td>
122128
</tr>

0 commit comments

Comments
 (0)