JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr/* RichText: WYSIWYG editor developed as jQuery plugin @name RichText @author https://github.com/webfashionist - Bob Schockweiler - richtext@webfashion.eu @license GNU AFFERO GENERAL PUBLIC LICENSE Version 3 @preserve Copyright (C) 2020 Bob Schockweiler ( richtext@webfashion.eu ) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ (function ($) { $.fn.richText = function (options) { // set default options // and merge them with the parameter options var settings = $.extend({ // text formatting bold: true, italic: true, underline: true, // text alignment leftAlign: true, centerAlign: true, rightAlign: true, justify: true, // lists ol: true, ul: true, // title heading: true, // fonts fonts: true, fontList: ["Arial", "Arial Black", "Comic Sans MS", "Courier New", "Geneva", "Georgia", "Helvetica", "Impact", "Lucida Console", "Tahoma", "Times New Roman", "Verdana" ], fontColor: true, backgroundColor: true, fontSize: true, // uploads imageUpload: true, fileUpload: true, // media videoEmbed: true, // link urls: true, // tables table: true, // code removeStyles: true, code: true, // colors colors: [], // dropdowns fileHTML: '', imageHTML: '', // translations translations: { 'title': 'Title', 'white': 'White', 'black': 'Black', 'brown': 'Brown', 'beige': 'Beige', 'darkBlue': 'Dark Blue', 'blue': 'Blue', 'lightBlue': 'Light Blue', 'darkRed': 'Dark Red', 'red': 'Red', 'darkGreen': 'Dark Green', 'green': 'Green', 'purple': 'Purple', 'darkTurquois': 'Dark Turquois', 'turquois': 'Turquois', 'darkOrange': 'Dark Orange', 'orange': 'Orange', 'yellow': 'Yellow', 'imageURL': 'Image URL', 'fileURL': 'File URL', 'linkText': 'Link text', 'url': 'URL', 'size': 'Size', 'responsive': 'Responsive', 'text': 'Text', 'openIn': 'Open in', 'sameTab': 'Same tab', 'newTab': 'New tab', 'align': 'Align', 'left': 'Left', 'justify': 'Justify', 'center': 'Center', 'right': 'Right', 'rows': 'Rows', 'columns': 'Columns', 'add': 'Add', 'pleaseEnterURL': 'Please enter an URL', 'videoURLnotSupported': 'Video URL not supported', 'pleaseSelectImage': 'Please select an image', 'pleaseSelectFile': 'Please select a file', 'bold': 'Bold', 'italic': 'Italic', 'underline': 'Underline', 'alignLeft': 'Align left', 'alignCenter': 'Align centered', 'alignRight': 'Align right', 'addOrderedList': 'Ordered list', 'addUnorderedList': 'Unordered list', 'addHeading': 'Heading/title', 'addFont': 'Font', 'addFontColor': 'Font color', 'addBackgroundColor': 'Background color', 'addFontSize': 'Font size', 'addImage': 'Add image', 'addVideo': 'Add video', 'addFile': 'Add file', 'addURL': 'Add URL', 'addTable': 'Add table', 'removeStyles': 'Remove styles', 'code': 'Show HTML code', 'undo': 'Undo', 'redo': 'Redo', 'close': 'Close' }, // privacy youtubeCookies: false, // preview preview: false, // placeholder placeholder: '', // dev settings useSingleQuotes: false, height: 0, heightPercentage: 0, adaptiveHeight: false, id: "", class: "", useParagraph: false, maxlength: 0, maxlengthIncludeHTML: false, callback: undefined, useTabForNext: false }, options); /* prepare toolbar */ var $inputElement = $(this); $inputElement.addClass("richText-initial"); var $editor, $toolbarList = $('