Post by Topsecret » Sat Mar 14, 2015 6:41 pm

Dear OpenCart users,
I am looking for some time for a CKEditor for the OC2.x versions. I have written one myself somewhere in 2014 but I am not happy about it. I am using the folder admin/view/javascript/ckeditor with the 4.7 version. Unfortunately it doesn't work 100%. When editing and adding images, I have to fill out the comlete URL of the image. Before I had a grafic solution and I could browse to it. Also uploading images is NOT possible

Yesterday I bought 2 CKEditors on the OC Extensions. Both of them had similar problems as written above. Who knows the solution?

An example can be found at: http://v2.demo.paibkk.com/admin
Username: demo
Password: demo

I prefer working with the old CKEditor.
An example can be found at: http://demo.paibkk.com/admin
Username: demo
Password: demo

This has been changed:
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript"><!--
<?php foreach ($languages as $language) { ?>
CKEDITOR.replace('description<?php echo $language['language_id']; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
<?php } ?>
//--></script>

to OC 2.0.x:

<script type="text/javascript"><!--
<?php foreach ($languages as $language) { ?>
$('#input-description<?php echo $language['language_id']; ?>').summernote({height: 300});
<?php } ?>
//--></script>

The OCMOD I wrote:

<operation>
<search><![CDATA[<script type="text/javascript">]]></search>
<add position="before"><![CDATA[
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> ]]>
</add>
</operation>

The 2.0 editor (summernote) is to blame. How to solve this problem???

Kind regards,
Fred

Kind regards,
Fred

Image


User avatar
Active Member

Posts

Joined
Fri Apr 26, 2013 11:25 am

Who is online

Users browsing this forum: No registered users and 7 guests