[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @editor @editor_tinymce 2 Feature: Add or remove items from the TinyMCE editor toolbar 3 In order to customize the TinyMCE editor appearance 4 As an admin 5 I need to add and remove items from the toolbar 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C1 | 0 | 11 And I log in as "admin" 12 And I navigate to "Edit profile" node in "My profile settings" 13 And I set the field "Text editor" to "TinyMCE HTML editor" 14 And I press "Update profile" 15 And I follow "Home" 16 17 @javascript 18 Scenario: Remove icons 19 When I set the following administration settings values: 20 | Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | 21 And I am on homepage 22 And I follow "Course 1" 23 And I turn editing mode on 24 And I add a "Database" to section "1" 25 Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist 26 And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exist 27 And I press "Cancel" 28 29 @javascript 30 Scenario: Add icons 31 When I set the following administration settings values: 32 | Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen,anchor | 33 And I am on homepage 34 And I follow "Course 1" 35 And I turn editing mode on 36 And I add a "Database" to section "1" 37 Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist 38 And "#id_introeditor_tbl .mce_anchor" "css_element" should exist 39 And I set the following administration settings values: 40 | Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen | 41 And I am on homepage 42 And I follow "Course 1" 43 And I add a "Database" to section "1" 44 And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist 45 And I press "Cancel" 46 47 @javascript 48 Scenario: Default icons 49 Given I follow "Course 1" 50 And I turn editing mode on 51 When I add a "Database" to section "1" 52 And I wait until "#id_introeditor_tbl" "css_element" exists 53 Then "#id_introeditor_tbl .mce_bold" "css_element" should exist 54 And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist 55 And I press "Cancel"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |