Question about insertObject
I noticed that you can call
$( '#RICH_TEXTAREA' ).rich_textarea( 'insertObject', '<span class="ui-button ui-state-default ui-widget ui-corner-all ui-button-text-only">'tag1'</span>' );
to insert tag-like text into the textarea. But, it's not an actual text object. I am a bit confused on how to insert a tag with a method call (without char triggering) and didn't find any documentation on this. Is this possible to do?
Ah...got it within seconds after posting this question:
$( '#RICH_TEXTAREA' ).rich_textarea( 'insertObject', '<span class="ui-button ui-state-default ui-widget ui-corner-all ui-button-text-only">Tag1</span>', 'tag1' );
Hi Yermo, if you get a chance to read this, is it possible to insert objects such as this?
$('#rich_textarea').rich_textarea('insertObject', 'Visit Google');
I am noticing that inserting normal text mixed with html-rich text has to be done separately. The above line only inserts 'Visit ' I have to call insertObject twice, on 'Visit ' and then a second time with 'Google'.
Put it in a or tag or similar. -- Yermo On 09/10/2014 11:56 AM, Andrew Chan wrote: Hi Yermo, if you get a chance to read this, is it possible to insert
objects such as this? $('#rich_textarea').rich_textarea('insertObject', 'Visit Google
http://google.com'); I am noticing that inserting normal text mixed with html-rich text has
to be done separately. The above line only inserts 'Visit ' I have to
call insertObject twice, on 'Visit ' and then a second time with 'Google
http://google.com'. —
Reply to this email directly or view it on GitHub
https://github.com/Yermo/rich_textarea/issues/4#issuecomment-55137317. Yermo Lamers Software Guy, Motorcyclist and Reluctant Writer A social network for the lucky few who travel by motorcycle
http://miles-by-motorcycle.com
and those who care about them.