Hello, first post on this forum...
I want to be able to insert our custom tags/plugins/code into the textarea and have ck either ignore them in two ways:
- some should not be autowrapped in p or other tags (it's parsed with callbacks - php - when displayed)
- others could be parsed to make a display (I believe WP does something like this)
Is it possible to insert code/plugins into the editor without them being wrapped in p or other tags?
Additionally, is it possible to write an add-on/extension/plugin that would parse a piece of code (such as a plugin that adds an image to the textarea - not the same as adding an image directly in this situation)? Or, not possible at all?
I'm a skilled developer so I'm just looking for a thumbs up if this is possible...and if you have any references regarding the matter that would be great.
Thanks
I want to be able to insert our custom tags/plugins/code into the textarea and have ck either ignore them in two ways:
- some should not be autowrapped in p or other tags (it's parsed with callbacks - php - when displayed)
- others could be parsed to make a display (I believe WP does something like this)
Is it possible to insert code/plugins into the editor without them being wrapped in p or other tags?
Additionally, is it possible to write an add-on/extension/plugin that would parse a piece of code (such as a plugin that adds an image to the textarea - not the same as adding an image directly in this situation)? Or, not possible at all?
I'm a skilled developer so I'm just looking for a thumbs up if this is possible...and if you have any references regarding the matter that would be great.
Thanks
Re: Inserting plugins/code to textarea
look at the source code for the pagebreak plugin to learn how to insert code into the editor and create fake objects. To prevent the wrapping of code in P tags you set CKEditor config to enter mode br.
The CKEditor javascript API and the source code holds all the answers.
Thanks,
Zanpakutō
Re: Inserting plugins/code to textarea