Foundation Tabs + Inline CKEditor

Using CKEditor inside Foundation tabs issue

HTML

<script src="//cdn.jsdelivr.net/foundation/5.5.1/js/foundation.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/foundation/5.5.1/css/foundation.min.css">
<script src="//cdn.ckeditor.com/4.4.7/standard/ckeditor.js"></script>
<script src="https://cdn.ckeditor.com/4.4.7/standard/adapters/jquery.js"></script>
<ul class="tabs" data-tab>
    <li class="tab-title active"><a href="#panel1">Editor 1</a>

    </li>
    <li class="tab-title"><a href="#panel2">Editor 2</a>

    </li>
    <li class="tab-title"><a href="#panel3">Txt tab</a>

    </li>
</ul>
<div class="tabs-content">
    <div class="content active" id="panel1">
        <div id="editable1" contenteditable="true">
            <p>When using Chrome this editor 1 works just fine, it can focus and you can type new text or edit the existing text.</p>
            <p>When using Chrome this editor 1 works just fine, it can focus and you can type new text or edit the existing text.</p>
            <p>When using Chrome this editor 1 works just fine, it can focus and you can type new text or edit the existing text.</p>
        </div>
    </div>
    <div class="content" id="panel2">
        <div id="editable2" contenteditable="true">
            <p>When using Chrome this editor 2 does NOT work. When clicked it shows the toolbar, but you can not focus and you cannot edit this text. BUG! How to solve it??</p>
            <p>When using Chrome this editor 2 does NOT work. When clicked it shows the toolbar, but you can not focus and you cannot edit this text. BUG! How to solve it??</p>
            <p>When using Chrome this editor 2 does NOT work. When clicked it shows the toolbar, but you can not focus and you cannot edit this text. BUG! How to solve it??</p>
        </div>
    </div>
    <div class="content" id="panel3">
        <p>This is the third panel of the basic tab example. This is the third panel of the basic tab example.</p>
    </div>
</div>

CSS

#editable1, #editable2 {
    MARGIN:10PX;
    padding: 10px;
    background: #FFF;
    border: 1px solid #444;
}

JavaScript

$(document).foundation();


$(document).ready(function () {
    $('#editable1').ckeditor();
    $('#editable2').ckeditor();
});