GithubHelp home page GithubHelp logo

fucora / htmleditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanxiao-github/htmleditor

0.0 1.0 0.0 3.24 MB

html可视化在线报告编辑器

CSS 6.63% HTML 5.63% JavaScript 86.55% PHP 1.18%

htmleditor's Introduction

HTML5可视化编辑器

介绍

在项目中为了更方便地生成报告的html页面,开发了一个可视化生成html的工具。可通过拖动相应组件到预览框中,自动生成html代码

构成

html界面、drag.js中实现拖拽函数、预览及下载html代码

drag.js 拖拽函数

  1. 监听 dragstart 事件,判断拖动块的类型
  2. 监听 drop 事件,不同模块拖入时添加相应代码模板
  3. 对于 text 文本模块来说,通过ueditor模块来编辑文字格式

下载

  1. 取到容器中的代码
  2. 添加 html 的头部及尾部

预览

预览图

htmleditor's People

Watchers

James Cloos avatar

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.