|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Adding a wysiwyg editor to my admin screen?Hi all,
I need to add a WYSIWYG editor in an admin screen that my plugin creates. I need the wysiwyg editor to be as similar to the one in the Add/Edit post/page screen. Instead of packaging my own wysiwyg editor for distribution, I would like to use the inbuilt one. How can this be done? Warm Regards, Raj _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Adding a wysiwyg editor to my admin screen?the_editor($content) is a nice choice, and is exactly what the admin
dashboard uses. I'm a bit fuzzy on exactly which js files need to be included, but here's my list I've got right now (likely bloated) Found them online through several incomplete sources. wp_enqueue_script('editor'); wp_enqueue_script('word-count'); wp_enqueue_script('post'); wp_enqueue_script( 'thickbox' ); wp_enqueue_script( 'common' ); wp_enqueue_script( 'jquery-color' ); add_thickbox(); wp_print_scripts('media-upload'); wp_tiny_mce(); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); When you make your call , it will look something like this: <div id="poststuff"> <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> <?php $this_content="<h1>Groovy Content</h1>"; the_editor($this_content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2); ?> </div> </div> Hope that helps you along. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Matthew Kettlewell - aka "The Dominator" O: 970-985-4192 C: 970-261-2684 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ SEO - Social Media - Internet Marketing Blogging - Seminars - Training - Consulting ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ http://www.BloggingEmergency.com/ http://www.MoxieMafia.com/ http://www.TheMoxieMaven.com/ http://www.Kettlewell.net/ http://www.MoxDom.com http://www.facebook.com/moxdom http://www.twitter.com/kettlewell raj wrote: > Hi all, > > I need to add a WYSIWYG editor in an admin screen that my plugin > creates. I need the wysiwyg editor to be as similar to the one in the > Add/Edit post/page screen. > > Instead of packaging my own wysiwyg editor for distribution, I would > like to use the inbuilt one. How can this be done? > > Warm Regards, > Raj > > _______________________________________________ > wp-hackers mailing list > wp-hackers@... > http://lists.automattic.com/mailman/listinfo/wp-hackers > wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
/wp-admin redirectFirst time I've seen this. Here is the admin login link to a friends
wp site who just upgraded to 2.8.5 in the last few days: Http://www.mysticnebula.com/wp-admin Has anyone ever seen this redirect? It adds /?qu3Ry=wp-admin First for me, your thoughts are appreciated. Cheers, Dre Armeda Sent from my iPhone On Oct 26, 2009, at 10:28 AM, raj <websweetweb@...> wrote: > Hi all, > > I need to add a WYSIWYG editor in an admin screen that my plugin > creates. I need the wysiwyg editor to be as similar to the one in the > Add/Edit post/page screen. > > Instead of packaging my own wysiwyg editor for distribution, I would > like to use the inbuilt one. How can this be done? > > Warm Regards, > Raj > > _______________________________________________ > wp-hackers mailing list > wp-hackers@... > http://lists.automattic.com/mailman/listinfo/wp-hackers wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
|
|
|
Re: /wp-admin redirect/custom login pageHello Dre Armeda,
I had never seen that type of redirect. But the thing is that it is not doing anything worth seeing. I mean to say that it is just same as usual. Check out this admin login: http://www.freecontentforyourwebsite.co.cc/wp-login/ It is using Theme My Login Plugin. That's all i can help you. Warm Regards Mohammad Azad Shaikh Certified Ethical Hacker Undertaking BE(Computer Engineering) At Parul Institute Of Engineering & Technology Vadodara, India. Contact No: +919924028603 Email: azad_shaikh786@... website: http://www.azadshaikh.co.cc ________________________________ From: Dre Feeds <feeds@...> To: "wp-hackers@..." <wp-hackers@...> Cc: "wp-hackers@..." <wp-hackers@...> Sent: Mon, 26 October, 2009 11:09:04 PM Subject: [wp-hackers] /wp-admin redirect First time I've seen this. Here is the admin login link to a friends wp site who just upgraded to 2.8.5 in the last few days: Http://www.mysticnebula.com/wp-admin Has anyone ever seen this redirect? It adds /?qu3Ry=wp-admin First for me, your thoughts are appreciated. Cheers, Dre Armeda Sent from my iPhone On Oct 26, 2009, at 10:28 AM, raj <websweetweb@...> wrote: > Hi all, > > I need to add a WYSIWYG editor in an admin screen that my plugin > creates. I need the wysiwyg editor to be as similar to the one in the > Add/Edit post/page screen. > > Instead of packaging my own wysiwyg editor for distribution, I would > like to use the inbuilt one. How can this be done? > > Warm Regards, > Raj > > _______________________________________________ > wp-hackers mailing list > wp-hackers@... > http://lists.automattic.com/mailman/listinfo/wp-hackers wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers From cricket scores to your friends. Try the Yahoo! India Homepage! http://in.yahoo.com/trynew _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
| Free embeddable forum powered by Nabble | Forum Help |