Comments (1)
By looking into the code, I saw that to get the RTE functionnality, our new component has to extend ComponentTextView
. My initial issue was that I did something like :
editor.DomComponents.addType('textBlock', {
isComponent: el => el.tagName === 'DIV',
extend: 'text',
model: {
defaults: {
editable: true,
tagName: 'div',
icon: 'ICON',
components: `Some text`
}
},
extendView: 'baseStructure'
})
And it tooks the view of my baseStructure
and not the text
component. I will try to find a workaround for that by don't extending my baseStructure
view.
from grapesjs.
Related Issues (20)
- BUG: Cannot set Block display value HOT 4
- BUG: Cannot read properties of undefined (reading 'lastComponent') HOT 1
- Node JS LTS Version HOT 1
- Linting, Formatting
- Commit Hooks HOT 1
- Release Process
- Typescript
- Dependencies
- BUG:Issue in plugin HOT 1
- How to load grapesjs by default preview HOT 2
- BUG: Setting the text content programmatically clears it in the canvas HOT 3
- BUG: Custom Component not able to visible in grapsJs/studio at first rendering HOT 2
- BUG: Cannot read properties of undefined (reading 'lastComponent') & resizable feature not work HOT 2
- BUG: Undo doesn't work after a Component's innerHTML is changed HOT 2
- @artf , I have a question that , can we implement custom js in studio? means is there any embed js code functionality ? HOT 2
- BUG: Resizable Box Disappears on Component Reselection HOT 4
- Traits Not Displayed After Reloading Editor for Custom Component HOT 2
- BUG: asDocument not working as expected HOT 5
- [Fix] Fix and refactor Sorter.ts HOT 1
- ---
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 grapesjs.