comparison src/sceditor.js @ 6:c26f7240e96b

fix emoticonsRoot
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 04 Aug 2022 20:05:05 -0600
parents b7725dab7482
children df1e18048d97
comparison
equal deleted inserted replaced
5:dd47b95c9ec7 6:c26f7240e96b
1 (function () { 1 (function () {
2 'use strict'; 2 'use strict';
3
4 let baseUrl = document.currentScript.getAttribute('src').match(/.*\//)[0];
5 //console.log(baseUrl);
3 6
4 /** 7 /**
5 * Check if the passed argument is the 8 * Check if the passed argument is the
6 * the passed type. 9 * the passed type.
7 * 10 *
1402 /** 1405 /**
1403 * Emoticon root URL 1406 * Emoticon root URL
1404 * 1407 *
1405 * @type {string} 1408 * @type {string}
1406 */ 1409 */
1407 emoticonsRoot: '', 1410 emoticonsRoot: baseUrl,
1408 emoticons: { 1411 emoticons: {
1409 dropdown: { 1412 dropdown: {
1410 ':)': 'emoticons/smile.png', 1413 ':)': 'emoticons/smile.png',
1411 ':angel:': 'emoticons/angel.png', 1414 ':angel:': 'emoticons/angel.png',
1412 ':angry:': 'emoticons/angry.png', 1415 ':angry:': 'emoticons/angry.png',