Redactor editor shows the videos instead of the link - redactor

Hi I am working on the redactor , when I paste the video link from the youtube in the redactor it shows the videos instead the link. how can avoid this ?.
I copied the link like this
1) Right click on the video
2) Get video URL
3) Copy the URL
4) Paste in the Redactor.
it shows the video instead the path or URL.
Thank you in advance.

This is a very old question, but for future reference:
Disable auto parsing of video links in the API, don't change the source files:
https://imperavi.com/redactor/docs/settings/autoparse/#s-autoparsevideo

Hi I had just comment the convertVideoLinks() in the redactor.min.js file issue solved .

Related

Open a link in a frame/lightbox

im using wordpress and want to add a link which open in a frame/lightbox. Cant find a small solution for that.
There should be no new window. Just a content box which appear inside the page where i am. I hope u know what i mean
That should be pretty easy using the Easy Fancybox plugin.
Citing the entry from the FAQ section of the plugin's page:
Can I display web pages or HTML files in a FancyBox overlay?
Yes. First, enable the iFrame option on Settings > Media. Then, in your post or page content create a link to any web page or .htm(l) file in your content. Then switch to the Text tab in the Classic Editor or to Edit as HTML (under More options in the block menu) in Gutenberg, find the link <a ... > tag and give it a class="fancybox-iframe" attribute.
Voilà !
Beware, though, that:
Note: Not all external web pages are allowed to be embedded in an iframe and may be blocked by a server response header or script. The result will be either an empty/blank light box or the target page “breaking out” of the light box and loading in the main browser tab.
And you'd probably face the same problem with any other iframe solution. So that would work better with locally served pages.

Copy paste image into wordpress editor + import in media library?

I am building a blog, and one of the category is based on images.
Yet I haven't found the solution to this simple question :
How do I import pictures in my media library via a simple copy paste in my post editor?
So far I've tested OnePress ImageElevator & ImagePaste but both of them simply paste an image from the website source and do not import it in my media library.
I would be eternally grateful if someone has the solution.
Thanks
The easiest and free way I've found is to install OnePress Image Elevator and then use Firefox. Using the WP editor in Firefox, you can add images in the following three easy ways:
1) drag a file from desktop and drop it in the editor,
2) clip an image to clipboard and paste it in the editor, and
3) drag an image from an open Firefox browser and drop it in the editor
Also, you can view the step in this brief video
https://drive.google.com/file/d/0BynQ_XEBrB4zWWRyWFVmSmZJcDg/view?usp=sharing

including CSS file in AdminLTE template

I want to use this Template called 'AdminLTE' [ https://github.com/almasaeed2010/AdminLTE] .
and when I save the ont-awesome.min.css from the link on my pc, and include it in my code, it just doesn't work.
any Idea guys? is it the same for you ?
Sorry for late reply
You need to download font files also
For that check that css you downloaded and search for url
you will get fonts required.
Download it to pc and link it in that css and you are ready to go

videojs player does not play when poster image is available

A client is using videojs in their wordpress theme and I am trying to figure out why when I add a poster to the video, the video does not ever 'buffer' or play. It sits there with the 'loading' spinner, but it will never play.
When I remove the poster (thumbnail) from the player, the video plays just fine.
I am using this shortcode in wordpress:
[videojs mp4="http://video-js.zencoder.com/oceans-clip.mp4", poster="http://moviewriternyu.files.wordpress.com/2013/08/mclovin-license.jpg"]
If I remove the , poster="http://... the video plays just fine.
Has this happened for anyone else?
Answer:
Videojs player does not like commas. , between any of it's inputs. Here's the right way to write it:
[videojs mp4="http://video-js.zencoder.com/oceans-clip.mp4" poster="http://moviewriternyu.files.wordpress.com/2013/08/mclovin-license.jpg"]
Just removed the , before poster
[videojs mp4="http://video-js.zencoder.com/oceans-clip.mp4", poster="http://moviewriternyu.files.wordpress.com/2013/08/mclovin-license.jpg"]
You have placed a comma between attributes but it is not allowed. Remove it and play the video.

ModX - embedded iframe disappears

I have a YouTube video embedded on a page in ModX. To place it, on the Page I switch TinyMCE off to reveal the HTML code then paste the iframe in. That works Ok but when I go back to edit something else in HTML mode the iframe code disappears.
Anyone know whats going on?
TinyMce is encoding some of the characters in your youtube code for you... it honestly thinks it is being helpful ;) . You have 3 options:
Reference the tinymce documentation, there are some options to tell it which characters not to encode. [sorry, don't remember offhand what they are]
turn off "rich text" on the particular resource you are trying to include the video in.
place your video code in a chunk & reference that chunk in your resource instead of the actual code. [probably your best bet]

Resources