Opened 10 years ago
Closed 9 years ago
#12653 closed Bug (invalid)
Shortcode
Reported by: | jozhica | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
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 10 years ago by
Status: | new → pending |
---|
comment:2 Changed 10 years ago by
Hi,
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 http://codex.wordpress.org/Shortcode_API
comment:3 Changed 10 years ago by
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
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Yes, protectedSource or a custom widget can be implemented to handle such shortcodes.
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: http://docs.ckeditor.com/#!/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: http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter