mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
first tentative of adding a field
This commit is contained in:
parent
89d09fa95d
commit
90d2edb2e7
2 changed files with 13 additions and 0 deletions
|
@ -154,6 +154,10 @@ var padeditbar = (function()
|
||||||
{
|
{
|
||||||
ace.ace_doIndentOutdent(true);
|
ace.ace_doIndentOutdent(true);
|
||||||
}
|
}
|
||||||
|
else if (cmd == "style")
|
||||||
|
{
|
||||||
|
alert("TOTO");
|
||||||
|
}
|
||||||
else if (cmd == 'clearauthorship')
|
else if (cmd == 'clearauthorship')
|
||||||
{
|
{
|
||||||
if ((!(ace.ace_getRep().selStart && ace.ace_getRep().selEnd)) || ace.ace_isCaret())
|
if ((!(ace.ace_getRep().selStart && ace.ace_getRep().selEnd)) || ace.ace_isCaret())
|
||||||
|
|
|
@ -28,6 +28,15 @@
|
||||||
<a class="buttonicon buttonicon-strikethrough" title="Strikethrough"></a>
|
<a class="buttonicon buttonicon-strikethrough" title="Strikethrough"></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="separator"></li>
|
<li class="separator"></li>
|
||||||
|
<li id="style">
|
||||||
|
<select onchange="window.pad&&pad.editbarClick('style');return false;">
|
||||||
|
<option value="style-title-1">First level title</option>
|
||||||
|
<option value="style-title-2">Second level title</option>
|
||||||
|
<option value="style-title-3">Third level title</option>
|
||||||
|
<option value="style-title-4">Fourth level title</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li class="separator"></li>
|
||||||
<li id="oderedlist" onClick="window.pad&&pad.editbarClick('insertorderedlist');return false;">
|
<li id="oderedlist" onClick="window.pad&&pad.editbarClick('insertorderedlist');return false;">
|
||||||
<a class="buttonicon buttonicon-insertorderedlist" title="Toggle Ordered List"></a>
|
<a class="buttonicon buttonicon-insertorderedlist" title="Toggle Ordered List"></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue