[Deprecated] Set CKEditor as the default WYSIWIYG editor
Last modified by Gabriela Anechitoaei on 2022/05/03 09:29
Steps to reproduce
- Go to Administer Wiki
- Click on Add Extensions
- Install CKEditor
- With Admin user access this page http://127.0.0.1:8080/xwiki/bin/edit/CKEditor/EditMenuEntry?editor=object
- Change the actual code with the code from below
require(['jquery'], function($) {
$('#tmEdit > a, a#tmEditDefault').attr('href', function(index, url) {
return url + (url.indexOf('?') < 0 ? '?' : '&') + 'editor=inline&sheet=CKEditor.EditSheet';
});
$('a#tmEditWysiwyg').attr('href', function(index, url) {
return url.replace('editor=wysiwyg', 'editor=inline&sheet=CKEditor.EditSheet');
});
});
$('#tmEdit > a, a#tmEditDefault').attr('href', function(index, url) {
return url + (url.indexOf('?') < 0 ? '?' : '&') + 'editor=inline&sheet=CKEditor.EditSheet';
});
$('a#tmEditWysiwyg').attr('href', function(index, url) {
return url.replace('editor=wysiwyg', 'editor=inline&sheet=CKEditor.EditSheet');
});
});
- Click on Save&View
- Create a simple user (U1)
- Clear you cache
- With U1 try to edit some pages
For more information about CKEditor access this page http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
Expected results
CKEditor is now the default WYSIWYG Editor.