Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Hunter Lyons Posted April 24, 2016 Posted April 24, 2016 So I've tried using IPS syntax in the editor, conditional statements / columns and grid layouts, and I can't seem to get it to work. I think the ckeditor cuts out the code. Is there anyway I can get that to work?
Meddysong Posted April 24, 2016 Posted April 24, 2016 It will only work if you can enter HTML. You'll know if you can because the first button on the editor will be Source. If you don't have that, you'll need to set the permissions for Can use HTML? to Yes for your member group. Be warned, though, that this is potentially dangerous, so only use it with trusted groups, such as your admins.
Hunter Lyons Posted April 24, 2016 Author Posted April 24, 2016 Oh! I have the source button, but didn't realize I had to do the Can use HTML permission. Thank you!
Meddysong Posted April 24, 2016 Posted April 24, 2016 If you have the source button, then you've already set the permission. Are you clicking the source button and then entering the code? If not, that'll be why your code is getting stripped.
Hunter Lyons Posted April 24, 2016 Author Posted April 24, 2016 It's weird - I could see the source button and use it for some things (ie: I set some text to css classes I made in my custom.css), but I didn't have the permission set. I just checked and now the IPS syntax works after enabling the permission. But I also manually added the source button to my editor a while ago, so that may be why?
Meddysong Posted April 24, 2016 Posted April 24, 2016 Yes, that'll be why! The button appears automatically when you set the permission. I wasn't aware that it could be manually added; it would defeat the point of it if you didn't have permission to post HTML! I wonder whether that was a bug at some point.
Nathan Explosion Posted April 24, 2016 Posted April 24, 2016 The source plugin provided by IPS is via the 'ipssource' plugin, and the icon is displayed to those who have the 'Can use HTML?' permission which in turn allows the submission and back-end processing of that html based off that very permission (which gives you the functionality you require) The source plugin you added is either the ckeditor 'sourcearea' plugin (provides inline editing in the editor) or the 'sourcedialog' plugin (provides editing in a dialog box) which will appear on the editor if you've dragged it in to place after installing it. You'll be able to put html in to the editor and all that - but anything that isn't html is going to get stripped out (as you found) So.....if you still have the 'Source' icon, via the added plugin, displaying in the editor on the front-end then I suggest you remove it off the editors (drag it out) in the ACP so that you can use the correct permission option to allow html. No bug at all - the plugin was added, as can any ckeditor plugin, and it's got a different name to the existing already used plugin that IPS control.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.