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

feat:rich textbox type form element implementation #19

Open
wants to merge 1 commit into
base: release-1.0.0
Choose a base branch
from

Conversation

harshilshah99
Copy link

This pull request makes the following changes

Goals

  • Create an interface for the base form object.
  • Install Angular Material as the dependency for the library.
  • As per the reference implementation, convert the code to handle the angular material input component.
  • Implement test cases for the component.
  • Prepare proper documentation for the implementation.

Implementation

Used a npm library @kolkov/angular-editor for rich text box type form

npm i @kolkov/angular-editor
npm i angular-font-awesome

Screenshot 2024-04-17 231235
Screenshot 2024-04-17 231213

Setting up config for the editor in the app.conmponent.spec.data.ts

config: {
        editable: true,
        spellcheck: true,
        height: '15rem',
        minHeight: '5rem',
        placeholder: 'Enter text...',
        translate: 'no',
        defaultParagraphSeparator: 'p',
        defaultFontName: 'Arial',
        toolbarHiddenButtons: [
          [
            'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull', 'strikeThrough', 'subscript', 'superscript', 'indent', 'outdent', 'undo', 'redo',
          ],
          [
            'fontSize', 'textColor', 'backgroundColor', 'customClasses', 'link', 'unlink', 'insertVideo', 'insertHorizontalRule', 'removeFormat', 'toggleEditorMode',
          ],
        ]
      },

GSuma21 pushed a commit to GSuma21/frontend-utils-library that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant