question-mark
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.

Is there any plugin/feature available for setting editor behave on some string treat as a single entity?

See original GitHub issue

Version

suneditor - 2.42.0 suneditor-react - 3.4.0,

Additional context

I want to make a template editor in our SaaS which will be handlebars template. the behaviour I wanted is to treat {{ var }} as a single entity.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vijaygawariyacommented, Jun 3, 2022

Thank You @JiHong88. it’s working for me.

I found a simple solution also. Span with some attributes: contenteditable=‘false’ <span contenteditable=‘false’

It’s working for me.

1reaction
JiHong88commented, Jun 3, 2022

https://github.com/JiHong88/SunEditor/issues/1000#issuecomment-1140273726 Take advantage of this issue. If you put span tag and separate key codes, you can implement it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PluginFeature - IBM
Provides an abstract class that is extended to define a feature provided by the plug-in. Features are major functional areas that typically appear...
Read more >
Working with a String Object on a PCB in Altium Designer
This page details the PCB String object - used to place text on the selected layer in a variety of display styles and...
Read more >
169086 – Indentation is not maintained within string
I am using NetBeans for PHP development. In PHP, this is perfectly valid syntax: function functionName() { $someString = 'Some text over ...
Read more >
Why doesn't the String class in Java implement Iterable?
You would think that a String , which implements CharSequence , should be a "collection" of discrete characters. Instead, it is treated as...
Read more >
Tenable.sc 5.23.x User Guide
Configure one LCE server (requires an LCE®activation license) ... Tip: You can use the API to automate some Tenable.sc upgrade and plugin ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found