Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove summernote tooltip v.0.8.2

I'm trying to remove the tooltip from toolbar in summernote. I tried the following which worked previously but now doesn't work since update to 0.8.2. What would be the correct way to remove the tooltip?

$("#myNote").summernote({
            toolbar: [
                ['para', ['ul']] // I want to remove this tooltip
            ],
            focus: true
        });
$('.note-editor [data-event="insertUnorderedList"]').tooltip('disable'); 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.js"></script>
<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.css" rel="stylesheet"/>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet"/>


<div id="myNote"></div>
like image 515
usr4896260 Avatar asked Sep 19 '25 01:09

usr4896260


1 Answers

Use this

 $('#myTextEditorId').summernote({
                    tooltip: false
                });

note: Place summernote css files before bootstrap css

like image 73
MrSalesi Avatar answered Sep 21 '25 13:09

MrSalesi