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

transformTextarea doesn't (really) return API object #199

Closed
NV opened this Issue Apr 4, 2011 · 3 comments

Comments

Projects
None yet
4 participants
@NV
Contributor

NV commented Apr 4, 2011

Using build/textarea/editor.html, I cannot even access methods like setTheme and resize.

-> ace.transformTextarea(textarea)
>> {
  getOption: function (a){return f[a]}
  getOptions: function (){return f}
  setDisplaySettings: function (a){d.style.display=a?"block":"none"}
  setOption: function (d,e){if(f[d]!=e) ...
}

Would be nice to have a "edit" method that accept both textarea and pre.
@gissues:{"order":81.98757763975163,"status":"backlog"}

@ghost ghost assigned fjakobs Jul 23, 2011

@dascritch

This comment has been minimized.

Show comment
Hide comment
@dascritch

dascritch Oct 26, 2011

Yep, up for this one :
I build an Ace on a textarea, in a pure liquid layout. but i goes completely ugly if i resize the window.
I wish to fire a getSession().resize() but no way. I have to make very bad tricks with style on the embedders div, but that is simply doesn't work correctly.

Anyway to have a complete API there ?

dascritch commented Oct 26, 2011

Yep, up for this one :
I build an Ace on a textarea, in a pure liquid layout. but i goes completely ugly if i resize the window.
I wish to fire a getSession().resize() but no way. I have to make very bad tricks with style on the embedders div, but that is simply doesn't work correctly.

Anyway to have a complete API there ?

@dascritch

This comment has been minimized.

Show comment
Hide comment
@dascritch

dascritch Nov 3, 2011

Another issue I have now :
I created my version of the "reset" button, mainly because i have "fluid" forms...
When I fire "reset" trigger... no way to ask Ace to fallback to the now resetted textarea values, because no complete API...

dascritch commented Nov 3, 2011

Another issue I have now :
I created my version of the "reset" button, mainly because i have "fluid" forms...
When I fire "reset" trigger... no way to ask Ace to fallback to the now resetted textarea values, because no complete API...

@nightwing

This comment has been minimized.

Show comment
Hide comment
@nightwing

nightwing May 20, 2012

Member

with c2166a2 transformTextarea returns editor object + functions from old api
but anyway i don't think using build/textarea is a good idea, it's barely good enough to be an example

Member

nightwing commented May 20, 2012

with c2166a2 transformTextarea returns editor object + functions from old api
but anyway i don't think using build/textarea is a good idea, it's barely good enough to be an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment