Giter Club home page Giter Club logo

ueditor's Introduction

#Node.js : ueditor

UEditor 官方支持的版本有PHP JSP ASP .NET.

ueditor for nodejs 可以让你的UEditor支持nodejs

###[email protected]以及更高版本,支持图片上传,图片批量管理等

##Installation

 npm install ueditor --save

##Usage

使用时你需要

var ueditor = require("ueditor")
/*

  ...

*/
ueditor(app, config_json_url, router_path, static_dir, visit_dir_path)

#####1 app=express();

#####2 你的config_json 文件的存放路径

#####3 router_path=>如果ueditor.config.js 的配置为:

  UEDITOR_HOME_URL: URL

. 那么,相应

var router_path="/"

#####4

var static_dir=path.join(__dirname, 'public')

#####5 visit_dir_path 您要保存图片的文件夹路径 ##Example

var ueditor=require('ueditor');

 /*
 ueditor(app, config_json_url, router_path, static_dir, visit_dir_path)
 
 
 1 app => var app = express();
 
 2 config_json_url => config.json  //you can find this in the UEditor demo
 
 3 router_path => you should edit 'ueditor.config.js' in the UEditor demo
 
  example : 
   open the file ueditor.config.js
   if  you edit => UEDITOR_HOME_URL: URL
   the router_path should be  "/"
 ----------------------------------------
 4 static_dir => path.join(__dirname, 'public')
 
 5 visit_dir_path => visit_dir_path is your img visit path 
 */

// like this
ueditor(app,"/ueditor/config.json","/",path.join(__dirname, 'public'),"/upload")

###浏览器端配置参考参考UEditor

[email protected]

ueditor's People

Contributors

netpi avatar

Watchers

James Cloos avatar Shaw Yan 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.