Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Extending the toolbar -with some extra buttons #176

Closed
ra00f opened this issue Aug 11, 2012 · 2 comments
Closed

Extending the toolbar -with some extra buttons #176

ra00f opened this issue Aug 11, 2012 · 2 comments

Comments

@ra00f
Copy link

ra00f commented Aug 11, 2012

Hello,

I need to add some more buttons to the toolbar.

Basically, I need to provide the users to insert certain unicode characters for fractions - ½, ¼, ¾ etc and some other symbols for inches, degrees

I've altered the toolbar to the GUI, but I don't know how to make the command work. Hope this would be simple as it doesn't include any HTML parsing rules. The buttons should insert the specified character, in to the iframe, when clicked.

I currently have the following code in the toolbar

<li data-wysihtml5-command="insertInches" title="Insert inches symbol" class="command"></li>

<li data-wysihtml5-command-group="foreFrac" class="fore-frac command" title="Insert the fraction">

<ul>

<li data-wysihtml5-command="foreFrac" data-wysihtml5-command-value="½">½</li>

<li data-wysihtml5-command="foreFrac" data-wysihtml5-command-value="⅓">⅓</li>

<li data-wysihtml5-command="foreFrac" data-wysihtml5-command-value="⅔">⅔</li>

</ul>

</li>

Any help would be appreciated.

Thanks.

@Mipme
Copy link

Mipme commented Aug 17, 2012

Hi ra00f,
you could try it with inserting html-code:

  <a data-wysihtml5-command="insertHTML" data-wysihtml5-command-value="&frac14;">1/4</a>

Haven't tried myself tough...

@ra00f
Copy link
Author

ra00f commented Aug 18, 2012

Thank you so much for the reply. It's as simple as that!

<li data-wysihtml5-command="insertHTML" data-wysihtml5-command-value="½">½</li>

@ra00f ra00f closed this as completed Aug 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants