Skip to content
Browse files

Changes to toolbar to position color pickers better, and

reintroduce the "select all" button.  Unfortnately, I had
to remove the "About richtext" button to make room
  • Loading branch information...
1 parent 4168490 commit 09a4ce320ccbf4bfb53e1a2d3e1e35f6da723830 moodler committed Oct 21, 2002
Showing with 6 additions and 4 deletions.
  1. +3 −0 lib/rte/README_MOODLE
  2. +2 −3 lib/rte/richedit.html
  3. +1 −1 lib/rte/rte.js
View
3 lib/rte/README_MOODLE
@@ -1,4 +1,7 @@
This version of the Richtext editor started out as 0.3 beta 1,
and I've hacked richedit.html to make the toolbars more compact.
+I've also changed the smilies to refer to Moodle smilies, and
+added/removed some.
+
Martin Dougiamas, 10/10/2002
View
5 lib/rte/richedit.html
@@ -164,8 +164,9 @@
<img class="spacer" src="images/spacer.gif" width="2"><span class="sep"></span>
<img id="btnOutdent" onmousedown="doStyle('Outdent')" alt="@{DecreaseIndent}" src="images/icon_outdent.gif" align="absMiddle" width="20" height="20">
<img id="btnIndent" onmousedown="doStyle('Indent')" alt="@{IncreaseIndent}" src="images/icon_indent.gif" align="absMiddle" width="20" height="20">
+ <img id="btnSelect" onclick="doStyle('SelectAll')" alt="@{SelectAll}" src="images/icon_select_all.gif" align="absMiddle" width="20" height="20">
<span id="featureHistory">
- <img class="spacer" src="images/spacer.gif" width="2"><span class="sep"></span>
+ <img class="spacer" src="images/spacer.gif" width="10"><span class="sep"></span>
<img id="btnPrev" onmousedown="document.execCommand('Undo')" alt="@{HistoryBack}" src="images/icon_undo.gif" align="absMiddle" width="20" height="20">
<img id="btnNext" onmousedown="document.execCommand('Redo')" alt="@{HistoryForward}" src="images/icon_redo.gif" align="absMiddle" width="20" height="20">
</span></nobr></td>
@@ -181,8 +182,6 @@
<img id="btnRule" onclick="doStyle('InsertHorizontalRule')" alt="@{InsertLine}" src="images/icon_rule.gif" align="absMiddle" width="20" height="20">
<img id="btnSmile" onclick="insert('smile')" alt="@{InsertSmily}" src="images/em.icon.smile.gif" align="absMiddle" width="15" height="15">
<img id="btnChar" onclick="insert('char')" alt="@{InsertCharacter}" src="images/icon_ins_char.gif" align="absMiddle" width="20" height="20" border="0">
- <img class="spacer" src="images/spacer.gif" width="2"><span class="sep"></span>
- <img id="btnAbout" onclick="insert('about')" alt="@{About}" src="images/icon_about.gif" align="absMiddle" width="16" height="16">
</span></nobr></td></tr>
<tr id="featureStyleBar" ondragstart="handleDrag(0)" onmouseup="press(false)" onmousedown="press(true)" onmouseover="hover(true)" onmouseout="hover(false)">
<td colspan=2 class="rebar"><nobr><span class="toolbar">
View
2 lib/rte/rte.js
@@ -326,7 +326,7 @@ function pickColor(fg)
setState(el, true);
}
color.style.top = window.event.clientY + 10;
- color.style.left = window.event.clientX - 100;
+ color.style.left = window.event.clientX - 250;
color.style.display = 'block';
color._fg = fg;
}

0 comments on commit 09a4ce3

Please sign in to comment.
Something went wrong with that request. Please try again.