Skip to content

Commit

Permalink
Merge pull request #6456 from ever-co/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
evereq authored Jul 1, 2023
2 parents 022a705 + a0d73eb commit 95ecb88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ export class ApplyJobManuallyComponent extends TranslationBaseComponent implemen
const { employeeId, proposal, rate, details, attachments } = this.form.value;
const { providerCode, providerJobId } = this.employeeJobPost;

console.log(this.getPlainText());

/** Apply job post input */
const applyJobPost: IEmployeeJobApplication = {
applied: true,
Expand Down Expand Up @@ -416,6 +418,7 @@ export class ApplyJobManuallyComponent extends TranslationBaseComponent implemen
if (isNotEmpty(application)) {
// Replace line breaks with spaces
const proposal = application.proposal.replace(/\n\n/g, '<br/><br>').replace(/\n/g, '<br/>');
console.log(proposal);

// Set ckeditor html content
this.ckeditor.instance.document.getBody().setHtml(proposal);
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/employee-job/employee-job.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class EmployeeJobPostService {
private readonly employeeService: EmployeeService,
private readonly gauzyAIService: GauzyAIService,
private readonly countryService: CountryService
) {}
) { }

/**
* Updates job visibility
Expand Down Expand Up @@ -61,7 +61,7 @@ export class EmployeeJobPostService {
public async apply(input: IEmployeeJobApplication): Promise<IEmployeeJobApplicationAppliedResult> {
try {
const plainText = htmlToText(input.proposal, {
wordwrap: 120 // Specify the desired line width for word wrapping
wordwrap: false // Specify the desired line width for word wrapping
});
input.proposal = plainText;
} catch (error) {
Expand Down

0 comments on commit 95ecb88

Please sign in to comment.