views:

261

answers:

1

TinyMCE docs have this example for setting up the format menu. Most of these options (h1, h2...blockquote, etc) are working for me, but for some reason, selecting the CODE option from the drop down menu does nothing. Whereas selecting BLOCKQUOTE does what you'd expect, wraps the blockquote tag around the selected text.

Anyone know how to get the expected tag to work when selecting the CODE menu option from the format menu? Or where in tinyMCE code this is handled?

Link to docs: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_blockformats

tinyMCE.init({
    ...
    theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp"
});

// code option in above, does not work :(

A: 

Exactly the same problem. Have been googling all over for answers and trying different things without much success. Moreover, in my case it is Telligent Community that is wrapping up Tiny MCE. Did you get any solution?

Ghanshyam