Показать сообщение отдельно
Старый 09.07.2013, 22:23   #10
Ивано++
Senior Member
 
Аватар для Ивано++
 
Регистрация: 18.01.2013
Адрес: Russia , Moscow
Сообщений: 796
По умолчанию

Вот она безумная тема:

http://www.tinymce.com/wiki.php/Conf...:style_formats

PHP код:

tinymce
.init({
    ...
    
style_formats : [
        {
title 'Bold text'inline 'b'},
        {
title 'Red text'inline 'span'styles : {color '#ff0000'}},
        {
title 'Red header'block 'h1'styles : {color '#ff0000'}},
        {
title 'Example 1'inline 'span'classes 'example1'},
        {
title 'Example 2'inline 'span'classes 'example2'},
        {
title 'Table styles'},
        {
title 'Table row 1'selector 'tr'classes 'tablerow1'}
    ]
});

style_formats: [
        {
title'Image Left'selector'img'styles: {
                
'float' 'left'
                
'margin''0 10px 0 10px'
        
}},
        {
title'Image Right'selector'img'styles: {
                
'float' 'right'
                
'margin''0 10px 0 10px'
        
}},

__________________
Иван Литовченко
http://iv-litovchenko.ru/
Ивано++ вне форума   Ответить с цитированием