Adding print support to the editor

Adding print support to the editor

av Steve Sharrad -
Antal svar: 4

Hi

We've found a way of enabling print support to the editor by editing the htmlarea.php file in htdocs\lib\editor, by adding the following lines;

 separator", "htmlmode", "separator", "popupeditor","separator","printeditor"]

to the toolbar declaration, and also the following to btnlist;

printeditor: [ "print", "ed_print.gif", true, function(e) {e.execCommand("print");}],

Ive included the file as well leende

Just wondering if anyone else has done this and if they found any problems, as it seems a very easy thing todo.

Any ideas if its going tobe included in future updates?

Thanks

Genomsnitt av betyg: -
Som svar till Steve Sharrad

Re: Adding print support to the editor

av Janne Mikkonen -
Sorry that I haven't pay attention to this. I'll check this out asap blinkning

Som svar till Janne Mikkonen

Re: Adding print support to the editor

av Dave Richford -

Thought I'd better check before I posted this myself. My users have also requested the print button and I came up with the same solution as Moby - all the required functionality is already programmed into the HTMLarea.

Is there any possibility of seeing this as part of the standard installation?

Cheers,

Dave Richford

Som svar till Dave Richford

Re: Adding print support to the editor

av Janne Mikkonen -
The only problem for print button is "already stuffed" toolbar, where to put it...
Som svar till Janne Mikkonen

Re: Adding print support to the editor

av Dave Richford -

Several options here -

1. Extend the toolbar width again
2. Remove two vertical division bars (what we did)
3. Replace a relatively unused button like strikethrough (controversial!)
4. Admit defeat and start a new toolbar (what we had to do with our other RTE in a different system)
5. Dont put it in

Anyone have any thoughts on this?

Dave Richford