Re: When WYSIWYG is not WYSIWYG
Posted: Fri 5. Sep 2008, 01:54
[x]
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
The toolbars are NOT!!! hardcoded there. These are just fallbacks. Custom templates can be defined in conf.inc.php:flip-flop wrote:First: The toolbar names are hardcodet in /include/inc_tmpl/profile.account.tmpl.php
-> $wysiwygTemplates['FCKeditor'] = array('phpwcms_basic','phpwcms_default','Default','Basic');
Second: I managed a custom toolbar in fckeditor_config.js.php
For me it is sufficient to edit a existing toolbar e.g. like phpwcms_basic (without [images] and with [paste text].Code: Select all
// a minimized FCKeditor Toolbar for phpwcms FCKConfig.ToolbarSets["phpwcms_basic"] = [ ['Bold','Italic','Underline','OrderedList','UnorderedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Link','Unlink','TextColor','BGColor','PasteText'], ['FitWindow','Source'] ] ;
Code: Select all
$phpwcms['wysiwyg_template'] = array( 'FCKeditor' => 'phpwcms_basic,phpwcms_default,Default,Basic', 'CKEditor' => 'phpwcms_basic,phpwcms_default,Default,Basic' );
That worked. Thanks!logout of the system, empty browser cache, reload, log in again