All Projects → aghontpi → dnde

aghontpi / dnde

Licence: GPL-3.0 license
Drag and drop react email editor

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to dnde

easy-email
React.js Drag-and-Drop Email Editor based on MJML. Transform structured JSON data into major email clients compatible HTML. Written in Typescript and supported both in browser and Node.js.
Stars: ✭ 449 (+1348.39%)
Mutual labels:  drag-and-drop, email-template, email-editor, react-email-component, react-email
email-editor
Email Editor to embed in your SaaS application. Fully customizable and lightweight.
Stars: ✭ 28 (-9.68%)
Mutual labels:  drag-and-drop, email-editor, react-email-component, react-email-editor
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+10000%)
Mutual labels:  drag-and-drop, email-template, email-editor
Vue Email Editor
Drag-n-Drop Email Editor Component for Vue.js
Stars: ✭ 166 (+435.48%)
Mutual labels:  drag-and-drop, email-template
solid-dnd
A lightweight, performant, extensible drag and drop toolkit for Solid JS.
Stars: ✭ 251 (+709.68%)
Mutual labels:  drag-and-drop
ngx-sortable
ngx-sortable is an angular sortable list components that support drag and drop sorting
Stars: ✭ 19 (-38.71%)
Mutual labels:  drag-and-drop
smaller-sites
Smaller Sites is a small BUT Powerful, free and easy to use drag and drop builder for blogs, websites or e-commerce stores. Designed for everyone Developers and non Developers. You can use it to design your next website. The goal is to create something like webflow
Stars: ✭ 27 (-12.9%)
Mutual labels:  drag-and-drop
DragDropiOS
DragDropiOS is a drag and drop manager on iOS. It supports drag and drop with in one or more classes extends UIView. This library contains UICollectionView and UITableView that implenment of drag and drop manager.
Stars: ✭ 71 (+129.03%)
Mutual labels:  drag-and-drop
UI-Builder
UI Builder to generate html pages automatically
Stars: ✭ 33 (+6.45%)
Mutual labels:  drag-and-drop
ng2-gridstack
A gridstack component for Angular2+
Stars: ✭ 12 (-61.29%)
Mutual labels:  drag-and-drop
react-table-hoc-draggable-columns
ReactTable HOC for draggable columns
Stars: ✭ 27 (-12.9%)
Mutual labels:  drag-and-drop
builder
Visual Composer Website Builder is a drag and drop editor for WordPress.
Stars: ✭ 64 (+106.45%)
Mutual labels:  drag-and-drop
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-45.16%)
Mutual labels:  drag-and-drop
react-magic-dropzone
✨Magically drag and drop files/links for uploading
Stars: ✭ 11 (-64.52%)
Mutual labels:  drag-and-drop
ngx-drag-and-drop-lists
Angular drag and drop component for lists
Stars: ✭ 47 (+51.61%)
Mutual labels:  drag-and-drop
orderable stack
A Flutter orderable stack widget
Stars: ✭ 83 (+167.74%)
Mutual labels:  drag-and-drop
PTXQC
A Quality Control (QC) pipeline for Proteomics (PTX) results generated by MaxQuant
Stars: ✭ 34 (+9.68%)
Mutual labels:  drag-and-drop
robot-email-template
Email template for Robot Framework test results
Stars: ✭ 19 (-38.71%)
Mutual labels:  email-template
mjml-server
MJML wrapped in Express for use over HTTP
Stars: ✭ 31 (+0%)
Mutual labels:  email-template
react-drop-n-crop
An opinionated implementation of react-dropzone and react-cropper
Stars: ✭ 17 (-45.16%)
Mutual labels:  drag-and-drop



Drag and Drop E-mail Editor

release npm license

screens / live demo here

Installation

# Yarn
yarn add dnd-email-editor

# NPM
npm install dnd-email-editor

What's included

Props that can be passed to the component:

Prop Type Default Optional Description
preview boolean true true show/hide the inbuilt preview button.
showUndoRedo boolean true true show/hide the inbuilt undo/redo button.

You can create your own undoredo functionality with undoredo from api methods below

Editor exposes these api methods

  • getHtml - export the design as html content
  • getJson - export as json string, this string can then be used with loadJson
  • loadJson - load an existing design from json string
  • undoredo - undo and redo actions

Usage

  • Importing
import Editor from 'dnd-email-editor';

return <Editor />;
  • Setup a ref using useRef and pass it to editor
const ref = React.useRef(null);

return <Editor ref={ref} />;
  • Using getHtml(), getJson(), loadJson(), undoredo
const logValues = () => {
  if (ref.current) {
    const html = ref.current.getHtml();
    const json = ref.current.getJson();
    console.log(html, json);
  }
};

const loadJson = (json: string) => {
  if (ref.current) {
    ref.current.loadJson(json);
  }
};

const performUndoAction = () => {
  if (ref.current) {
    ref.current.undoActionCallback();

    // to check if undo is possible
    console.log('is undo empty: ', ref.current.isUndoEmpty());
  }
};

const performRedoAction = () => {
  if (ref.current) {
    ref.current.redoActionCallback();

    // to check if redo is possible
    console.log('is redo empty: ', ref.current.isRedoEmpty());
  }
};
  • Typescript

Inorder to use typescript and get cool definitions, just pass the type to the ref

import Editor from 'dnd-email-editor';

const ExampleComponent = () => {

- const ref = useRef(null);
+ const ref = useRef<Editor>(null);

  return (
    <Editor ref={ref}/>
  );

}

Purpose

There are soo many drag and drop editors that helps in creating website but not mails, because mails differ a lot from a normal html webpage

  • even if there are mail editors available, they are paid and not open-source.

One such example would be unlayer, It claims to be opensource but its not.

  • Looking at their source code, they only provide their loader-script and call it as open-source
  • later they ask you to pay for its features.

the above reasons and also I was inspired by drag-n-drop editors in general, so I decided to make one.

Features

  • Responsive and mobile friendly emails
  • Design emails by drag and drop
  • Import/Export designs
    • Export/Import as JSON
    • Export as HTML
  • Manage Fonts
    • add custom fonts
    • list / add/ deletefonts
  • Go back and forth with Undo / Redo
  • Preview the design in the browser (Mobile & PC)

Built with

Inspired by

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].