All tool buttons at the small editor screen?

All tool buttons at the small editor screen?

by wissanu tangtrongkijwong -
Number of replies: 1

I have a problem, Full screen editor often freeze for long time when I click to text color or smiles tools.  

 If I want to take all table tools (third line toolbar) from Full screen editor page to use for the first page editor.  Where I'll edit code? 

Average of ratings: -
In reply to wissanu tangtrongkijwong

Re: All tool buttons at the small editor screen?

by Janne Mikkonen -
Table tools are plugins and must be loaded before the editor is generated. If you wish to add those buttons on the smaller editor you'll need to change the calling (function use_html_editor) function that generates the editor (lib/weblib.php) to something like this:

<Script type definition goes here>
// load the plugin files
HTMLArea.loadPlugin("TableOperations");

var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");

// register the TableOperations plugin with our editor
editor.registerPlugin(TableOperations);

editor.generate();
return false;
}

initEditor();
</script type definition ends here>

This is not good since you'll lose editor on some modules that uses many editors at the same page.

- Janne -