Skip to content

Redactor plugin for adding feature image using redactor image modal

License

Notifications You must be signed in to change notification settings

sakp/redactor-featureimage-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redactor feature image plugin

Redactor plugin for adding feature image using redactor image modal

Usage

JavaScript

$('#redactor').redactor({
    imageUpload: '/administrator/uploads',
    plugins: ['featureimage'],
	
	featureimage: {
		/* feature image link */
		linkSelector: '.redactor-featureimage'
		/* set preview area */
		previewSelector: '.feature-image-preview', 

		/* set input area */
		inputSelector: '.feature-image-input',
	}
});

HTML

<div class="feature-image-container">
	<div class="feature-image-preview"><!-- saved feature image --></div>
	<div class="feature-image-link"><a href="#" class="redactor-featureimage">Set feature image</a></div>
	<input type="hidden" name="featureimage" class="feature-image-input">
</div>

About

Redactor plugin for adding feature image using redactor image modal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published