Works on ckeditor integration
This commit is contained in:
parent
4c36a9be36
commit
7ce3f56a6c
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -41,6 +41,7 @@ class DolEditor
|
|||||||
var $content;
|
var $content;
|
||||||
var $htmlname;
|
var $htmlname;
|
||||||
var $toolbarname;
|
var $toolbarname;
|
||||||
|
var $toolbarstartexpanded;
|
||||||
var $rows;
|
var $rows;
|
||||||
var $cols;
|
var $cols;
|
||||||
var $height;
|
var $height;
|
||||||
@ -114,6 +115,7 @@ class DolEditor
|
|||||||
$this->content = $content;
|
$this->content = $content;
|
||||||
$this->htmlname = $htmlname;
|
$this->htmlname = $htmlname;
|
||||||
$this->toolbarname = $toolbarname;
|
$this->toolbarname = $toolbarname;
|
||||||
|
$this->toolbarstartexpanded = $toolbarstartexpanded;
|
||||||
$this->rows = max(ROWS_3,$rows);
|
$this->rows = max(ROWS_3,$rows);
|
||||||
$this->cols = max(40,$cols);
|
$this->cols = max(40,$cols);
|
||||||
$this->height = $height;
|
$this->height = $height;
|
||||||
@ -153,9 +155,9 @@ class DolEditor
|
|||||||
{
|
{
|
||||||
customConfig : \''.DOL_URL_ROOT.'/theme/'.$conf->theme.'/ckeditor/config.js\',
|
customConfig : \''.DOL_URL_ROOT.'/theme/'.$conf->theme.'/ckeditor/config.js\',
|
||||||
toolbar: \''.$this->toolbarname.'\',
|
toolbar: \''.$this->toolbarname.'\',
|
||||||
|
toolbarStartupExpanded: '.($this->toolbarstartexpanded ? 'true' : 'false').',
|
||||||
//width: '.$this->width.',
|
//width: '.$this->width.',
|
||||||
height: '.$this->height.',
|
height: '.$this->height.'
|
||||||
toolbarStartupExpanded: false
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user