-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade CMS5 to use TinyMCE6 #10369
Comments
@GuySartorelli will have an initial look at to what has changed between TinyMCE 4 and 6. |
Had a bit of a look around and a play. Download options
Upgrade pathThere is docs for upgrading from 4 to 5, and from 5 to 6. We can use those to figure out what has been deprecated or removed from 4 to 6. The following are things I know we'll have to make changes for:
|
@silverstripe/core-team Existing behaviour
Proposed new behaviour
Reasoning
|
This seems like a good change to me. As I understand it, this would only have an effect on end users when clicking the "view source" button, which is itself is probably a fairly narrow use case for a content editor. The fact they're seeing shortcodes instead of html tag does seem like it's that big of a deal. They can still see what's going on. As a developer this is improvement as what's I see when I click "view source" is closer to what's in the database. I also like that fact we'd be removing some "duplicate yet different" conversion logic |
To be clear, the conversion logic is still going to be there - it's necessary for the visual WYSIWYG editor to display the image or embed placeholder. It's just that the dummy HTML markup will only be used inside the visual editor where before it was used anywhere tinymce used the markup. |
I’m fine with this change. In TinyMCE 4, if you view source and edit the “HTML” for a shortcode (that is, the placeholder HTML) then presumably you’ll lose any edits anyway? As an aside, how flexible/“pluggable” is the placeholder conversion logic? We sometimes override shortcodes to change how they’re rendered on the frontend, it’d be great to be able to update the placeholder conversion logic so the visual representation is closer to the rendered content. |
Depends what the edits are. The image shortcode will accept any attributes you add to it - that will be the case in its shortcode syntax form as well. The embed shortcode won't, though, so edits on the temp-markup for that would be mostly lost.
I don't think it would be possible to extend or replace it with your own conversion logic with the way it's written at the moment. Check out the |
Acceptance criteria
Skin is replicatedSee Create tinymce6 skin to match the old tinymce4 one silverstripe-admin#1366Note
PRs
Fix PRs
The text was updated successfully, but these errors were encountered: