Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simple replace Plugin

See original GitHub issue

Issue Description

Hi guys, I am really struggling to get my head around the plugins and altering selected text. Can any one point me to a simple demo where I can, for example, just replace commas in the selected text with a '<br>' when pressing a custom button.

Many thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

ajarticommented, Oct 12, 2017

Thanks @Alex-D I did read the documentation and look at the plugins code … but I can’t figure out how to get the selected text and how to re-insert it after massaging it. Hence the request for a simpler example or maybe a jsfiddle or similar 😃

Globulopoliscommented, Oct 12, 2017

@ajarti look at preformatted plugin code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Easy Media Replace - Plugins -
Easy Media Replace allows you to replace images and media files easily while retaining the attachment URL and ID. No more delete, re-upload, ......
Read more >
5 Best Search and Replace WordPress Tools to Fix Content
Better Search Replace is a simple search and replace plugin that lets users can the database for problems quickly and efficiently. The plugin...
Read more >
5 Best WordPress Search and Replace Plugins 2022 (Free ...
The WordPress search plugins such as Better Search Replace are designed to make checking for errors on databases easy and efficient.
Read more >
Intuitive replacements. · Real-time highlighting of replacement targets. · Easily replace the word under the cursor. · Leave the replacement history in the...
Read more >
How to Perform a WordPress Search and Replace (5 Methods)
The Better Search Replace plugin is developed by the WordPress team over at ... tool that can get the job done, and it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found