Works on ckeditor integration
This commit is contained in:
parent
4c36a9be36
commit
7ce3f56a6c
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2010-2011 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
|
||||
@ -41,6 +41,7 @@ class DolEditor
|
||||
var $content;
|
||||
var $htmlname;
|
||||
var $toolbarname;
|
||||
var $toolbarstartexpanded;
|
||||
var $rows;
|
||||
var $cols;
|
||||
var $height;
|
||||
@ -111,13 +112,14 @@ class DolEditor
|
||||
|
||||
if (in_array($this->tool,array('textarea','ckeditor')))
|
||||
{
|
||||
$this->content = $content;
|
||||
$this->htmlname = $htmlname;
|
||||
$this->toolbarname = $toolbarname;
|
||||
$this->rows = max(ROWS_3,$rows);
|
||||
$this->cols = max(40,$cols);
|
||||
$this->height = $height;
|
||||
$this->width = 600;
|
||||
$this->content = $content;
|
||||
$this->htmlname = $htmlname;
|
||||
$this->toolbarname = $toolbarname;
|
||||
$this->toolbarstartexpanded = $toolbarstartexpanded;
|
||||
$this->rows = max(ROWS_3,$rows);
|
||||
$this->cols = max(40,$cols);
|
||||
$this->height = $height;
|
||||
$this->width = 600;
|
||||
}
|
||||
|
||||
}
|
||||
@ -153,9 +155,9 @@ class DolEditor
|
||||
{
|
||||
customConfig : \''.DOL_URL_ROOT.'/theme/'.$conf->theme.'/ckeditor/config.js\',
|
||||
toolbar: \''.$this->toolbarname.'\',
|
||||
toolbarStartupExpanded: '.($this->toolbarstartexpanded ? 'true' : 'false').',
|
||||
//width: '.$this->width.',
|
||||
height: '.$this->height.',
|
||||
toolbarStartupExpanded: false
|
||||
height: '.$this->height.'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user