</div>
<script>
dzFactory.setupDropzone('#dropzone-{{$id}}', 'comment-edit-text-{{$id}}');
-</script>
-<script>
-window.onload = function(){
- new EmojiPicker({
- trigger: [
- {
- selector: '.emojis',
- insertInto: '.comment-edit-text'
- }
- ],
- closeButton: true,
- });
-};
-</script>
+</script>
\ No newline at end of file
<button type="button" class="btn btn-sm template-icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote}}" onclick="insertFormatting('quote',{{$id}});">
<i class="fa fa-quote-left"></i>
</button>
+ <button type="button" class="btn btn-sm template-icon emojis" style="cursor: pointer;" aria-label="{{$edemojis}}" title="{{$edemojis}}">
+ <i class="fa fa-smile-o"></i>
+ </button>
</span>
</p>
<div id="dropzone-{{$id}}" class="dropzone">
<script type="text/javascript" src="view/js/fancybox/jquery.fancybox.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="view/js/fancybox/fancybox.config.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
-
+ <script>
+ window.onload = function(){
+ new EmojiPicker({
+ trigger: [
+ {
+ selector: '.emojis',
+ insertInto: ['#comment-edit-text-0', '.profile-jot-text-full', '.comment-edit-text-full']
+ }
+ ],
+ closeButton: true
+ });
+ };
+ </script>
+
{{* Include the strings which are needed for some js functions (e.g. translation)
They are loaded into the html <head> so that js functions can use them *}}
{{include file="js_strings.tpl"}}
<script>
dzFactory.setupDropzone('#jot-text-wrap', 'profile-jot-text');
-</script>
-<script>
-window.onload = function(){
- new EmojiPicker({
- trigger: [
- {
- selector: '.emojis',
- insertInto: '.profile-jot-text'
- }
- ],
- closeButton: true,
- });
-};
-</script>
+</script>
\ No newline at end of file