Skip to content

Commit cd71f5e

Browse files
fix(MC Authoring): Save changes to prompt. Also edited html default text
1 parent 302cc22 commit cd71f5e

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/app/services/htmlService.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ let service: HTMLService;
1414
describe('HTMLService', () => {
1515
beforeEach(() => {
1616
TestBed.configureTestingModule({
17-
imports: [],
18-
providers: [
17+
imports: [],
18+
providers: [
1919
AnnotationService,
2020
ConfigService,
2121
ProjectService,
@@ -25,8 +25,8 @@ describe('HTMLService', () => {
2525
TagService,
2626
provideHttpClient(withInterceptorsFromDi()),
2727
provideHttpClientTesting()
28-
]
29-
});
28+
]
29+
});
3030
service = TestBed.inject(HTMLService);
3131
});
3232
createComponent();
@@ -37,7 +37,7 @@ function createComponent() {
3737
it('should create an html component', () => {
3838
const component = service.createComponent();
3939
expect(component.type).toEqual('HTML');
40-
expect(component.html).toEqual('Enter html here');
40+
expect(component.html).toEqual('Enter content here');
4141
});
4242
}
4343

src/assets/wise5/components/html/htmlService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class HTMLService extends ComponentService {
1010
createComponent() {
1111
const component: any = super.createComponent();
1212
component.type = 'HTML';
13-
component.html = $localize`Enter html here`;
13+
component.html = $localize`Enter content here`;
1414
return component;
1515
}
1616

src/assets/wise5/components/multipleChoice/multiple-choice-authoring/multiple-choice-authoring.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class MultipleChoiceAuthoring extends AbstractComponentAuthoring {
3636
protected feedbackTextChange: Subject<string> = new Subject<string>();
3737

3838
ngOnInit(): void {
39+
super.ngOnInit();
3940
this.subscriptions.add(
4041
this.choiceTextChange.pipe(debounceTime(1000), distinctUntilChanged()).subscribe(() => {
4142
this.componentChanged();

src/messages.xlf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20188,8 +20188,8 @@ Category Name: <x id="PH_1" equiv-text="categoryName"/></source>
2018820188
<context context-type="linenumber">7</context>
2018920189
</context-group>
2019020190
</trans-unit>
20191-
<trans-unit id="88232795223704551" datatype="html">
20192-
<source>Enter html here</source>
20191+
<trans-unit id="5588251132227750710" datatype="html">
20192+
<source>Enter content here</source>
2019320193
<context-group purpose="location">
2019420194
<context context-type="sourcefile">src/assets/wise5/components/html/htmlService.ts</context>
2019520195
<context context-type="linenumber">13</context>
@@ -20640,7 +20640,7 @@ Warning: This will delete all existing choices and buckets in this activity.</so
2064020640
</context-group>
2064120641
<context-group purpose="location">
2064220642
<context context-type="sourcefile">src/assets/wise5/components/multipleChoice/multiple-choice-authoring/multiple-choice-authoring.component.ts</context>
20643-
<context context-type="linenumber">75</context>
20643+
<context context-type="linenumber">76</context>
2064420644
</context-group>
2064520645
</trans-unit>
2064620646
<trans-unit id="6683126302760629027" datatype="html">

0 commit comments

Comments
 (0)