2015-01-03, 08:56 PM
Hi!
We are trying to develop a plugin to turn MyBB into a roleplaying forum. For this we have a special button which should insert a "[character]Big evil dragon[/character]" into the text. When the enhanced texteditor (with buttons for bold, italic, etc.) is disabled you can acess this easily with JavaScript-object "document.all.message.innerHTML". But how can I access the message when the enhanced editor is enabled and add my little text into it? And how can I find out, which editor is enabled? The plain html textarea or the enhanced one?
Thanks so far!
Murray_B
We are trying to develop a plugin to turn MyBB into a roleplaying forum. For this we have a special button which should insert a "[character]Big evil dragon[/character]" into the text. When the enhanced texteditor (with buttons for bold, italic, etc.) is disabled you can acess this easily with JavaScript-object "document.all.message.innerHTML". But how can I access the message when the enhanced editor is enabled and add my little text into it? And how can I find out, which editor is enabled? The plain html textarea or the enhanced one?
Thanks so far!
Murray_B