Opened 9 years ago

Closed 9 years ago

#12653 closed Bug (invalid)


Reported by: jozhica Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Is there any option for shortcodes?

We want to update the existing site with salsforce and booking plug ins but the CkEditor is not allowing it as it outputs <p>[salesforce form="1"]</p>.

Site was custom build in 2010 and there's no version of the CkEditor listed, only Copyright (c) 2003-2011, CKSource - Frederico Knabben.

Change History (4)

comment:1 Changed 9 years ago by Jakub Ś

Status: newpending

Could you explain in plain and detaild descrition what exactly you expect from CKEditor.

The only shortcuts for CKE, I know about are these mentioned here:!/api/CKEDITOR.config-cfg-keystrokes.

If you want to use some custom HTML that is not registered to ACF and which CKEditor removes then you shuld checkout ACF:!/guide/dev_advanced_content_filter

comment:2 Changed 9 years ago by jozhica


It is shortcode, not shortcut.

I would like to be able to use short-code in ckeditor fields.

When I enter any short-code it gets wrapped in <p> tags and short-code doesn't work.

I don't know how better to explain it.

see this link

Last edited 9 years ago by jozhica (previous) (diff)

comment:3 Changed 9 years ago by Jakub Ś

Sorry, I must have read shorcode as shortcut thus such reply.

First of all I must stress that CKEditor is HTML editor. Short code you have entered into editor is treated as text and this is the reason why it is being wrapped into paragraphs.

There is no Shortcode plugin for CKEditor that I know of.

The only solution out of the box would be using protectedSource option. With that option shortcode will be protected and unchanged. The only downside of this approach is that code is not visible in wysiwyg area. To modify any shortcode you would have to switch to source and do it there.

comment:4 Changed 9 years ago by Piotrek Koszuliński

Resolution: invalid
Status: pendingclosed

Yes, protectedSource or a custom widget can be implemented to handle such shortcodes.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy