11'use strict' ;
2+
23/*global tinymce: false*/
34
45if ( $ === undefined ) $ = django . jQuery ;
56
67function change_image_alignment ( node , styles ) {
7- if ( node . nodeName == " IMG" ) {
8+ if ( node . nodeName === ' IMG' ) {
89 $ ( node ) . removeAttr ( 'style' ) ;
910 if ( styles ) {
1011 $ ( node ) . css ( 'margin' , '5px' ) ;
@@ -30,8 +31,8 @@ tinymce.init({
3031 'save table contextmenu directionality emoticons template paste textcolor'
3132 ] ,
3233
33- plugin_preview_width : " 730" ,
34- plugin_preview_height : " 550" ,
34+ plugin_preview_width : ' 730' ,
35+ plugin_preview_height : ' 550' ,
3536
3637 menu : {
3738 edit : {
@@ -115,37 +116,37 @@ tinymce.init({
115116 } ,
116117
117118 style_formats : [
118- { title : " Headers" , items : [
119- { title : " Header 1" , format : "h1" } ,
120- { title : " Header 2" , format : "h2" } ,
121- { title : " Header 3" , format : "h3" } ,
122- { title : " Header 4" , format : "h4" } ,
123- { title : " Header 5" , format : "h5" } ,
124- { title : " Header 6" , format : "h6" }
119+ { title : ' Headers' , items : [
120+ { title : ' Header 1' , format : 'h1' } ,
121+ { title : ' Header 2' , format : 'h2' } ,
122+ { title : ' Header 3' , format : 'h3' } ,
123+ { title : ' Header 4' , format : 'h4' } ,
124+ { title : ' Header 5' , format : 'h5' } ,
125+ { title : ' Header 6' , format : 'h6' }
125126 ] } ,
126- { title : " Inline" , items : [
127- { title : " Bold" , icon : " bold" , format : " bold" } ,
128- { title : " Italic" , icon : " italic" , format : " italic" } ,
129- { title : " Underline" , icon : " underline" , format : " underline" } ,
130- { title : " Strikethrough" , icon : " strikethrough" , format : " strikethrough" } ,
131- { title : " Superscript" , icon : " superscript" , format : " superscript" } ,
132- { title : " Subscript" , icon : " subscript" , format : " subscript" } ,
133- { title : " Code" , icon : " code" , format : " code" }
127+ { title : ' Inline' , items : [
128+ { title : ' Bold' , icon : ' bold' , format : ' bold' } ,
129+ { title : ' Italic' , icon : ' italic' , format : ' italic' } ,
130+ { title : ' Underline' , icon : ' underline' , format : ' underline' } ,
131+ { title : ' Strikethrough' , icon : ' strikethrough' , format : ' strikethrough' } ,
132+ { title : ' Superscript' , icon : ' superscript' , format : ' superscript' } ,
133+ { title : ' Subscript' , icon : ' subscript' , format : ' subscript' } ,
134+ { title : ' Code' , icon : ' code' , format : ' code' }
134135 ] } ,
135- { title : " Blocks" , items : [
136- { title : " Paragraph" , format : "p" } ,
137- { title : " Blockquote" , format : " blockquote" } ,
138- { title : " Div" , format : " div" } ,
139- { title : " Pre" , format : " pre" }
136+ { title : ' Blocks' , items : [
137+ { title : ' Paragraph' , format : 'p' } ,
138+ { title : ' Blockquote' , format : ' blockquote' } ,
139+ { title : ' Div' , format : ' div' } ,
140+ { title : ' Pre' , format : ' pre' }
140141 ] } ,
141- { title : " Alignment" , items : [
142- { title : " Left" , icon : " alignleft" , format : " alignleft" } ,
143- { title : " Center" , icon : " aligncenter" , format : " aligncenter" } ,
144- { title : " Right" , icon : " alignright" , format : " alignright" } ,
145- { title : " Justify" , icon : " alignjustify" , format : " alignjustify" }
142+ { title : ' Alignment' , items : [
143+ { title : ' Left' , icon : ' alignleft' , format : ' alignleft' } ,
144+ { title : ' Center' , icon : ' aligncenter' , format : ' aligncenter' } ,
145+ { title : ' Right' , icon : ' alignright' , format : ' alignright' } ,
146+ { title : ' Justify' , icon : ' alignjustify' , format : ' alignjustify' }
146147 ] } ,
147148 ] ,
148- fontsize_formats :" 8px 10px 12px 14px 16px 18px 20px 22px 24px 26px 28px 36px 48px 72px" ,
149+ fontsize_formats : ' 8px 10px 12px 14px 16px 18px 20px 22px 24px 26px 28px 36px 48px 72px' ,
149150
150151 // Callbacks
151152 file_browser_callback : DjangoFilebrowser
0 commit comments