Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14210 | Rev 14212 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14210 Rev 14211
Línea 1133... Línea 1133...
1133
                    if (slug_question == objFormGenerator.sections[i].questions[j].slug_question) {
1133
                    if (slug_question == objFormGenerator.sections[i].questions[j].slug_question) {
1134
                        validatorFormOption.resetForm();
1134
                        validatorFormOption.resetForm();
1135
                        $('#form-option #option-section').val(slug_section);
1135
                        $('#form-option #option-section').val(slug_section);
1136
                        $('#form-option #option-question').val(slug_question);
1136
                        $('#form-option #option-question').val(slug_question);
1137
                        $('#form-option #option-slug').val('');
1137
                        $('#form-option #option-slug').val('');
-
 
1138
                        CKEDITOR.replace('option-text', {
-
 
1139
                            toolbar: [
-
 
1140
                                        { name: 'editing', items: ['Scayt'] },
-
 
1141
                                        { name: 'links', items: ['Link', 'Unlink'] },
-
 
1142
                                        { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
-
 
1143
                                        { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
-
 
1144
                                        '/',
-
 
1145
                                        { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
-
 
1146
                                        { name: 'styles', items: ['Styles', 'Format'] },
-
 
1147
                                        { name: 'tools', items: ['Maximize'] }
-
 
1148
                                    ],
-
 
1149
                                    removePlugins: 'elementspath,Anchor',
-
 
1150
                                    heigth: 100
-
 
1151
                        });
1138
                        CKEDITOR.instances['option-text'].setData('', function() {
1152
                        CKEDITOR.instances['option-text'].setData('', function() {
1139
                            editor.focus();
1153
                            editor.focus();
1140
                        });
1154
                        });
Línea 1141... Línea 1155...
1141
                       
1155
                       
Línea 1169... Línea 1183...
1169
                                $('#form-option #option-slug').val(objFormGenerator.sections[i].questions[j].options[k].slug_option);
1183
                                $('#form-option #option-slug').val(objFormGenerator.sections[i].questions[j].options[k].slug_option);
1170
                                CKEDITOR.instances['option-text'].setData(objFormGenerator.sections[i].questions[j].options[k].text,
1184
                                CKEDITOR.instances['option-text'].setData(objFormGenerator.sections[i].questions[j].options[k].text,
1171
                                    function() {
1185
                                    function() {
1172
                                        editor.focus();
1186
                                        editor.focus();
1173
                                    });
1187
                                    });
1174
                                CKEDITOR.replace('option-text',{
-
 
1175
                                    toolbar: [
-
 
1176
                                                { name: 'editing', items: ['Scayt'] },
-
 
1177
                                                { name: 'links', items: ['Link', 'Unlink'] },
-
 
1178
                                                { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
-
 
1179
                                                { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
-
 
1180
                                                '/',
-
 
1181
                                                { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
-
 
1182
                                                { name: 'styles', items: ['Styles', 'Format'] },
-
 
1183
                                                { name: 'tools', items: ['Maximize'] }
-
 
1184
                                            ],
-
 
1185
                                            removePlugins: 'elementspath,Anchor',
-
 
1186
                                            heigth: 100
-
 
1187
                                });
-
 
1188
                                showForm = true;
1188
                                showForm = true;
1189
                                break;
1189
                                break;
1190
                            }
1190
                            }
1191
                        }
1191
                        }
1192
                    }
1192
                    }