ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.33k stars 3.68k forks source link

Migrating data from CKEditor 4 to CKEditor 5 is causing multiple issues for multiple plugins #14576

Closed ashishforgrz closed 3 weeks ago

ashishforgrz commented 1 year ago

I am trying to migrate my CKEditor 4 data to CKEditor 5 which is not easy task. I am not able to understand that why do had to complicate the process for our own previous version. Every rich text editor's output should be visible in normal HTML viewer which was the case for CKEditor 4 but not now. Example:-

<table border="1" style="width: 500px;">
    <tbody>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>

Above HTML is from CKEditor 4

<figure class="table">
    <table>
        <tbody>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </tbody>
    </table>
</figure>

THe above HTML is from CKEditor 4.

The HTML from CKEditor 4 is exactly viewable in CKEditor 5 but not for the opposite case. Is there any way to support CKEditor 5 table format in CKEditor 4 and normal HTML viewer as it is the basic use case of rich text editor that the HTML it produce should be compatible with normal HTML viewer. Is there any way to ditch

in this case? @Inviz @huacnlee @tomalec @tony @tplaner Also your documentation for adding custom plugin is complicated, i want to add a custom button on CKEditor 5 build and it's complicated which was not the case for CKEditor 4

Witoso commented 1 year ago

As our docs mention:

When compared to its predecessor, CKEditor 5 should be considered a totally new editor. Every single aspect of it was redesigned — from installation, to integration, to features, to its data model, and finally to its API. Therefore, moving applications using a previous CKEditor version to version 5 cannot be simply called an “upgrade”. It is something bigger, so the “migration” term fits better.

Please read our migration document in the above link.

I'm not exactly sure what you're asking about:

Is there any way to support CKEditor 5 table format in CKEditor 4 and normal HTML viewer as it is the basic use case of rich text editor that the HTML it produce should be compatible with normal HTML viewer.

I think some versions are mixed in the questions above. Moreover, please don't tag random community members, they are out of context, and may not be able to help.

CKEditorBot commented 1 month ago

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot commented 3 weeks ago

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).