annotate src/icons/famfamfam.js @ 37:0c4e4b5ef40d

remove fragmentToHtml
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 17 Aug 2022 12:00:57 -0600
parents 8d32537e0ca7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
9159df67520a remove "icons" option
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 (function (document, sceditor) {
9159df67520a remove "icons" option
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 'use strict';
9159df67520a remove "icons" option
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
9159df67520a remove "icons" option
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 let baseUrl = document.currentScript.getAttribute('src').match(/.*\//)[0];
13
8d32537e0ca7 icons again
Franklin Schmidt <fschmidt@gmail.com>
parents: 9
diff changeset
5 let cssUrl = baseUrl + 'famfamfam/famfamfam.css';
8d32537e0ca7 icons again
Franklin Schmidt <fschmidt@gmail.com>
parents: 9
diff changeset
6 let html = '<style>@import "' + cssUrl + '";</style>';
8d32537e0ca7 icons again
Franklin Schmidt <fschmidt@gmail.com>
parents: 9
diff changeset
7 document.head.insertAdjacentHTML('beforeend',html);
8d32537e0ca7 icons again
Franklin Schmidt <fschmidt@gmail.com>
parents: 9
diff changeset
8 sceditor.icons = {};
9
9159df67520a remove "icons" option
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 })(document, sceditor);