Hi all. I use tinymce for my post's body textarea. I need to write some example language-code in my post. I use geshi module for the syntax highlight. All works if I don't use tinymce, but I need and want to use this WYSIWYG editor. How can I insert this "example language-code" via tinymce ? if I insert "<code>", tinymce translate it into "<code>"
M.
Davide Michel 'ZioBudda' Morelli ha scritto:
Hi all. I use tinymce for my post's body textarea. I need to write some example language-code in my post. I use geshi module for the syntax highlight. All works if I don't use tinymce, but I need and want to use this WYSIWYG editor. How can I insert this "example language-code" via tinymce ? if I insert "<code>", tinymce translate it into "<code>"
Ops, I have forget to insert this, too:
And is it possible to disable tinyMCE for comment textarea ?
M.
There aren't many easy answers to this that I'm aware of. Theoretically you could write a TinyMCE plugin that puts in the markup that you want, but that may be more than it's worth to you.
Frankly I find it easier to just disable the TinyMCE editor when I'm pasting in code. (you can configure tinymce to allow you to disable the editor on the fly).
You'll need to be carefult hat you haven't configured tinymce to filter out code tags.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Davide Michel 'ZioBudda' Morelli Sent: Tuesday, April 29, 2008 8:18 AM To: support@drupal.org Subject: [support] tinymce: blockcode and comment
Hi all. I use tinymce for my post's body textarea. I need to write some example language-code in my post. I use geshi module for the syntax highlight. All works if I don't use tinymce, but I need and want to use this WYSIWYG editor. How can I insert this "example language-code" via tinymce ? if I insert "<code>", tinymce translate it into "<code>"
M.