Skip to content

Commit

Permalink
add tab-link and data-toggle to allowedContent
Browse files Browse the repository at this point in the history
  • Loading branch information
sealocal committed Feb 15, 2016
1 parent fad7283 commit babae75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ CKEDITOR.plugins.add('bootstrapTabs', {
init: function( editor ) {
// Plugin logic goes here...

// Create the command for the plugin.
editor.addCommand('bootstrapTabs', new CKEDITOR.dialogCommand('bootstrapTabsDialog', {
allowedContent: 'div ul li a[role,href,id,aria-*,data-number-of-tabs,data-tab-set-title](bootstrap-tabs,nav,nav-tabs,active,tab-content,tab-pane,tab-pane-content)'
// Create the command for the plugin.
editor.addCommand('bootstrapTabs', new CKEDITOR.dialogCommand('bootstrapTabsDialog', {
allowedContent: 'div ul li a[role,href,id,aria-*,data-number-of-tabs,data-tab-set-title,data-toggle](bootstrap-tabs,nav,nav-tabs,tab-link,active,tab-content,tab-pane,tab-pane-content)'
}));

// Add the button for the plugin.
Expand Down
8 changes: 4 additions & 4 deletions sample/bootstrapTabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<ul class="nav nav-tabs" role="tablist">
<!-- add tabs here -->
<li class="active" role="presentation">
<a aria-controls="sample-tab-1" data-toggle="tab" href="#sample-tab-1" role="tab">Tab 1 Name</a>
<a aria-controls="sample-tab-1" class="tab-link" data-toggle="tab" href="#sample-tab-1" role="tab">Tab 1 Name</a>
</li>
<li role="presentation">
<a aria-controls="sample-tab-2" data-toggle="tab" href="#sample-tab-2" role="tab">Tab 2 Name</a>
<a aria-controls="sample-tab-2" class="tab-link" data-toggle="tab" href="#sample-tab-2" role="tab">Tab 2 Name</a>
</li>
<li role="presentation">
<a aria-controls="sample-tab-3" data-toggle="tab" href="#sample-tab-3" role="tab">Tab 3 Name</a>
<a aria-controls="sample-tab-3" class="tab-link" data-toggle="tab" href="#sample-tab-3" role="tab">Tab 3 Name</a>
</li>
<li role="presentation">
<a aria-controls="sample-tab-4" data-toggle="tab" href="#sample-tab-4" role="tab">Tab 4 Name</a>
<a aria-controls="sample-tab-4" class="tab-link" data-toggle="tab" href="#sample-tab-4" role="tab">Tab 4 Name</a>
</li>
</ul>
<div class="tab-content">
Expand Down

0 comments on commit babae75

Please sign in to comment.