Adding print support to the editor

Adding print support to the editor

de către Steve Sharrad-
Număr de răspunsuri: 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 surâs

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

Media aprecierilor: -
Ca răspuns la Steve Sharrad

Re: Adding print support to the editor

de către Janne Mikkonen-
Sorry that I haven't pay attention to this. I'll check this out asap face cu ochiul

Ca răspuns la Janne Mikkonen

Re: Adding print support to the editor

de către 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

Ca răspuns la Dave Richford

Re: Adding print support to the editor

de către Janne Mikkonen-
The only problem for print button is "already stuffed" toolbar, where to put it...
Ca răspuns la Janne Mikkonen

Re: Adding print support to the editor

de către 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