Skip to content

A tinyMCE plugin for transforming <img> width from px to percent

License

Notifications You must be signed in to change notification settings

ekoneko/tinymce-plugin-responsive-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinymce-plugin-responsive-image

A tinyMCE plugin for transforming <img> width from px to percent.

Insert an image to tinyMCE and resize the img's size. It will save and support img's width attribute as percent format.

install

npm install tinymce-plugin-responsive-image

usage

import

You can import the plugin easily as commonjs / es6 modules. (with tsc, webpack, etc)

import 'tinymce-plugin-responsive-image'
require('tinymce-plugin-responsive-image')

Also, you can use some tools like gulp or grunt to copy lib/index.js to anywhere you can visit by browser.

Of course, you can Ctrl + C Ctrl +V by yourself.

setup

window.tinyMCE.init({
    plugins: ['responsiveImage', /* and other plugins */]
});

About

A tinyMCE plugin for transforming <img> width from px to percent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published