Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #6456

Merged
merged 2 commits into from
Jul 1, 2023
Merged

Release #6456

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading