I have already added ian:accounts-ui-bootstrap-3 to my Meteor Project.
how can I add a Bootstrap datepicker field inside ian:accounts-ui-bootstrap-3 ?
Related
Is possible to push
Routing.generate()
to handlebars template ?
Does anyone know how to change the tooltip for the TinyMCE 4.x link buttons:
Thanks
Tooltips are defined when the button is created. For the button in question look in the link plugin code which is in the plugins/link folder within TinyMCE. You can find the addButton code there and change it as needed:
editor.addButton('unlink', {
icon: 'unlink',
tooltip: 'Remove link',
cmd: 'unlink',
stateSelector: 'a[href]'
});
....note that there are both minified and non-minified versions of the plugin code so change both to make sure your changes will work regardless of whether or not you load the minified or non-minified version of TinyMCE.
How can I include jQuery library, Bootstrap.js in Drupal 7 AMP Theme? I searched, but couldn't find any example.
Simple way is download JQuery update module.
Add bootstrap.js in theme settings file(themename.info):
;scripts[] = js/Bootstrap.js.js
i need vspace, hspace or align for image, than will be found on advimage for tinymce 3.x.
i was try put advimage plugin on tinymce 4.x but error.
i was try this step
I copy advimage folder plugin from tinymcd 3.x into 4.x
i was add "img[!src|border:0|alt|title|width|height|style]a[name|href|target|title|onclick]" to extended_valid_elements option.
i get from this tutorial :
advimage-advanced-image-plugin
that step is still not working....
The "advimage" plugin is not available for TinyMCE 4, but you can add an "Advanced" tab on the image dialog box using the image_advtab option. For example:
tinymce.init({
plugins: ["image", ... others ... ],
image_advtab: true,
...
});
ADVIMAGE is not yet supported in version 4.
Look here for the plugins that were dropped:
http://www.tinymce.com/wiki.php/Tutorial:Migration_guide_from_3.x
I'm creating a Wordpress App. It consists on using custom fields on custom type, for managing personal projects.
My issue: I want to add the admin editor (tinyMCE) on frontend. Considering that I can have many textareas that will begin TinyMCE editors. So, I used this code:
PHP (on theme functions.php):
// TINY-MCE EDITOR ON FRONTEND
add_filter('wp_head','add_tinymce_editor');
function add_tinymce_editor(){
wp_admin_css('thickbox');
wp_enqueue_script('wp-tinymce');
wp_enqueue_script('tinymce');
wp_enqueue_script('editor');
add_thickbox();
}
JS (on theme single-projects.php):
jQuery(document).ready(function(){
// EDITORS
tinyMCE.init({
mode : "specific_textareas",
theme : "simple",
editor_selector :"tinymce_enabled"
});
});
On JS I set the "editor_selector" with a Class for all textareas that will begin tinyMCE editors. I cannot assign a single ID for each textareas because these can be 4 or 5 or 6, or more!!!
HTML: (on theme single-projects.php):
<textarea name="new-task-description" id="new-task-description"
class="tinymce_enabled required"></textarea>
Each textarea is present on Jquery UI Accordions.
Now, my problem is, on Firebug (or browser console) I get this error:
tinyMCE is not defined
What's wrong?
thanks in advance!!!
With Wordpress 3.3 you can use wp_editor() which is a lot easier.
http://codex.wordpress.org/Function_Reference/wp_editor
The right way to include scripts is add_action('wp_enqueue_scripts', 'tinymce_editor');
If tinymce is not defined the file tiny_mce.js has not been loaded on the page. Make sure the file gets loaded eigther directly or with the means wordpress offers.