DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
WYSIWYG Html Editor  
DwZone Forum Index -> WYSIWYG Html Editor

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 71 to 80 of 903 (Total: 371) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: TinyMCE editor inserts extra line breaks / spacing  
View this persons public profile  Steve Skinner   10:39 7 May 2013  
   Re: TinyMCE editor inserts extra line breaks / spacing  
View this persons public profile  Gianluigi   10:52 7 May 2013  
   Re: TinyMCE editor inserts extra line breaks / spacing  
View this persons public profile  Steve Skinner   10:56 7 May 2013  
   TinyMCE file manager error: XML request error: Internal Server Error (500)  
View this persons public profile  Steve Skinner   12:39 6 May 2013  
   Re: TinyMCE file manager error: XML request error: Internal Server Error (500)  
View this persons public profile  Gianluigi   13:47 6 May 2013  
   Re: TinyMCE file manager error: XML request error: Internal Server Error (500)  
View this persons public profile  Steve Skinner   14:44 6 May 2013  
    TinyMCE question - how to populate text snippet with a link?  
View this persons public profile  Steve Skinner   8:05 3 May 2013  
 
I have an editor function where I want to offer a couple different links which will populate the TinyMCE editor with pre-formatted text. With a regular textarea (no editor), this code works perfectly.


<script type="text/javascript">
function addTxt(txt_content)
{
document.getElementById("textField").value = txt_content;
}
</script>
<textarea id="textField"></textarea><br>
<a href="javascript:addTxt('This is sample template text')">Use template text</a>


How can I achieve this same functionality when using the Tiny MCE editor? The same code won't work with TinyMCE editor. I noticed the editor uses tinyEditor_1 and I tried calling that variable too but it didn't work. Any help would be greatly appreciated!
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: TinyMCE question - how to populate text snippet with a link?  
View this persons public profile  Gianluigi   13:58 4 May 2013  
   File manager in TinyMCE Editor - slow to load when there are a lot of files  
View this persons public profile  Steve Skinner   11:22 18 Apr 2013  
   Re: File manager in TinyMCE Editor - slow to load when there are a lot of files  
View this persons public profile  Gianluigi   14:48 18 Apr 2013  
Last Visit: Monday 23 Dec, 2024 8:28 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: