Hello everyone
I know there have been other discussions regarding TinyMCE and
KnockoutJS. I can't seem to find even a simple case, though.
With my situation, I have 3-4 text areas that I will need to have on
my screen. Data-binding is properly set up and works so long as I'm
not trying to utilize a WYSIWYG editor, it seems.
If I do the code below, everything works great, but I get none of the
WYSIWYG fanciness:
<input type="text" id="textThatShouldBeBound" data-bind="value:
TextThatShouldBeBound" maxlength="4000" />
When I try to utilize the WYSIWIG, though, I see nothing. I tried to
follow along with Ryan Hoffman's thread (
http://groups.google.com/
group/knockoutjs/browse_thread/thread/c99219d905d610fa) but I believe
that's far more complicated than anything I need. Regardless I tried
this:
<textarea id="test" data-bind="tinymce: TextThatShouldBeBound,
tinymceOptions: { theme: 'advanced' }">"></textarea>
I also tried putting the tinyMce portion of the code from the
javascript here into my Script portion, but I'm not able to see any
results. That Javascript portion came from one of Mr. Niemeyer's
JSFiddle pages:
http://jsfiddle.net/rniemeyer/BwQ4k/
Does anyone have some suggestions for very basic 1:1 databinding for
multiple text areas on a single page?
Thanks!