Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

CroneKorkN/morrigan-jquery-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morrigan jQuery Editor

Morrigan Editor is jQuery WYSIWYG editor with predictable behavior, persistence and consistency.

Demo

To install Morrigan Editor:

$(function() {
  editor = $('#editor').morrigan_editor( {
    iframeStyles: '/iframe.css',
    imageUpload:'/image/create',
    width:'770px',
    height:'550px'
  } );
});

For Image Upload

Pass param imageUpload to init options:

  $('#editor').morrigan_editor( {
    //...
    imageUpload:'/image/create',
    //...
  } );

Params sending to server sample:

  • upload_img (with image) for file uploading
  • upload_url (with url) for image uploading by URL

Server response sample (for both cases):

  {data: "/url/to/image.jpeg"}

How to use

To get html from editor:

  editor.morrigan_editor('html');

To insert html to editor:

  editor.morrigan_editor('html', '<p>Your HTML</p>');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published