How to use ngx-quill - 10 common examples

To help you get started, we’ve selected a few ngx-quill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Robinyo / serendipity / projects / sales / src / lib / sales.module.ts View on Github external
//
// LibRoutingModule: https://angular.io/guide/router#routing-module-order
//

// import { LibRoutingModule } from './lib-routing.module';
import { LazyLibRoutingModule } from './lazy-lib-routing.module';

@NgModule({
  imports: [
    AngularMaterialModule,
    CommonModule,
    DashboardModule,
    // DragDropModule,
    FlexLayoutModule,
    FlowableModule,
    QuillModule.forRoot({
      placeholder: ''
    }),
    ReactiveFormsModule,
    TranslateModule.forChild(),
    UtilsModule,
    SerendipityComponentsModule,
    DynamicFormsModule,

    // https://angular.io/guide/router#routing-module-order
    // LibRoutingModule
    LazyLibRoutingModule
  ],
  declarations: [
    AccountComponent,
    AccountsComponent,
    ActivitiesComponent,
github phucan1108 / letportal / src / web-portal / src / app / modules / portal / modules / render / portal-render.module.ts View on Github external
MatExpansionModule,
		MatDividerModule,
		MatSortModule,
		MatStepperModule,
		MatChipsModule,
		MatPaginatorModule,
		MatDialogModule,
		MatRadioModule,
		MatTreeModule,
		DragDropModule,
		MomentumTableModule,
		ScrollDispatchModule,
		MatMomentDateModule,
		NgJsonEditorModule,
		MatProgressButtonsModule,
		QuillModule.forRoot({
            modules: {
                syntax: true,
                toolbar: [
                    ['bold', 'italic', 'underline', 'strike'],
                    [{ header: [1, 2, 3, 4, 5, 6, false] }],
                    [{ list: 'ordered' }, { list: 'bullet' }],
                    [{ script: 'sub' }, { script: 'super' }],
                    [{ indent: '-1' }, { indent: '+1' }],
                    ['link', 'image']
                ]
            }
		}),
		NgxChartsModule,
		AngularMarkdownEditorModule.forRoot(),
		MarkdownModule.forRoot()
	],
github phucan1108 / letportal / src / web-portal / src / app / modules / portal / modules / builder / portal-builder.module.ts View on Github external
MatExpansionModule,
		MatDividerModule,
		MatSortModule,
		MatStepperModule,
		MatChipsModule,
		MatPaginatorModule,
		MatDialogModule,
		MatRadioModule,
		MatTreeModule,
		NgJsonEditorModule,
		DragDropModule,
		MomentumTableModule,
		ScrollDispatchModule,
		MatMomentDateModule,
		MatProgressButtonsModule,
		QuillModule.forRoot({
			modules: {
				syntax: true,
				toolbar: [
					['bold', 'italic', 'underline', 'strike'],
					[{ header: [1, 2, 3, 4, 5, 6, false] }],
					[{ list: 'ordered' }, { list: 'bullet' }],
					[{ script: 'sub' }, { script: 'super' }],
					[{ indent: '-1' }, { indent: '+1' }],
					['link', 'image']
				]
			}
		}),
		HighlightModule
	],
	entryComponents: [
		CommandModalComponent,
github Uintra / Uintra / src / Uintra20 / Content / src / app / feature / reusable / inputs / rich-text-editor / rich-text-editor.module.ts View on Github external
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RichTextEditorComponent } from './rich-text-editor.component';
import { QuillModule, QUILL_CONFIG_TOKEN, QuillConfig } from 'ngx-quill';
import { FormsModule } from '@angular/forms';
import { RichTextEditorEmojiComponent } from './rich-text-editor-emoji/rich-text-editor-emoji.component';
import { ClickOutsideModule } from 'src/app/shared/directives/click-outside/click-outside.module';

@NgModule({
  declarations: [RichTextEditorComponent, RichTextEditorEmojiComponent],
  imports: [
    CommonModule,
    FormsModule,
    ClickOutsideModule,
    QuillModule.forRoot(),
  ],
  exports: [
    RichTextEditorComponent
  ]
})
export class RichTextEditorModule {
  static configure(config: QuillConfig): ModuleWithProviders  {
    return {
      ngModule: RichTextEditorModule,
      providers: [
        { provide: QUILL_CONFIG_TOKEN, useValue: config }
      ]
    };
  }
}
github ManyDesigns / Portofino / demo-tt / src / main / frontend / src / app / app.module.ts View on Github external
})
export class DemoTTAppComponent {}

