Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8908131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:05:57+00:00 2026-06-15T03:05:57+00:00

I have the aloha editor installed and working. Now I want to create a

  • 0

I have the aloha editor installed and working. Now I want to create a custom button in the toolbar. That when clicked it opens the codecogs equation editor popup.
The way I would do it normally without aloha is to add the popup script and call this function

<p><a href="javascript:OpenLatexEditor('target','html','')"> 
     Launch CodeCogs Equation Editor</a></p>

But I would rather have a button in the toolbar then a link after each editable. I read the plugin documentation for aloha-editor.

This is what I have so far:

define([
    'aloha',
    'jquery',
    'aloha/plugin',
    'ui/ui',
    'ui/button'

], function(Aloha,
        jQuery,
        Plugin,
        Ui,
        Button) {
'use strict';

var GENTICS = window.GENTICS;
return Plugin.create('equationButton', {
    init: function () {
       var that = this;

        this._insertEquation = Ui.adopt("insertEquation", Button, {
            iconOnly: true,
            icon: 'aloha-icon-equation',
            click: function(){
                that.insertEQ();
            }
        });
    },
    insertEQ: function() {
        var self = this;

        if(Aloha.activeEditable) {
            window.location = OpenLatexEditor('target','html','');
        }
    }
});
});

However, How do I include the script for the equation editor popup which is here. And is this how I am supposed to use Window.location or does it only take raw url strings?

Thanks,
Jiyda

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:05:58+00:00Added an answer on June 15, 2026 at 3:05 am

    After asking in the aloha editor’s forum I received my answer from one of the employees and it worked, here is the answer:

    Have look at the metaview plugin — this is a quite small / simple plugin. There’s the “buttonClick” method where you can add the code that should be executed when a button is clicked.
    You can copy the metaview plugin, rename it and adjust the rest to you needs.
    Be sure to add / adjust also the toolbar.tab settings.
    (I suppose the scope should be in your case: “Aloha.continuoustext” )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Aloha, I have a custom control that I need to instantiate from within a
We have a blocker bug with Aloha Editor which is holding back the 0.10
Aloha everyone, I have another question. I have a SYDI script that retrieves WMI
Aloha! I have a role that I'm busy defining in a Moose class called
I'm working with Aloha-Editor (AE) and as explained here , Aloha appears to do
Aloha I have a VS2008 solution to which I want to add a webservice
Aloha, I have a 8MB XML file that I wish to deserialize. I'm using
I have a sprite loaded from a PNG that has an alpha channel. The
I have an image (PNG file) that has an alpha channel that is set
I have a regular expression ^[a-zA-Z+#-.0-9]{1,5}$ which validates that the word contains alpha-numeric characters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.