Skip to content

Instantly share code, notes, and snippets.

View hkjorgensen's full-sized avatar
💫

Henrik Jørgensen hkjorgensen

💫
View GitHub Profile
@hkjorgensen
hkjorgensen / theme.js
Created July 18, 2016 17:37
A dirty hack that modifies the "modern" TinyMCE theme, so it always shows the toolbar when in `inline` mode.
import tinymce from 'tinymce/tinymce'
tinymce.ThemeManager.add('inbox', function (editor) {
var self = this
var settings = editor.settings
var Factory = tinymce.ui.Factory
var each = tinymce.each
var DOM = tinymce.DOM
var Rect = tinymce.geom.Rect
var FloatPanel = tinymce.ui.FloatPanel
@hkjorgensen
hkjorgensen / gist:6318410
Last active December 21, 2015 14:18
JSON sitetree
[
{
"title": "Nyheder med en ny menu"
"body": ""
"date": 0,
"nodes": [
{ "title": "", "body":"", "date": 0, "nodes": [] },
{ "title": "", "body":"", "date": 0, "nodes": [] },
{ "title": "", "body":"", "date": 0, "nodes": [] },
{ "title": "", "body":"", "date": 0, "nodes": [] }
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="595px"
height="842px" viewBox="0 0 595 842" enable-background="new 0 0 595 842" xml:space="preserve">
<g id="kommuner">
<g id="hjørring">
</g>
<g id="Frederikshavn" display="none">
</g>
require.config({
paths: {
jQuery: "libs/jquery/jquery-1.7.2.min",
Underscore: "libs/underscore/underscore-1.3.3.min",
Backbone: "libs/backbone/backbone-0.9.2.min"
// Mustache: "libs/mustache/mustache"
},
shim: {
Underscore: {
exports: '_'

Keybase proof

I hereby claim:

  • I am hkjorgensen on github.
  • I am hkjorgensen (https://keybase.io/hkjorgensen) on keybase.
  • I have a public key whose fingerprint is 5FA7 AE04 5990 0E0B BC38 A9E2 B249 CF40 5A29 D5E7

To claim this, I am signing this object: