2017-10-02 3 views
0

私はTYPO3 8.7.7インストールがあり、私はrte_ckeditorを使用しています。私はエディタを設定しようとしていますが、うまくいかないようです。 RTE.default.preset = fullなどを設定するとバックエンドフォームに何も変わりません。TYPO3 CKEditor - 構成が動作しない

しかし、個別のオプションを設定する必要があります。だから私は、私は、バックエンドを経由して、フォルダ、システムキャッシュをtypo3tempクリアインストールツールを経由してすべてのキャッシュ、無効にしたも

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['mytemplate'] = 'EXT:mytemplate/Configuration/RTE/rte.yaml'; 

と私の拡張ext_localconf.phpに登録されている私自身のYAMLファイル(RTE.default.preset = mytemplate)に、デフォルトのプリセットを設定します私のテンプレート拡張を再度有効にしました。

また、RTEのバックエンドフォームでは何も変更しません。

バックエンドのシステムキャッシュをクリアしてバックエンドフォームを保存するときに唯一のことTYPO3は私のYAMLファイルに構文エラーを表示します - これはすべて今解決済みですが、何も表示されません。ただ、デフォルトのRTE ...

私のYAMLファイルには、何も特別なものを持っていません...ちょうど来る私の設定を取得するためのトリックは何クラスと「H6」

imports: 
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } 
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } 
    - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } 

editor: 
    config: 

    contentsCss: ["EXT:mytemplate/Resources/Public/css/rte/rte.css"] 

    format_tags: "p;h1;h2;h3;h4;h5;h6" 

    stylesSet: 
     - { name: "align-left", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6', 'p', 'td', 'th'], attributes: { 'class': 'align-left' }} 
     - { name: "align-center", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6', 'p', 'td', 'th'], attributes: { 'class': 'align-center' }} 
     - { name: "align-right", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6', 'p', 'td', 'th'], attributes: { 'class': 'align-right' }} 
     - { name: "align-justify", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6', 'p', 'td', 'th'], attributes: { 'class': 'align-justify' }} 
     - { name: "Headline Stil 1", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6'], attributes: { 'class': 'headline-style-1' }} 
     - { name: "Headline Stil 2", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6'], attributes: { 'class': 'headline-style-2' }} 
     - { name: "Headline Stil 3", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6'], attributes: { 'class': 'headline-style-3' }} 
     - { name: "Headline Stil 4", element: ['h1', 'h2', 'h3', 'h4','h5', 'h6'], attributes: { 'class': 'headline-style-4' }} 
     - { name: "Button-Link Primär", element: ['a'], attributes: { 'class': 'rte-btn-primary' }} 
     - { name: "Button-Link Sekundär", element: ['a'], attributes: { 'class': 'rte-btn-secondary' }} 
     - { name: "Button-Link Tertiär", element: ['a'], attributes: { 'class': 'rte-btn-tertiary' }} 

    toolbarGroups: 
     - { name: styles, groups: [ styles, format ] } 
     - { name: basicstyles, groups: [ basicstyles ] } 
     - { name: paragraph, groups: [ list, indent, blocks, align ] } 
     - { name: links, groups: [ links ] } 
     - { name: clipboard, groups: [ clipboard, cleanup, undo ] } 
     - { name: editing, groups: [ spellchecker ] } 
     - { name: insert, groups: [ insert ] } 
     - { name: tools, groups: [ table, specialchar ] } 
     - { name: document, groups: [ mode ] } 

    justifyClasses: 
     - align-left 
     - align-center 
     - align-right 
     - align-justify 

    extraPlugins: 
     - justify 

    removePlugins: 
     - image 

    removeButtons: 
     - Anchor 
     - Underline 
     - Strike 
     - Styles 

でrelacedフォーマットタグ「プレ」ワーキング?!

+0

私は同じ問題に苦しんでいます...あなたはこれに対する解決策を見つけましたか? – Swissdude

+0

DCE内線番号にRTEフィールドを使用していますか? –

+0

fluid_content、fluidpages、fluxを使用しています – Swissdude

答えて

0

私の場合、私はDCE Extensionを使用していました - プリセットが無視されました。任意のプリセットを使用このDCEフィールドコンフィグを使用するには:

<config> 
    <type>text</type> 
    <rows>5</rows> 
    <cols>30</cols> 
    <eval>trim,required</eval> 
    <enableRichtext>1</enableRichtext> 
    <richtextConfiguration>mypreset</richtextConfiguration> 
</config> 

私はDCE内線の内線の開発者に通知し、彼はすでにRTE Con​​figを「プリセット」に更新します。

関連する問題