Skip to content
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 to latest TinyMCE #4699

Closed
stennie opened this issue Jul 7, 2018 · 6 comments
Closed

Upgrade to latest TinyMCE #4699

stennie opened this issue Jul 7, 2018 · 6 comments

Comments

@stennie
Copy link
Contributor

stennie commented Jul 7, 2018

Keystone currently vendors TinyMCE 4.4.3 (2016-09-01) with some customisations. There have been a number of fixes and improvements since then: https://www.tinymce.com/docs/changelog/.

Check that uploadimage plugin (#4232, #4531, #4616) is also included.

@gautamsi
Copy link
Member

gautamsi commented Jul 27, 2018

anyone working on this? I can volunteer.

@stennie
Copy link
Contributor Author

stennie commented Jul 27, 2018

@gautamsi Any open & unassigned issues with the help wanted label are up for grabs. No one is working on this yet, so thanks for volunteering!

There is a related suggestion to consider: move the bundled dependency to its own npm package: #2456. Do you want to look into feasibility of that approach?

Thanks,
Stennie

@gautamsi
Copy link
Member

in my initial testing, I think it would be best if we remove the tinymce files from keystone repo and use it from npm package using require.resolve. We can also move the keystone skin to its own package and then properly make express route for keystone skin.

@gautamsi
Copy link
Member

I am able to make this work with latest tinymce, moved keystone skin and uploadimage plugin to separate repo named keystone-tinymce (locally). this is achieved by adding following lines to createStaticRouter.js

router.use('/js/lib/tinymce', express.static(path.dirname(require.resolve('tinymce'))));
var keystone_tinymce = path.dirname(require.resolve('keystone-tinymce'));
router.use('/js/lib/tinymce/skins/keystone', express.static(`${keystone_tinymce}/skin`));
router.use('/js/lib/tinymce/plugins/uploadimage', 
express.static(`${keystone_tinymce}/plugins/uploadimage`));

@stennie
should I create my package as keystone-tinymce on npm or better you create this repo and let me push to that repo, and publish npm package.

@icdindia
Copy link

icdindia commented Aug 27, 2018

a few of the icons that belong to the new TinyMCE are not working in the Keystone backend. e.g. redo undo buttons.

Any hotfix for this at the moment?

UPDATE:
'wysiwyg skin': 'lightgray', fixes the issue.
Apparently the font for undo n redo is missing from Keystone style for TinyMCE (default)

@gautamsi
Copy link
Member

Closed by #4897

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

No branches or pull requests

3 participants