Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AutoItScript Posted April 4, 2015 Posted April 4, 2015 The code editor in IPB only has a drop down for HTML/PHP/CS/JS (why oh why do you never put the most useful one of plain text in there??)From reading the docs on CKEditor and it looks like I should be able to add other supported languages you just need to add something like this to ckeditor\config.js/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig=function(a){a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name$ a.removeDialogTabs="link:advanced"; a.pbckcode = { modes : [ ['TEXT', 'text'], ['HTML', 'html'], ['CSS', 'css'], ['PHP', 'php'], ['JS', 'javascript'] ], }; };But this doesn't seem to do anything. Is this the correct approach or has something been done in IPB4 that needs a different method?
Nathan Explosion Posted April 4, 2015 Posted April 4, 2015 Replace it (not sure if code snippet has a plain text option though)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.