April 24, 2016 in Technical Problems
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?
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.
Oh! I have the source button, but didn't realize I had to do the Can use HTML permission. Thank you!
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.
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?
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.
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.
This topic is now archived and is closed to further replies.
Started 22 minutes ago
Started June 27, 2021
Started Friday at 01:29 AM