Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

84
Visualizações
Editor in Angular

I want to use editor through which a user can generate a html of the text and send it through api and once it created i also show the text , user can enter text and images. i try to used flora editor but in that i am not able to display the images as it converts the image path. i also try to used kolkovangular editor but through it i am not able to align the image i insert for example i want to align the image in center but i am not able to do it.

can somebody please suggest any free good editor or tell me how can i align a image in my text

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

you can try https://www.npmjs.com/package/ngx-quill I have s sample code for you https://stackblitz.com/edit/ngx-quill-example-fa6fzy?file=src%2Fapp%2Fapp.component.ts

<div [formGroup]="form">
  <quill-editor formControlName="text" (onSelectionChanged)="onSelectionChanged()">
  </quill-editor>
</div>

<div [innerHTML]="result"></div>

<button (click)="logForm()">Log</button>


import { Component } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';

import Quill from 'quill';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  form: FormGroup;
  result: string;
  quillConfig = {
    toolbar: {
      container: [
        ['bold', 'italic', 'underline', 'strike'],
        [{ size: ['xsmall', 'small', 'medium', 'large', 'xlarge'] }],
        [{ align: [] }],
        ['clean'],
        ['link']
      ]
    }
  };

  constructor() {}

  ngOnInit() {
    this.form = new FormGroup({
      text: new FormControl('<p><strong>Hello</strong> World!</p>')
    });
  }

  public onSelectionChanged(): void {
    this.result = this.form.get('text').value;
  }
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda