Coder Social home page Coder Social logo

bigbinary / neeto-editor Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 1.0 7.19 MB

Home Page: https://neeto-editor.neeto.com

License: MIT License

HTML 0.74% JavaScript 73.03% Shell 0.60% SCSS 12.98% Procfile 0.01% MDX 12.65%
mentions prosemirror react reactjs rich-text-editor rte slash-commands tiptap tiptap-editor

neeto-editor's Introduction

The neetoEditor library drives the rich text experience in the neeto products built at BigBinary.

Installation

yarn add @bigbinary/neeto-editor

For setting up image upload refer https://neeto-editor.neeto.com/?path=/docs/examples-customize-options-addons--addons.

Instructions for development

Install all the dependencies by executing following command.

yarn

Running the yarn storybook command starts a storybook application. Use this application to test out changes.

When developing frontend packages, it's crucial to test changes in a live environment using a host application. There are two ways to do this:

  1. Using yalc package manager: https://youtu.be/F4zZFnrNTq8

Note: If you are using yalc, you need to run yarn bundle after making changes to the package instead of yarn build which is described in the video.

  1. Directly updating the node_modules of the host application.

    1. Start the host application server

    2. Inside the package, execute the command:

        yarn bundle --watch --app ../neeto-site-web
      

      Here replace ../neeto-site-web with path to the host project.

      Now, any changes made to the neetoEditor codebase will be instantly reflected in the UI.

    3. Remove local installation

      Run the following command to reset to the initial state.

      yarn install --check-files
      
    4. Translation File Changes (optional)

      Modifications in the neeto-editor translation files will not automatically update the UI. To verify these changes, update your neeto-site-web/app/javascript/packs/application.js file with the following code:

      import en from "translations/en.json";
      
      import editorEn from "neetofilters/app/javascript/src/translations/en.json";
      
      import { mergeDeepLeft } from "ramda";
      
      initializeApplication({
        translationResources: { en: { translation: mergeDeepLeft(editorEn, en) } },
      });
      

Instructions for Publishing

Package Release Process

A package is released upon merging a PR labeled as patch, minor, or major into the main branch. The patch label addresses bug fixes, minor signifies the addition of new features, and major denotes breaking changes, adhering to the principles outlined in Semantic Versioning (SemVer).

You can checkout the Create and publish releases workflow in GitHub Actions to get a live update.

Manual Package Publishing

If you missed adding the label, you can manually publish the package. For that first, you need to create a PR to update the version number in the package.json file and merge it into the main branch. After merging the PR, you need to create a new GitHub release from the main branch. Whenever a new release is created with a new version number, the GitHub actions will automatically publish the built package to npm. You can check out the Publish to npm workflow in GitHub Actions to get a live update.

Note: before publishing the package, you must verify the functionality in host application locally.

Documentation

Read the docs here: https://neeto-editor.neeto.com.

neeto-editor's People

Contributors

abhayvashokan avatar akhilxavier95 avatar amaldinesh7 avatar amaljith-k avatar calvinchiramal avatar deepakjosp avatar edwinbbu avatar gaagul avatar ghousemohamed avatar goutham-subramanyam avatar imgbot[bot] avatar jagannathbhat avatar josephmathew900 avatar karthiknmenon avatar krishnapriyaskk avatar labeebklatif avatar mohit-s96 avatar mohitharshan123 avatar neenu-chacko avatar neerajsingh0101 avatar philson-philip avatar praveen-murali-ind avatar roshanrajeev avatar soorajjtk avatar sreehari2003 avatar sritabh avatar sruthy-j-mallya avatar thomas-mathai avatar udai1931 avatar vinay0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

patelmilanun

neeto-editor's Issues

Remove tailwind from package

We are using tailwind just to style the slash menu and a few other things. We could use custom SCSS there and get rid of tailwindCSS from the package.

enhancement _t

Remove the wrapper for the editor output

Removing the wrapper div with class name tiptap-content since it creates coupling with the output provided. The class name tiptap-content will be renamed to neeto-editor-content and has to wrap the output the with this class name, will update documentation mentioning the same

@amaldinesh7 _a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.