Last 15 Snips show! Welcome to Snipped, a code gallery for creating, saving and sharing all kinds of code snippets.

Fix: Fehler im Editor (Eigene Seiten) CKEditor

JTL Shop 4 · April 29, 2016 11:12 am

0 0 509

Editor Inhalt wird gelöscht wenn man zwischen Quellcode und Ansicht switcht.

###### admin\templates\bootstrap\tpl_inc\footer.tpl

<script type="text/javascript">
if (typeof CKEDITOR !== 'undefined') {ldelim}
CKEDITOR.config.startupMode = {if isset($Einstellungen.global.admin_ckeditor_mode) && $Einstellungen.global.admin_ckeditor_mode == 'Q'}'source'{else}'wysiwyg'{/if};
CKEDITOR.config.htmlEncodeOutput = false;
CKEDITOR.config.allowedContent = true;
CKEDITOR.config.enterMode = CKEDITOR.ENTER_P;
CKEDITOR.config.entities = false;
CKEDITOR.config.entities_latin = false;
CKEDITOR.config.entities_greek = false;
CKEDITOR.config.ignoreEmptyParagraph = false;
CKEDITOR.config.filebrowserBrowseUrl = '{$PFAD_KCFINDER}browse.php?type=Sonstiges&token={$smarty.session.jtl_token}';
CKEDITOR.config.filebrowserImageBrowseUrl = '{$PFAD_KCFINDER}browse.php?type=Bilder&token={$smarty.session.jtl_token}';
CKEDITOR.config.filebrowserFlashBrowseUrl = '{$PFAD_KCFINDER}browse.php?type=Videos&token={$smarty.session.jtl_token}';
CKEDITOR.config.filebrowserUploadUrl = '{$PFAD_KCFINDER}upload.php?type=Sonstiges&token={$smarty.session.jtl_token}';
CKEDITOR.config.filebrowserImageUploadUrl = '{$PFAD_KCFINDER}upload.php?type=Bilder&token={$smarty.session.jtl_token}';
CKEDITOR.config.filebrowserFlashUploadUrl = '{$PFAD_KCFINDER}upload.php?type=Videos&token={$smarty.session.jtl_token}';
CKEDITOR.config.extraPlugins = 'codemirror';
CKEDITOR.config.fillEmptyBlocks = false;
CKEDITOR.config.autoParagraph = false;
{rdelim}
</script>

Discuss this Snip
    No Discussion Comments found.

    You must be Signed In to discuss this Snip
Chris

Chris

Joined on
April 28, 2016

  • 22 Snips
    Contributed
  • 19 Likes
    Given
  • 8 Comments Posted
Snip Tags
Get Social And Share

Manage and share all of your code snippets in one easy place.