Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Tiny Mce Wysiwyg Editor Doesn't Keep ‎ Code In Source Code! Rate Topic   - - - - -

 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 23 August 2017 - 06:29 AM #1

Hello,

 

I'm using cs-cart v 4.6.1 with Tiny MCE wysiwyg editor. The problem is when I write symbol codes like $lrm; in Tiny MCE Source Code body and save the content, the code applies to the content but it doesn't show it. 

It seems Tiny MCE doesn't keep ‎ in the source code (It will be hidden!). I can see $lrm; in Inspect elements but in the source code of editor it doesn't display the code!

 

In cs-cart version 2.x with CKeditor everything was OK, but cs-cart version 4.6.1 doesn't have CKeditor and I don't want to install ckeditor plugin.

 

Is there a way to make Tiny MCE editor keep &lrm, $nbsp and such symbols after saving the content?

 

Thanks

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19846 posts

Posted 23 August 2017 - 01:03 PM #2

If you do not find solution for TinyMCE, you can use our free Full CKEditor module

 

https://www.ecom-lab...tor-add-on.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 26 August 2017 - 08:18 AM #3

If you do not find solution for TinyMCE, you can use our free Full CKEditor module

 

https://www.ecom-lab...tor-add-on.html

Thank you so much 



 
  • Armita84
  • Member
  • Trial users
  • Join Date: 27-Sep 16
  • 42 posts

Posted 26 August 2017 - 08:27 AM #4

I've found the solution, though it's not the best one!

 

Open tinymce-editor.js file in the path 'js/tygh/editors'  and replace every entity_encoding = 'raw' to entity_encoding = 'named'. Now all html code like ‎ &nbsp and so on will be preserved in TinyMEC editor source code.