@NgModule({
  declarations: [DemoTTAppComponent, HelloPortofino, CustomNavigation, WelcomeComponent, CustomCrud, CustomSearch],
  providers: [
    { provide: NAVIGATION_COMPONENT, useFactory: DemoTTAppModule.navigation },
  ],
  imports: [
    PortofinoModule.withRoutes([{ path: "hello", component: HelloPortofino }]), PortofinoUpstairsModule,
    BrowserModule, BrowserAnimationsModule, FlexLayoutModule, FormsModule, HttpClientModule, ReactiveFormsModule,
    MatAutocompleteModule, MatButtonModule, MatCardModule, MatCheckboxModule, MatDatepickerModule, MatDialogModule,
    MatDividerModule, MatExpansionModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule,
    MatPaginatorModule, MatProgressBarModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSnackBarModule,
    MatSortModule, MatTableModule, MatTreeModule, MatToolbarModule, MatMomentDateModule, ScrollingModule,
    FileInputAccessorModule, NgxdModule, QuillModule.forRoot(),
    TranslateModule.forRoot()],
  entryComponents: [ CustomNavigation, WelcomeComponent, CustomCrud, CustomSearch ],
  bootstrap: [DemoTTAppComponent]
})
export class DemoTTAppModule {
  static navigation() {
    return DefaultNavigationComponent
    //return CustomNavigation
  }
}
github ManyDesigns / Portofino / portofino-war-archetype / src / main / resources / archetype-resources / src / main / frontend / src / app / app.module.ts View on Github external
`
})
@PortofinoComponent({ name: 'welcome' })
export class WelcomeComponent extends Page {}

@NgModule({
  declarations: [AppComponent, WelcomeComponent],
  providers: [],
  imports: [
    PortofinoModule.withRoutes([]), PortofinoUpstairsModule,
    BrowserModule, BrowserAnimationsModule, FlexLayoutModule, FormsModule, HttpClientModule, ReactiveFormsModule,
    MatAutocompleteModule, MatButtonModule, MatCheckboxModule, MatDatepickerModule, MatDialogModule, MatFormFieldModule,
    MatIconModule, MatInputModule, MatMenuModule, MatPaginatorModule, MatRadioModule, MatSelectModule, MatSidenavModule,
    MatSnackBarModule, MatSortModule, MatTableModule, MatToolbarModule, MatMomentDateModule,
    FileInputAccessorModule, QuillModule.forRoot(), TranslateModule.forRoot()],
  entryComponents: [WelcomeComponent],
  bootstrap: [AppComponent]
})
export class AppModule {}
github Ricbet / panel-magic / src / app / panel-extend / panel-widget-details / panel-widget-details.module.ts View on Github external
import { QuillModule } from "ngx-quill";

import { panelWidgetUnitSiteList, panelWidgetUnitSiteModuleList } from "../panel-widget/all-widget-unit";
import { ShareModule } from "@ng-share";
import { environment } from "environments/environment";

@NgModule({
    imports: [
        CommonModule,
        ShareModule,
        DraggableModule,
        MyColorPickerModule,
        MousemoveoutModule,
        DragulaModule,
        NgxAmapModule.forRoot({ apiKey: environment.mapApiKey }),
        QuillModule.forRoot({
            modules: {
                toolbar: [
                    ["bold", "italic", "underline", "strike"],
                    ["blockquote", "code-block"],
                    [{ header: 1 }, { header: 2 }],
                    [{ list: "ordered" }, { list: "bullet" }],
                    [{ script: "sub" }, { script: "super" }],
                    [{ indent: "-1" }, { indent: "+1" }],
                    [{ direction: "rtl" }],
                    [{ size: ["small", false, "large", "huge"] }],
                    [{ header: [1, 2, 3, 4, 5, 6, false] }],
                    [{ color: [] }, { background: [] }],
                    [{ font: [] }],
                    [{ align: [] }],
                    ["clean"],
                    ["link", "image", "video"],
github KillerCodeMonkey / ngx-quill-example / src / app / default / default.components.spec.ts View on Github external
beforeEach(async(() => {

    TestBed.configureTestingModule({
      declarations: [ DefaultComponent ],
      imports: [FormsModule, QuillModule],
      providers: QuillModule.forRoot().providers
    }).compileComponents()
    fixture = TestBed.createComponent(DefaultComponent) as ComponentFixture
  }))
github Uintra / Uintra / src / Uintra20 / Content / project / src / app / app.module.ts View on Github external
imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    DynamicComponentLoaderModule.forRoot(dynamicComponents),
    SharedModule,
    CookieModule,
    TranslateModule.forRoot({
      loader: {
        provide: TranslateLoader,
        useClass: TranslationsLoader,
        deps: [HttpClient]
      }
    }),
    DrawerModule.forRoot(),
    QuillModule.forRoot()
  ],
  providers: [
    {
      provide: APP_INITIALIZER,
      useFactory: initSettings,
      deps: [RouteConfigService],
      multi: true
    },
    {
      provide: ErrorHandler,
      useClass: AppErrorHandler
    },
    {
      provide: AUTOSUGGEST_CONFIG,
      useValue: {endPoint: config.autoSuggestApi, page: 0, searchPageUrl: 'search-result-page'}
    }
github KillerCodeMonkey / ngx-quill-example / src / app / app.module.ts View on Github external
NoToolbarComponent,
    CustomToolbarComponent,
    FormatObjectComponent,
    FormatTextComponent,
    NoSanitizeHtmlComponent,
    FormatJsonComponent,
    FormatHtmlComponent,
    PreserveWhitespaceComponent,
    QuillApiEmbedComponent,
    ViewComponent,
    ViewHTMLComponent,
    ModelValidation
  ],
  imports: [
    BrowserModule,
    QuillModule.forRoot(),
    ChildModule,
    FormsModule,
    ReactiveFormsModule
  ],
  providers: []
})
export class AppModule { }

ngx-quill

Angular components for the easy use of the QuillJS richt text editor.

MIT
Latest version published 1 day ago

Package Health Score

86 / 100
Full package analysis

Popular ngx-quill functions