JavaScript How to customize tineMCE H tags in Magento

For the CMS page editor in Magento,i would like to change the formatting of the H tags in the tinyMce editor. I would like something like for H1 tag, it is in red, bold, font:36px.

how would i go about to achieve this.

function init(){
    tinyMCE.init({
            style_formats:[
                {title:'h1', inline:'b', block:'h1', styles:{'font-size': '36px', 'font-family':'Arial','color':'#ff9900'}}
            ]
    });
}
document.observe('dom:loaded', init);

I tried the above, but it does not work.

Answer:1

Does anyone know why the height could be zero here? $(document).ready(function () { alert($("#hello").height()); }); <script src="https://ajax.googleapis.com/ajax/...

Does anyone know why the height could be zero here? $(document).ready(function () { alert($("#hello").height()); }); <script src="https://ajax.googleapis.com/ajax/...

  1. jquery element height returns 0
  2. element height returns 0
  3. jquery height returns 0
  4. jquery div height returns 0

I'm thinking using S3 Amazon for storage (if you guys have better one, don't hesitate to recommend). I could do a normal file upload, but let's say I'm uploading a very large video/music file (...

I'm thinking using S3 Amazon for storage (if you guys have better one, don't hesitate to recommend). I could do a normal file upload, but let's say I'm uploading a very large video/music file (...

  1. google cloud storage multipart upload

I'm trying to select the data that comes from the data base with jQuery, but my problem is that only the first result has a click handler bound to it. Here is the PHP part: <?php $sql = "SELECT ...

I'm trying to select the data that comes from the data base with jQuery, but my problem is that only the first result has a click handler bound to it. Here is the PHP part: <?php $sql = "SELECT ...

We are running a quick javascript function to fill out and save a form to quickly move forward in a workflow (for testing purposes). It's running fine in all browsers except for Firefox - and only on ...

We are running a quick javascript function to fill out and save a form to quickly move forward in a workflow (for testing purposes). It's running fine in all browsers except for Firefox - and only on ...