Skip to content

Commit 84ca35e

Browse files
committed
added different background color to source mode, and name attribute to textarea in source mode
1 parent a98c4f0 commit 84ca35e

6 files changed

Lines changed: 10 additions & 21 deletions

File tree

dist/sceditor.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sceditor.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sceditor.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/SCEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ export default function SCEditor(original, userOptions) {
588588
}
589589

590590
dom.attr(sourceEditor, 'title', 'source');
591+
dom.attr(sourceEditor, 'name', 'source');
591592

592593
// Add the editor to the container
593594
dom.appendChild(editorContainer, wysiwygEditor);

src/sceditor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,8 @@ div.sceditor-grip {
9898

9999
.sceditor-button-reply {
100100
display:none!important
101+
}
102+
103+
.sourceMode textarea:not(.textarea-input) {
104+
background-color: var(--bs-tertiary-bg);
101105
}

0 commit comments

Comments
 (0)