bmironov / summernote-emojione-plugin Goto Github PK
View Code? Open in Web Editor NEWEmojiOne plugin for summernote.org WYSIWYG web editor
EmojiOne plugin for summernote.org WYSIWYG web editor
Hi, thanks for implementing emojione to summernote.
My button for insert for emoji is not showing up, but for other like pictures, videos, table, etc works fine. Could you please help me?
<!-- Bootstrap v3.3.6 -->
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}">
<!-- Font Awesome v4.6.3 -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<!-- EmojiOne -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/emojione/2.2.6/assets/css/emojione.min.css">
<!-- SummerNote -->
<link rel="stylesheet" href="{{ asset('assets/plugins/summerNote/summernote.css') }}">
<!-- jQuery v2.2.4 -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<!-- Bootstrap v3.3.6 -->
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
<!-- Main Javascript -->
<script src="{{ asset('assets/js/main.js') }}"></script>
<!-- jQuery scrollUp -->
<script src="{{ asset('assets/js/jquery.scrollUp.min.js') }}"></script>
<!-- EmojiOne -->
<script src="//cdn.jsdelivr.net/emojione/2.2.6/lib/js/emojione.min.js"></script>
<!-- SummerNote -->
<script src="{{ asset('assets/plugins/summerNote/summernote.js') }}"></script>
<!-- Summernote Emojione -->
<script src="{{ asset('assets/plugins/summerNote/summernote-ext-emojione.js') }}"></script>
<script type="text/javascript">
$('#honeypot').addClass('hidden-form');
emojione.ascii = true;
$(document).ready(function() {
$('#summernote').summernote({
height: 200, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
focus: true, // set focus to editable area after initializing summernote
toolbar: [
['misc', ['fullscreen', 'undo', 'redo']],
['color', ['color']],
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['paragraph', ['ul', 'ol', 'paragraph']],
['insert', ['emojiOneChar', 'specialChar', 'picture', 'link', 'video', 'table', 'hr']]
]
});
$('div.note-emojionechar-dialog').attr('tabindex', '-1'); /* allow ESC to close modal */
});
</script>
Thanks in advance.
Hi there,
I use this plugin but the console print this error:Uncaught TypeError: Cannot read property 'getTemplate' of undefined(in line 12 of the js file).
Hope you can help me figure this out:)
It look likes emojion plugin does not work with new version of summernote.
It gives the following error:
TypeError: $.summernote.renderer is undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.