Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

suggest to use better editor in cb code action

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago - 5 years 3 months ago #313521 by saman2
hi
i want use cb auto action with Code type but it has a not good editor of codebox in the Code tab. can you change to better simple editor such as default code box of joomla in Extension>templates>templates > select some file to edit.
or something such as Fabrik extension code box?
Last edit: 5 years 3 months ago by saman2.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 3 months ago #313530 by krileon
No, editors alter the content they're editing. The code stored needs to be raw. An editor just adds fancy colors and that's all it's good for unless it can provide autocomplete and full syntax hints, which would make the editor massive to be able to do that. I recommend using an actual code editor then copying your code over once done so you can have proper autocomplete and syntax hints.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago #313535 by saman2
i suggest something such as this:



this is standard joomla code editor? Isn't it?
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 3 months ago #313537 by krileon
That's CodeMirror and it doesn't do anything except alter content (depending on what parameters you have configured for it) and apply coloring. Its JS for rebinding is unreliable so it won't work well with multi-code output (when adding more than 1 code usage in a code action) and it slows the page down. It brings little value as an actual editor. I recommend using an external editor where you'll gain actual value then just copy the code over. There's several well made free ones like Visual Studio Code, Netbrains, etc..

There are no plans to implement support for an editor there, sorry.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: saman2

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum