Convert Mobile Links to Desktop
Converts links for the mobile version of web sites into the corresponding desktop link.
// Converts links for the mobile version of web sites into the corresponding desktop link const beforeText = editor.getText(); const replacements = [ [/(\/\/(?:[a-z]+\.)?)m\.(wikipedia\.org\/)/gi, "$1$2"] ]; const afterText = replacements.reduce((acc, cur) => acc.replace(cur, cur), beforeText); editor.setText(afterText);
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.