equal
deleted
inserted
replaced
105 this.object.value = DN_WikitextToXHTML(this.object.value); |
105 this.object.value = DN_WikitextToXHTML(this.object.value); |
106 } |
106 } |
107 // If tinyMCE init hasn't been called yet, do it now. |
107 // If tinyMCE init hasn't been called yet, do it now. |
108 if ( !tinymce_initted ) |
108 if ( !tinymce_initted ) |
109 { |
109 { |
110 console.info('$().switchToMCE(): doing "exact"-type MCE init'); |
110 console.info('$dynano().switchToMCE(): doing "exact"-type MCE init'); |
111 enano_tinymce_options.mode = 'exact'; |
111 enano_tinymce_options.mode = 'exact'; |
112 enano_tinymce_options.elements = this.object.id; |
112 enano_tinymce_options.elements = this.object.id; |
113 initTinyMCE(); |
113 initTinyMCE(); |
114 this.object.dnIsMCE = 'yes'; |
114 this.object.dnIsMCE = 'yes'; |
115 return true; |
115 return true; |
116 } |
116 } |
117 else |
117 else |
118 { |
118 { |
119 console.info('$().switchToMCE(): tinyMCE already loaded, calling mceAddControl'); |
119 console.info('$dynano().switchToMCE(): tinyMCE already loaded, calling mceAddControl'); |
120 tinymce.EditorManager.execCommand("mceAddControl", true, this.object.id); |
120 tinymce.EditorManager.execCommand("mceAddControl", true, this.object.id); |
121 this.object.dnIsMCE = 'yes'; |
121 this.object.dnIsMCE = 'yes'; |
122 } |
122 } |
123 return this; |
123 return this; |
124 } |
124 } |