<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2014-10-10:2331049</id>
  <title>spinda's dreamwidth</title>
  <subtitle>spinda</subtitle>
  <author>
    <name>spinda</name>
  </author>
  <link rel="alternate" type="text/html" href="https://spindas.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://spindas.dreamwidth.org/data/atom"/>
  <updated>2017-01-23T04:53:40Z</updated>
  <dw:journal username="spindas" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2014-10-10:2331049:2452</id>
    <link rel="alternate" type="text/html" href="https://spindas.dreamwidth.org/2452.html"/>
    <link rel="self" type="text/xml" href="https://spindas.dreamwidth.org/data/atom/?itemid=2452"/>
    <title>A better rich text editor for Dreamwidth</title>
    <published>2016-02-23T01:39:29Z</published>
    <updated>2017-01-23T04:53:40Z</updated>
    <category term="dreamwidth"/>
    <category term="tweaks"/>
    <category term="userscripts"/>
    <category term="web"/>
    <category term="snippets"/>
    <dw:music>Mr Explicit, Balistik - Philadelphia Sunrise (Utah Jazz Remix)</dw:music>
    <dw:mood>busy</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;For whatever reason, Dreamwidth’s default rich text editor (built on an old version of FCKEditor) hides a lot of the available toolbar buttons. I’ve written a quick userscript that enables all available buttons in the editor, and also increases the height a bit to make writing more pleasant. I’ve tested it on Firefox with GreaseMonkey; presumably it should work on Chrome/Chromium as well.&lt;/p&gt;



&lt;pre class="prettyprint"&gt;&lt;code class="language-javascript hljs "&gt;&lt;span class="hljs-comment"&gt;// ==UserScript==&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @name        Better Dreamwidth Editor&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @namespace   betterdweditor&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @include     https://www.dreamwidth.org/update?usejournal=spindas&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @include     https://www.dreamwidth.org/editjournal*&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @version     1&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// @grant       none&lt;/span&gt;
&lt;span class="hljs-comment"&gt;// ==/UserScript==&lt;/span&gt;

window.onload = &lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;function&lt;/span&gt; &lt;span class="hljs-params"&gt;()&lt;/span&gt; {&lt;/span&gt;
  &lt;span class="hljs-keyword"&gt;var&lt;/span&gt; frame = document.getElementById(&lt;span class="hljs-string"&gt;'draft___Frame'&lt;/span&gt;);
  frame.onload = &lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;function&lt;/span&gt; &lt;span class="hljs-params"&gt;()&lt;/span&gt; {&lt;/span&gt;
    document.getElementById(&lt;span class="hljs-string"&gt;'draft___Frame'&lt;/span&gt;).style.height = &lt;span class="hljs-string"&gt;'600px'&lt;/span&gt;;
  };
  frame.src = &lt;span class="hljs-string"&gt;'https://www.dreamwidth.org/stc/fck/editor/fckeditor.html?InstanceName=draft&amp;amp;Toolbar=Default'&lt;/span&gt;;
};&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=spindas&amp;ditemid=2452" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
