Changing default media dimension in tinymce 4 - tinymce

When I try to add a direct mp4 url using insert/edit media, it by default assign the dimension of: 300x150.
How can I change this default dimension?

I believe this setting is what you are after:
https://www.tinymce.com/docs/plugins/media/#media_dimensions
The documentation is your friend for these types of issues. Each TinyMCE plugin has a dedicated documentation page with all of its configuration options.

Related

Add link to text in neos beta 1.0.2

I am new to Typo3 neos.
I am using neos with version 1.0.2
When i try to add links to custom content types the link will not be proper
and it appears some thing like below.For external urls it works fine.
node://06fbba05-82f1-e0b4-0e5e-4549e7aa4d11
How can i add target blank for external urls and mailto link for emails?
Thank you in advance.
you need to apply a converter to your text that changes the internal presentation of the link to the real link. Examples are in:
Packages/Application/TYPO3.Neos.NodeTypes/Resources/Private/TypoScript/Root.ts2
Basically if your custom node type has a property "text", you do:
text.#process.convertUris = TYPO3.Neos:ConvertUris
in your TypoScript prototype.
I think mailto: should work by typing mailto:foo#bar.com into the link box. Setting different targets is currently not supported out of the box, but could be done with a custom processor.

How do I use protocol-relative urls (starts with //) in Plone and/or TinyMCE?

I would like to use protocol-relative URLs in Plone's TinyMCE e.g. //www.example.org points to http or https://example.org depending on which was used to access the page. Unfortunately they get filtered out or changed. Is there a toggle or setting to allow these?
TinyMCE has a setting 'convert_urls' (default true) that if changed to false would allow relative URLs. (The same setting may also allow common and undesirable browser URL-mangling to get through.)
There isn't a setting for this in Plone. You would just have to edit or override the bit of JavaScript that initializes TinyMCE to pass the setting.

yoast creates multiple og image tags, how to only use the one i defined?

I am having an issue with the SEO plugin from Yoast. By default, the Yoast plugin for Wordpress creates multiple og:image tags on my site. But I have no idea how to remove the other ones that are being generated by the plugin...
So how do i force it to only use the one I defined in the social section of the plugins settings area?
Best Regards
Webzunft's answer worked okay for me in removing the extra images but it broke the Keyword Density and other counts in Page Analysis tab. I solved it by stripping img tags from the content instead of returning an empty string:
function mysite_opengraph_content($val) {
return preg_replace("/<img[^>]+\>/i", "", $val);
}
add_filter('wpseo_pre_analysis_post_content', 'mysite_opengraph_content');
This way the plugin sees the text with no images and counts keywords correctly.
WordPress SEO creates the Open Graph tags for images for the featured image, all the images from the post content and if not any of those, uses the default image you specified in the settings area.
In my case, I wanted to switch off the use of the images in the content and only create the Open Graph tag for the featured image. This is easy added the following filter in your theme’s functions.php:
add_filter('wpseo_pre_analysis_post_content', 'mysite_opengraph_content');
function mysite_opengraph_content($val) {
return '';
}
This clears the content that is searched for images.
I explained the 3 filters one might use to manipulate how WordPress SEO created the Open Graph for images in this article: http://webgilde.com/en/wordpress-seo-facebook-image-open-graph/
UPDATE: as JoseV pointed out, my function has a drawback. The filter is also used when analyzing the content for SEO. JoseV posted a solution that prevents some of the analysis functionalities.

Orchard Upload Documents w/TinyMCE

I know Orchard contains a built-in set of options for TinyMCE with uploading media, but is there an equivalent for just uploading standard documents that is similar so users can link to them in the editor?
Have you tried TinyMCE Deluxe?
http://gallery.orchardproject.net/List/Modules/Orchard.Module.TinyMceDeluxe
You can use any of the official pluggins
You can use TinyMceDeluxe, as mentioned, which lets you use TinyMCE plugins. Then, you can use a TinyMCE plugin to get the functionality you need. Here are some of the options that I'm aware of:
MCFileManager
TinyBrowser
Ajax file/image manager
PDW File Browser

TYPO3: Custom options for "insert plugin" in backend

I am learning TYPO3 and extensions, for now, I've created a test extension about image uploading, handling and showing.
I have done the Backend for upload a new image, show a list, and edit image properties (once selected). This part is already implemented and working.
Now I am missing the "include" part, I mean, to insert an image in page via Insert Plugin on BackEnd.
My problem: When I select insert plugin, and I manually select my registered plugin, I want to render there a fluid template with options, image list, and so.
These options are for the user to select an image, a size, and so, for it to be shown in selected page.
I don't know which method have typo3 for showing templates in that part, so I am requesting a hint from where to config a template to be used there by TYPO3.
Note: This is not about asking implementations, just a hint to start and implement it myself.
You should not code that on your own.
I guess you are looking for TCA. In special for your Plugin you are looking for "flexforms". I guess this wiki page can help you get started with some examples.