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

Problems switching between ordered and unordered lists #51

Open
jpruiz114 opened this issue Apr 4, 2016 · 0 comments
Open

Problems switching between ordered and unordered lists #51

jpruiz114 opened this issue Apr 4, 2016 · 0 comments

Comments

@jpruiz114
Copy link

Hello, I'm using the latest version of the redactor library that can be found in your repo here:

https://github.com/asofter/yii2-imperavi-redactor/blob/master/assets/redactor.js

When you add some text to the editor, let's say for example:

aaaa
bbbb
cccc
dddd

... and then select it and decide to convert that text into an ordered list the first time you click the ordered list button you will get the ordered list, as expected, but if you click again that same button, you would expect the order list to disappear but that doesn't happen, what happens is that it becomes an unordered list.

Are you aware of this bug?

Do you have any ideas on how to implement a workaround?

I'm using the following code:

https://jsfiddle.net/jpruiz114/71uwpazo/

<!DOCTYPE html>
<html>
    <head>
        <title>Test 1</title>

        <meta charset="utf-8">

        <script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>

        <link rel="stylesheet" href="assets/redactor.css" />

        <script src="assets/redactor.js"></script>

        <script type="text/javascript">
            $(
                function() {
                    $('#content').redactor();
                }
            );
        </script>
    </head>

    <body>
        <textarea id="content" name="content"></textarea
    </body>
</html>

Thanks!

Edit 1:

I have tested with the version 10.2.5 Updated on October 1, 2015 and with the version 10.2.2 Updated on July 15, 2015 and the same behaviour happens.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant