view src/icons/famfamfam.js @ 30:db061869f28f

remove sceditor.command, add options.onCreate
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 12 Aug 2022 00:54:39 -0600
parents 8d32537e0ca7
children
line wrap: on
line source

(function (document, sceditor) {
	'use strict';

	let baseUrl = document.currentScript.getAttribute('src').match(/.*\//)[0];
	let cssUrl = baseUrl + 'famfamfam/famfamfam.css';
	let html = '<style>@import "' + cssUrl + '";</style>';
	document.head.insertAdjacentHTML('beforeend',html);
	sceditor.icons = {};
})(document, sceditor);