Image centering & float

This example shows how to position images left, right or center using the Image position plugin.

Code

<!DOCTYPE html>
<html>
<head>
    <title>Redactor X</title>
    <meta charset="utf-8">

    <!-- css -->
    <link rel="stylesheet" href="/your-dist-path/redactorx.min.css" />
</head>
<body>
    <!-- element -->
    <textarea id="entry">
        <p>Content</p>
    </textarea>

    <!-- js -->
    <script src="/your-dist-path/redactorx.min.js"></script>
    <script src="/your-dist-path/plugins/imageposition.js"></script>

    <!-- call -->
    <script>
    RedactorX('#entry', {
        plugins: ['imageposition']
    });
    </script>
</body>
</html>