Tuesday 15 May 2012

Getting Different toolbar Controls in tinymce in rails 2 Application -


I'm using the tinymce editor to prepare a report so I'm facing a problem in the TinyMase toggle link As shown in the image below. tinymce_editor

In the toolbar I Getting rectangular box to insert image. I'm getting different designs for the different properties of the toolbar .. ..I want to display the link in Tinink's standard format .. Plz get me out of it ..

  & Lt; Script type = "text / javascript" & gt; Tinymce.init ({selector: "text area", fontsize_formats: "6pt 7 point 8pt 9pt 10pt 11pt 12pt 26pt 36pt", installation: function (editor) {editor.addButton ('report_design', {type: 'menubutton', text : 'Variables', icon: false, menu: [{text:' Student Basic Data ', menu: [studi_basica_data%> {text:' & lt;% = "# {T (data)}" For%%>, onclick: function () {editor.insertContent ('<'> $% <% = data%> \%  gt; ') ;}}, & Lt;% end% & gt;}, {Text: 'Previous Institute Data', menu: @ student_previous_data%> {text: '>%% <% = Data%> \%  Editor.Instant Content ('<>>%% <% = Data%> & lt; /% i & gt; & Lt;% else% & gt; Editor.windowManager.open ({title: 'parent category', width: 270, height: 70, body: [{type: 'listbox', // name: 'align', label: 'select:', select: Function (e) {& lt;% = remote_function (: url = & gt; {: controller = & gt; "design_custom_reports" ,: action = & gt; "parent_category"} ,: = => 'category_id = The value of '+ this.value () ",% & Gt;}, value: [parent:' for 'select', value: 'select'}, & lt;% category @ parent_categories% & gt; {text: '& Posterender: function () {//} on lt;% = category.name% & gt; ', value:' & lt;% = category.id% & gt; '}, & lt;% end% & gt; Select item this.value ('& lt;% = GuardianCatego Ry.find (@ custom_report.category_id) .id unless the @ custom_report.category_id.nil? Or @ custom_report.category_id == 0% & gt;') ;}}]});  


No comments:

Post a Comment