Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div id="editor1"> | ||
<img alt="CKEditor logo" src="%BASE_PATH%_assets/logo.png" /> | ||
</div> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor1' ); | ||
|
||
CKEDITOR.on( 'dialogDefinition', function( ev ) { | ||
var dialogName = ev.data.name, | ||
dialogDefinition = ev.data.definition; | ||
|
||
if ( dialogName == 'image' ) { | ||
// Get a reference to the "Image Info" tab. | ||
var infoTab = dialogDefinition.getContents( 'info' ); | ||
infoTab.add( { | ||
type: 'radio', | ||
id: 'customId', | ||
label: 'Test Label', | ||
title: 'Test Title', | ||
className: 'radioClass', | ||
required: false, | ||
items: [ | ||
[ 'Test0', 'Test0', 'Test0' ], | ||
[ 'Test1', 'Test1', 'Test1' ], | ||
[ 'Test2', 'Test2', 'Test2' ] | ||
], | ||
onChange: function() { | ||
console.log( 'changed' ); | ||
} | ||
} ); | ||
} | ||
} ); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@bender-tags: 4.5.3, tc | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, image | ||
|
||
---- | ||
|
||
1. Open the console. | ||
2. Edit the image (e.g. by double clicking it). | ||
3. Click any of the radio buttons at the bottom. | ||
|
||
**Expected:** On each selection change the text *changed* should be logged to the console. |