BUG: RTE insert link does not update DOM
Question
Version: "0.17.3"
Are you able to reproduce the bug from the demo?
- Yes
- No
What is the expected behavior? After inserting link using default RTE that it is immediately available to be further edited in settings, i.e. setting the HREF and Target
Describe the bug detailed After selecting text with the default RTE and turning it into a link, the text is correctly wrapped in <a> tags, however it is not available as a link component until after deselecting and then selecting some other text, sometimes having to repeat this twice before it is recognized as a GrapesJS component.
Are you able to attach screenshots, screencasts or a live demo?
- Yes (attach)
- No
this is my editor init:
this.editor = grapesjs.init({
container: '#gjs',
width: 'auto',
noticeOnUnload: 0,
components: this.landing_page.components || this.landing_page.html,
style: this.landing_page.style || this.landing_page.css,
storageManager: {
type: null
},
styleManager: {
clearProperties: true,
},
fromElement: false,
assetManager: {
storageType: '',
storeOnChange: true,
storeAfterUpload: true,
assets: [],
uploadFile: this.uploadImage,
},
}
Is there a way to force an update of the edited component after the link is inserted?
Answers (2)
Yeah, this is how it works right now (content is parsed and transformed in components only once the editing is finished). Probably we can use an approach like this as the default behaviour for links.
Updated the link creation from this release https://github.com/artf/grapesjs/releases/tag/v0.18.3
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3731
BUG: Text element not able to be selected twice after extended with events
Version: 0.17.25 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? Update a existing component o...
Issue #3018
Page refresh preventing after click on import
Version: 0.15.9 Are you able to reproduce the bug from the demo? Yes What is the expected behavior? Don't refresh the page after clicking o...
Issue #3622
BUG: I18n functionality
Version: latest Are you able to reproduce the bug from the demo?[] Yes[ ] No What is the expected behavior? to editor.I18n.setLocale("es")...
Issue #3457
BUG: Custom trait input not working
Hi @artf ! Version: 0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? The input is create...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.