grapesjs-html-block's People
grapesjs-html-block's Issues
HTML within sections
I am using grapejs with the MJML plugin. There's a blocks which work much like sections in grapejs. The HTML is not editable when placed in the sections.
Is this fixable?
Duplicate component when reloading the page
Hi @ryandeba
I have a problem with the component, which is that when I save the component and try to edit it, I don't get the desired result.
I found two cases:
1- I cannot select it:
The isComponent() function has the following code
isComponent: function(el) {
if (el.hasAttribute && el.hasAttribute("data-html-code")) {
console.log(el);
return {
type: "html-code",
content: el.innerHTML,
components: []
};
}
}
2 - The code is duplicated when reloading the page:
In this case remove from the previous code the components: []
Feature Request - Edit on Double Click
Hi! Awesome plugin! Thanks. A suggestion I have is to add a double click feature to it, so it is easier to edit the code. Here is the code changes I made to accomplish this:
In the component view:
view: defaultType.view.extend({
events: {
dblclick: function(){
editor.runCommand("open-html-code-editor");
}
},
})
In the block, change the default text to reflect this change:
content: '<div data-html-code>Double Click to Edit Code</div>'
I also added an advance category to the block, but that was just my personal preference.
category: 'Advanced',
rich text editor issue
How to add the icon of ordered List in rich text editor? Here is my code.
rte.add('insertOrderedList', {
icon: '',//how to add the icon of orderlist here??
attributes: {title: "Ordered List"},
result: (rte, action) => rte.exec('insertOrderedList'),
});
HTML Block with MJML
Great, Its work fine. If I want to create a html block with MJML framework, then How should I change this code?
Thanks.
borders in grapesjs
Is it possible to add border-top, border-right,border-left properties individually under the decoration heading in grapesjs. For now it only shows the border-width which gives all sided borders. I want only right or left sided borders.
Thanks
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.