My defined styles for the WYSIWYG editor

Re: My defined styles for the WYSIWYG editor

by sohail aslam -
Number of replies: 0

I have applied the above technique/code to include my custom css file and also made changes in htmlarea.php below mentioned code block

   this.formatblock = {

        "":"", "Quotes":"p#quotes",

        "<?php echo $strheading ?> 1": "h1",

        "<?php echo $strheading ?> 2": "h2",

        "<?php echo $strheading ?> 3": "h3",

        "<?php echo $strheading ?> 4": "h4",

        "<?php echo $strheading ?> 5": "h5",

        "<?php echo $strheading ?> 6": "h6",

        "<?php echo $strnormal ?>": "p",

        "<?php echo $straddress ?>": "address",

        "<?php echo $strpreformatted ?>": "pre",

        "heading1_custom": "p#heading1_sohail",

        "heading2_custom": "div"

    };

 After applying these I can see my headings in editor drop down list but when select these styles does not make any difference.

My objective is to define some custom styles which user can apply straight away by selecting from drop down menu.

Any suggestions, what I am doing wrong?

Note: I am running moodle 1.9.8.