28 |
28 |
<div dashboard-input class="uk-width-1-1" [formInput]="communityFb.get('shortName')"
|
29 |
29 |
hint="Short name of the community."
|
30 |
30 |
label="Short Name" placeholder="Write an acronym..."></div>
|
31 |
|
<div dashboard-input class="uk-width-1-1" [type]="'textarea'" placeholder="Write a description..."
|
32 |
|
hint="The description of the community."
|
33 |
|
[rows]="4" [formInput]="communityFb.get('description')" label="Description"></div>
|
|
31 |
<!-- <div dashboard-input class="uk-width-1-1" [type]="'textarea'" placeholder="Write a description..."-->
|
|
32 |
<!-- hint="The description of the community."-->
|
|
33 |
<!-- [rows]="4" [formInput]="communityFb.get('description')" label="Description"></div>-->
|
|
34 |
|
|
35 |
<div class="uk-width-1-1">
|
|
36 |
<div class="uk-text-bold uk-form-label uk-margin-small-bottom">Description</div>
|
|
37 |
<div class="uk-margin-bottom uk-form-hint">The description of the community</div>
|
|
38 |
<ckeditor [readonly]="false"
|
|
39 |
debounce="500"
|
|
40 |
[formControl]="communityFb.get('description')"
|
|
41 |
[config]="{ extraAllowedContent: '* [uk-*](*) ; span', disallowedContent: 'script; *[on*]',
|
|
42 |
removeButtons: 'Save,NewPage,DocProps,Preview,Print,' +
|
|
43 |
'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,' +
|
|
44 |
'CreateDiv,Flash,PageBreak,' +
|
|
45 |
'Subscript,Superscript,Anchor,Smiley,Iframe,Styles,Font,About,Language',
|
|
46 |
extraPlugins: 'divarea'}">
|
|
47 |
</ckeditor>
|
|
48 |
</div>
|
|
49 |
|
34 |
50 |
<input #file id="photo" type="file" class="uk-hidden" (change)="fileChangeEvent($event)"/>
|
35 |
51 |
<div dashboard-input class="uk-width-1-1" type="logoURL" [hideControl]="communityFb.get('isUpload').value" flex="top"
|
36 |
52 |
hint="Upload or link the logo of the community." [placeholder]="'Write link to the logo'"
|
[new-UI | Admin]:
1. edit-community.module.ts: Imported "CKEditorModule".
2. edit-community.component.ts: Replaced input of description with ckeditor.