Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom TV input type for ACE editor #6

Open
bertoost opened this issue Aug 26, 2012 · 10 comments
Open

Custom TV input type for ACE editor #6

bertoost opened this issue Aug 26, 2012 · 10 comments

Comments

@bertoost
Copy link

Should be cool to have a custom ACE input TV option. With this option you've being able to create a "code" TV field for resources. This is useful to developers (using resource-groups to hide that field for clients ;-) hehe).

@adamwintle
Copy link

This is a good idea and something I was just looking for. Does anyone know if this happened or if there's a way to do this yet?

@danyaPostfactum
Copy link
Owner

@adamwintle there is a proposed patch (#9).
Can you explain please why do you need such kind of tv? You can use a plain textarea tv.

@adamwintle
Copy link

For some of my templates I've got a headerExtra and a footerExtra TV (which is hidden from client's like Bert mentioned) so we can add some extra code to a page's header or footer if needed (for a Google Map or a gallery, etc)

It would be very useful if these could use the Ace code editor with the tabbing, code highlighting plus other features. Just using a plain textarea isn't so useful for code editing.

@danyaPostfactum
Copy link
Owner

Thanks. I'll take into consideration. By the way, if you don't use WYSIWYG (but your clients can always use it), you can create use_editor user setting and set to false and every rte tv will turn into an ace editable area.

@pixelchutes
Copy link

👍

Did not know about the RTE TV conversion > Ace with use_editor disabled. Is there anyway to make it apply to textarea input TVs, too?

Just thinking about the use case where a Rich Text editor is preferred for formatted, text input only, but then other TVs used for handling extra code (HTML/CSS/JavaScript) at the Resource level, where Ace makes perfect sense...syntax highlighting FTW!

@nong-monogon
Copy link

Any update on this? Want to use Ace on TV text area

@matdave
Copy link

matdave commented Oct 7, 2015

+1... 00,000

@sonicpunk
Copy link

crickets It would be great if someone posted a solution to this!

@evd
Copy link

evd commented Feb 4, 2016

You can use plugin #9 (comment)

@sonicpunk
Copy link

Thanks for the Link!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants