jodit-pro
Version:
PRO Version of Jodit Editor
8 lines • 2.3 kB
JavaScript
/*!
* jodit-pro - PRO Version of Jodit Editor
* Author: Chupurnov Valerii <chupurnov@gmail.com>
* Version: v4.9.27
* Url: https://xdsoft.net/jodit/pro/
* License(s): SEE LICENSE IN LICENSE.md
*/
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[426],{25088:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},40650:function(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch:function(){return f}});var n=t(82749),r=t(25088),s=t.n(r),i=t(6441),c=t(21537),l=t(50911),p=t(59451),a=t(2692);i.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled:e=>(0,p.isEditorEmpty)(e.editor),command:"startSearch"};class f extends l.Plugin{afterInit(e){e.registerCommand("startSearch",{exec(){let o,{s:t}=e;if(o=t.isCollapsed()?t.current()?.parentElement?.innerText:t.sel?.toString()){let e="https://www.google.com/search?q="+encodeURIComponent((0,c.trim)(o));window.open(e,"_blank")}}})}beforeDestruct(e){}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"google",group:"search"}])}}(0,n._)(f,"requires",["license"]),a.JoditPro.plugins.add("google-search",f)}},function(e){return e(e.s=40650)}])});