: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'left-pointing angle bracket'
'right-pointing angle bracket'
var charmapFilter = function (charmap) {
return global$1.grep(charmap, function (item) {
return isArray(item) && item.length === 2;
var getCharsFromSetting = function (settingValue) {
if (isArray(settingValue)) {
return [].concat(charmapFilter(settingValue));
if (typeof settingValue === 'function') {
var extendCharMap = function (editor, charmap) {
var userCharMap = Settings.getCharMap(editor);
charmap = getCharsFromSetting(userCharMap);
var userCharMapAppend = Settings.getCharMapAppend(editor);
return [].concat(charmap).concat(getCharsFromSetting(userCharMapAppend));
var getCharMap$1 = function (editor) {
return extendCharMap(editor, getDefaultCharMap());
var CharMap = { getCharMap: getCharMap$1 };
var get = function (editor) {
var getCharMap = function () {
return CharMap.getCharMap(editor);
var insertChar = function (chr) {
Actions.insertChar(editor, chr);
var getHtml = function (charmap) {
var width = Math.min(charmap.length, 25);
var height = Math.ceil(charmap.length / width);
gridHtml = '<table role="presentation" cellspacing="0" class="mce-charmap"><tbody>';
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
var index = y * width + x;
if (index < charmap.length) {
var chr = charmap[index];
var charCode = parseInt(chr[0], 10);
var chrText = chr ? String.fromCharCode(charCode) : ' ';
gridHtml += '<td title="' + chr[1] + '">' + '<div tabindex="-1" title="' + chr[1] + '" role="button" data-chr="' + charCode + '">' + chrText + '</div>' + '</td>';
gridHtml += '</tbody></table>';
var GridHtml = { getHtml: getHtml };
var getParentTd = function (elm) {
if (elm.nodeName === 'TD') {
var open = function (editor) {
html: GridHtml.getHtml(CharMap.getCharMap(editor)),
if (/^(TD|DIV)$/.test(target.nodeName)) {
var charDiv = getParentTd(target).firstChild;
if (charDiv && charDiv.hasAttribute('data-chr')) {
var charCodeString = charDiv.getAttribute('data-chr');
var charCode = parseInt(charCodeString, 10);
Actions.insertChar(editor, String.fromCharCode(charCode));
onmouseover: function (e) {
var td = getParentTd(e.target);
if (td && td.firstChild) {
win.find('#preview').text(td.firstChild.firstChild.data);
win.find('#previewTitle').text(td.title);
win.find('#preview').text(' ');
win.find('#previewTitle').text(' ');
win = editor.windowManager.open({
title: 'Special character',
style: 'font-size: 40px; text-align: center',
style: 'white-space: pre-wrap;',
var Dialog = { open: open };
var register = function (editor) {
editor.addCommand('mceShowCharmap', function () {
var Commands = { register: register };
var register$1 = function (editor) {
editor.addButton('charmap', {
tooltip: 'Special character',
editor.addMenuItem('charmap', {
text: 'Special character',
var Buttons = { register: register$1 };
global.add('charmap', function (editor) {
Commands.register(editor);
Buttons.register(editor);