inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 22, 2013 8:08:55 GMT -8
it's my preview plugin I've been complaining OH SO MUCH about I have the main code for the auto-updating previewer here: tcll5850.hostoi.com/preview.htmnow I just need to know how to put this into a plugin to display it above the BBC text area I'd also like to place a checkbox for the visual editor to display the preview, just in case you want it note: I intend to mimick the behavior of the kc-mm preview where it shoves the editor downward instead if displaying in a fixed area. (I don't want a border like in the example) so what I need to know is a decent activation code to activate the plugin on the posting page, as well as the call to convert BBC to HTML, and how to detect which editor you're currently using. much appreciated
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 25, 2013 7:59:44 GMT -8
bump
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 27, 2013 20:18:18 GMT -8
so... nobody knows how to code a plugin initializer at the post editor page huh??
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Oct 28, 2013 16:27:47 GMT -8
so... nobody knows how to code a plugin initializer at the post editor page huh?? There are a few ways to call a function on the post editor page. Do a location check and and call the function if it finds the correct string.
Check the document.title.
Take a peek at proboards.data('route').name and call the function if it finds 'new_', 'quote_' or 'edit_'.
Use liveQuery and watch for the WYSIWYG editor to call the function when it appears.
Same again, but watch for any of the buttons within the editor. Take your pick and use the one most suited to your code.
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 30, 2013 14:35:31 GMT -8
I guess what I should've asked was...
how do I make an initializer that looks for '<div class="container new-area wysiwyg-area">'??
$(document).ready(function() { what goes here? });
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 30, 2013 17:32:56 GMT -8
I'm getting tired of making edits that don't work :/
some help would be nice :/ (as in more members than Todge)
thanx for your current help, but I can't simply get a test string to show above the editor :/
even went as far as:
$(document).ready(function() { $(document).getElementById( 'content' ).prepend("<p>test</p>"); });
doesn't work...
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Oct 30, 2013 17:47:10 GMT -8
uugh... I really need to stop being cocky -.-*
sorry guys...
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 27, 2024 15:01:37 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 30, 2013 18:18:55 GMT -8
Just try waiting more between posts, you can't expect responses that fast, most people with plugin knowledge are also extremely busy in real life and with their own huge to-do list for plugins. =) It doesn't mean you're being ignored, it means they're busy is all ^^
|
|
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 6:55:17 GMT -8
yeh, and I'm in that position myself, I just didn't realize what I was doing until my last post... thanx it's not exactly entirely my fault I'm acting like this... my G-ma died, and it's still hitting me hard. I'm not asking for pity, I'm just letting you know what's up. :/ sorry again for my actions. to top things off, I'm autistic, which makes "being patient" extremely difficult for me... heh I'm not saying I won't deal with it. it's just another thing to know about me is all.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Oct 31, 2013 10:48:41 GMT -8
|
|
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 12:01:13 GMT -8
well... thanx I guess >.> eh... I just used jquery because it's there, and used by 2 other plugins I have... (not by me) and this basically is simple... I already have the code I need... I just need to build an initializer to inject the code into the DIV. once I get this initializer down, I should have no problems building future initializers. that my friend is where you're wrong. I use the answers people give as reference for other projects. to put things simply, that's how I learned OpenGL for my program. (though I was lead through the old FFP rather than modern GL due to bad examples) yes, I learn through other's examples by using them in my projects and making mods to them. the documentation for something never gets me anywhere I need in a split second because people would rather explain something off-topic rather than get right to the point about a class or function and what it does.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Oct 31, 2013 12:05:49 GMT -8
I'm getting tired of making edits that don't work :/ some help would be nice :/ (as in more members than Todge) thanx for your current help, but I can't simply get a test string to show above the editor :/ even went as far as: $(document).ready(function() { $(document).getElementById( 'content' ).prepend("<p>test</p>"); }); doesn't work... I thought I'd given you links to explain what you needed to answer this question about why it wasn't working I'll step out of this one.
|
|
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 12:57:21 GMT -8
I thought I'd given you links to explain what you needed to answer this question about why it wasn't working I'll step out of this one.
yea... that didn't really help out by much... it only verified what I already knew... here's one of those tests I did that didn't work: (one that follows the JQuery style)
$(document).ready(function() { $(".content.cap-bottom").prepend("<p>testing</p>"); });
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Oct 31, 2013 13:38:36 GMT -8
$(document).ready(function() { $(".content.cap-bottom").prepend("<p>testing</p>"); });
should work just fine. I ran it in the console and it worked. If you have a link to where you have that code and its not working, I'll look at it.
|
|
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 15:21:28 GMT -8
ok... now it's randomly working >.> that's weird...
is there a delay of time it takes for the server to update the plugin??
|
|