inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 31, 2013 19:24:45 GMT -8
how do you check if you're using the BBC editor or Visual editor??
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 1, 2013 4:59:10 GMT -8
The easiest would be to test for which is currently visible
$('.editor.visual-editor').is(':visible') //returns true if visual editor (aka preview tab) is visible
If you've saved a reference to the wysiwyg data object then the currentEditorName property would also yield that info ("bbcode" or "visual")
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Nov 1, 2013 5:24:23 GMT -8
how would you save a reference to the wysiwyg data object?? I'm not trying to sound stupid... this is more of a reference thread to somewhat serve as a documentation rather than a public discussion. (for the other noobs) as-is my other "How to:" thread.thanx
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Nov 1, 2013 6:31:25 GMT -8
how would you save a reference to the wysiwyg data object?? I'm not trying to sound stupid... this is more of a reference thread to somewhat serve as a documentation rather than a public discussion. (for the other noobs) as-is my other "How to:" thread.thanx This is not so much a Proboards question as a question regarding understanding jQuery and jQuery UI and how it works which I believe someone posted a link for you to go and study. Basically when a widget such as the wysiwyg widget gets created it attaches a data object filled with the properties and methods it offers to the element upon which it was invoked, in the case of the wysiwyg that would be the textarea bearing the "wysiwyg-textarea" class. I noticed that you flippant ly dismissed the link but it would actually help you to know that stuff.
|
|