Comments (7)
Hi @JudgementHC, maybe try this.
text: string;
editorInsertText() {
$('#summernote').summernote('editor.saveRange');
$('#summernote').summernote('editor.restoreRange');
$('#summernote').summernote('editor.focus');
$('#summernote').summernote('editor.insertText', this.text);
}
from ngx-summernote.
Hello @kamlesh0606 ! Sorry for delay. You can use angular forms for this, like:
this.form.get('html').setValue("hello!")
from ngx-summernote.
Hello,
this.form.get('html').setValue("hello!")
use for set value but i need to insert text at cursor position
have any way for this.
Thanks
from ngx-summernote.
Hi @kamlesh0606,
I am also looking for this issue, did you find any solution?
Thanks.
from ngx-summernote.
Hi @Rae-Lin , No
from ngx-summernote.
Greetings, @Rae-Lin @kamlesh0606
Has a solution been found?
from ngx-summernote.
Hi @JudgementHC, maybe try this.
text: string; editorInsertText() { $('#summernote').summernote('editor.saveRange'); $('#summernote').summernote('editor.restoreRange'); $('#summernote').summernote('editor.focus'); $('#summernote').summernote('editor.insertText', this.text); }
Thanks a lot
from ngx-summernote.
Related Issues (20)
- Ivy distribution
- another language and rtl
- How to restrict ImageUpload size in Summernote, How to upload Image to server in Angular 12
- Link and table popover is empty HOT 1
- Angular 14 support HOT 8
- drag and drop issue
- setting default font size and font family HOT 1
- ERROR TypeError: _this3._$element.summernote is not a function - In Angular 12
- Style Tags not found
- image upload HOT 1
- Error: Module not found: Error: Can't resolve 'ngx-summernote/public_api' HOT 1
- Mac os chrome browser - Summernote image drag and drop image duplicate shows as base 64 issue HOT 1
- Not able to change default values in configurations. HOT 1
- Table adding on top by Default HOT 1
- Image Upload Popup gets stuck HOT 1
- Cross-Site Scripting Vulnerability 2023-42371
- Please delete
- In summernote, style tag is removed after toggling from codeview in Angular 15. HOT 1
- Add support for Angular 17 HOT 5
- When we add strikethrough and increase font size of the text, strikethrough is misaligned
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-summernote.