@pitaj library.js file is not at all executed. please to let me know how to do it. How to activate it?
A
aniinprni
@aniinprni
Posts
-
hook method is not triggering from custom theme library.js -
hook method is not triggering from custom theme library.jsHi i have created a custom theme so that new look and feel. but when a composer is loaded i try to fire a hook method. but that server side hook is not at all calling.
plugin.json
{ "hook": "filter:composer.formatting", "method": "resetComposerFormatting" },
library.js
library.resetComposerFormatting = function (hookData,callback) { if(hookData.options.length>0){ hookData.options = hookData.options.map(e=>{ return e.name != "thumbs"; }); } callback(null,hookData); };
But this method is not at all firing. did i miss anything ?
-
Convert arabic content to UnicodeHi EveryOne,
I have arabic content. i need to convert that text to unicode . for example "دبي" , this text should convert to "\u062f\u0628\u064a". Please help me out in this. Also please suggest me npm packages that ease my job..
Thanks