Code Monkey home page Code Monkey logo

wyswyg's Introduction

WYSWYG

Simple Text Editor for MVC C# with Image

Integration of Summernote WYSWYG Editor with MVC C#

Features :

WYSWYG - What You See What You get Editor

#Image Upload Feature

No need of multiple columns of data

#Image is stored as base 64 txt

Credits To : http://summernote.org/ http://www.haneefputtur.com/

Steps for installation

Create this model

public class News { public string Title { get; set; } [AllowHtml] public string Content { get; set; }

    }

Copy the folder Summernote to Scripts folder

Include these references in the view where you need the editor

<script src="~/Scripts/summernote/summernote.js"></script>

Note That Jquery references in Layout file is moved above header so that jquery is included before summernote.

Add below script to the image for initializing

<script> //$(document).ready(function () { // $('#Content').summernote(); //}); $('#Content').summernote({ height: 300, // set editor height minHeight: null, // set minimum height of editor maxHeight: null, // set maximum height of editor focus: true // set focus to editable area after initializing summernote }); </script>

For any suggestion on improvements please reach me at [email protected]

wyswyg's People

Stargazers

 avatar

Watchers

 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.