DesironnA 0 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 درودیک افزونه برای گذاشتنِ فیلم های سایت Aparat هست، که فقط در tinymce وردپرس دکمه خودش رو اضافه می کنه.من، از افزونه Ckeditor استفاده می کنم.قصد دارم (اگر ممکن هست)، دکمه مربوط به افزونه آپارات رو، به دکمه های افزونه Ckeditor اضافه کنم..آیا همچین چیزی امکان داره ؟لطفاً راهنمائی نمائید.http://wordpress.org/plugins/aparat-shortcodehttp://wordpress.org/plugins/ckeditor-for-wordpressسپاسنظری پور نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 add_action('init', 'custom_ckeditor_interface');function custom_ckeditor_interface(){add_filter( 'ckeditor_external_plugins', 'register_custom_ckeditor_plugins' );add_filter( 'ckeditor_buttons', 'register_custom_ckeditor_buttons' );}//Load external ckeditor pluginsfunction register_custom_ckeditor_plugins( $plugins ){$plugins['your_plugin_name_1'] = 'your_plugin_uri_1';$plugins['your_plugin_name_2'] = 'your_plugin_uri_2';return $plugins;}//Add more buttonsfunction register_custom_ckeditor_buttons( $buttons ){$buttons[] = array('button_1');$buttons[] = array('button_2');return $buttons;}http://wordpress.org/support/topic/adding-custom-plugins-buttons-to-ckeditor-40-wordpress-35-toolbar 3 نقل قول لینک به ارسال
DesironnA 0 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 (ویرایش شده) من این لینک رو مطالعه کردم، امّا در آخر گفته شد که اون شخص نتونست به خواسته ش برسه، ولی در یک لینک دی گر، تونسته : http://blog.eamster.tk/?p=100این لینک رو نیز مطالعه کردم، امّا روشی که گفته شده، تنها یک دستور html رو به دکمه ش میده. نه یک دکمه ی مربوط به یک پلاگین مثل همین پلاگین آپارات..امّا، در لینکی که شما دادید، مثل اینکه مستقیماً مربوط میشه به دکمه هایی که افزونه های مختلف به شخص میده..!حال، من گیج شدم، که چطور می تونم به خواسته خود برسم..اگر برای جنابعالی ممکن هست، لطفاً کُدِ مربوط به ادیتور من رو ادیت بفرمائید، تا از این سردرگمی رهایی یابم.بنده، قصد دارم دکمه مربوط به افزونه "آپارات" رو، به ادیتور CKeditorم، بیافزایم..سپاسم پیشاپیشنظری پورکُد :/*Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.For licensing, see LICENSE.html or http://ckeditor.com/license*//*** Documentation:* http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html*/CKEDITOR.editorConfig = function(config) {// The minimum editor width, in pixels, when resizing it with the resize handle.config.resize_minWidth = 450;// Protect PHP code tags (<?...?>) so CKEditor will not break them when// switching from Source to WYSIWYG.config.protectedSource.push(/<\?[\s\S]*?\?>/g);// Define toolbars, you can remove or add buttons.// List of all buttons is here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.toolbar_Full// WordPress basic toolbarconfig.toolbar_WordpressBasic = [{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight'] },{ name: 'links', items: [ 'Link', 'Unlink' ] },{ name: 'insert', items: [ 'Image', 'SpecialChar' ] }];// The equivalent of "WordpressFull" toolbar, defined in a way that makes adding buttons from plugins easier.config.toolbarGroups = [{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },// { name: 'forms' },'/',{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },{ name: 'links' },{ name: 'insert' },{ name: 'wordpress' },'/',{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },{ name: 'styles' },{ name: 'colors' },{ name: 'tools' },];// Remove buttons in "WordpressFull" toolbarconfig.WordpressFull_removeButtons = 'Save,NewPage,Preview,Print,Templates,CreateDiv,PageBreak,Subscript,Superscript,Styles';//IE: remove border of image when is as a linkconfig.extraCss = "a img { border: 0px\\9; }";// mediaembed plugin// config.extraPlugins += (config.extraPlugins ? ',mediaembed' : 'mediaembed' );// CKEDITOR.plugins.addExternal('mediaembed', ckeditorSettings.pluginPath + 'plugins/mediaembed/');}; ویرایش شده دی 92 توسط DesironnA نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 اینجا روشی گفتهhttp://blog.eamster.tk/?p=100http://dinofly.com/archived/files/htmlbuttons1.3.zip 1 نقل قول لینک به ارسال
DesironnA 0 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 من با این دانش بسیار کمی که در این مورد دارم، علناً "هیچ" کاری نتونستم انجام بدم..برای شما ممکنه کدی که خدمتتون دادم رو برام ادیت کنید ؟هرچه کردم، اضافه نشدند.. نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 طبق روش گفته شدهشما باید افزونه را ویرایش کنید نقل قول لینک به ارسال
DesironnA 0 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 متأسّفانه، هرچه سعی کردم موفّق نشدم..خب من که عرض کردم دانشم به حدّی نیست که بتونم این ویرایش رو انجام بدم.ممکنه از شما درخواست کنم این ویرایش رو در کُدهای من انجام بدید و من رو از این کابوس لعنتی خلاص کنید ؟ نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .