Skip to content

Plug-in for CLEditor. Allows to download and use the downloaded pictures.

Notifications You must be signed in to change notification settings

zepernick/cleditor-imageupload-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#cleditor-imageupload-plugin

This is simple plug-in for CLEditor simple, lightweight jQuery plugin (WYSIWYG editor).

This plugin allows to download and use the downloaded pictures.

##Usage:

Add to your .html file next several lines.

to "<head>" path:

	<link rel="stylesheet" media="screen" href="css/bootstrap.css"/>	
	<link rel="stylesheet" href="js/cleditor/jquery.cleditor.css" type="text/css">

	<script type="text/javascript" src="js/jquery-{version}.js"></script>	
	<script type="text/javascript" src="js/cleditor/jquery.cleditor.js"></script>
	<script type="text/javascript" src="js/cleditor-imageupload-plugin.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			// Url for file upload 
			$.cleditor.buttons.image.uploadUrl = 'image-upload.html';
			// Url for images list
			$.cleditor.buttons.image.imageListUrl = 'image-list.json';
	
			$.cleditor.defaultOptions.width = 600;
			$.cleditor.defaultOptions.height = 300;
			$("#input").cleditor();
     });
   </script>

to "<body>" path:

	<textarea id="input" name="input"></textarea>	
	<script src="js/bootstrap.min.js"></script>	

About

Plug-in for CLEditor. Allows to download and use the downloaded pictures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published