#1310July 24, 2018by dazakorn3 answers
We are testing to use the editor and we want to know if the grape js editor works for content newsletters, we were doing tests but CSS styles in HTML are added as classes and classes do not work in gmail for example. How can I add CSS embedded in the HTML with the editor? For example: <div style = "color: # FF0000; .....
AnkitKachhadiya
hey @dazakorn we are also using these editor for newsletters we embedded CSS using following code you can also try these it worked for us: Initialze your editor in following way or simply add these code during initialization : forceClass:...
dazakorn
Hello Ankit, Perfect, I'll do tests with these changes, it seems that this is just what I needed, thank you very much. 2018-07-24 0:03 GMT-05:00 Ankit Kachhadiya <[email protected]>: hey @dazakorn <https://github.com/dazakorn> we ar...
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1309July 23, 2018by jvillena2 answers
I was trying to insert dynamic text on a component view in the HTML but when I'm saving the html hasn't got my changes. I'll try the following things: With the code above I can inject the text in the caret position (cursor position) but the method when I save the content I'm receiving the value.trim() concat with the...
jvillena
To insert the text in the highlight paragraph selected I did this because I was losing the focus after opening a popup modal dialog:
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1308July 23, 2018by manishkumaruit1 answer
bm.add('test-block', { label: "Icons", category: "Prismanote Blocks", content: { script: function () { var d = window.parent.window.modalJ; d.setTitle('ICONS'); d.setContent( <style> .tabs{ width: 600px; display: block; margin: 0px auto; position: relative; padding: 0px !important; } .tabs .tab{ float: left; display:...
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1307July 23, 2018by Abhisheknanda13444633 answers
Hi @artf is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to two elements. whenever i am adding style to the element, it is reflecting in both the elements. but after reloading editor it generates class dynamically again. I want to stop that...
AnkitKachhadiya
hey @Abhisheknanda1344463 Can you try this code editor.CssComposer.getAll().reset();
Abhisheknanda1344463
@AnkitKachhadiya Hey I want to Stop dynamic classes Which is generatred every time when you refresh page.
artf
@Abhisheknanda1344463 This should explain you some stuff https://jsfiddle.net/szLp8h4n/267/ Please @Abhisheknanda1344463, next time, create a demo for this kind of questions
#1306July 23, 2018by jvillena3 answers
H @artf, I have a pitfalls in the middle of saving the HTML content. Right now we have a popup modal dialog where I can select some special text and inject on the canvas in the selected element. The issue is when saving the HTML content the changes are not reflected on it. It likes I have to refresh or update the mode...
BlazedCode
Hi @jvillena. Would you mind sharing some of your code please? I'm attempting to do the same thing but I just can't figure it out. I keep adding <span> tags as "placeholders" to insert the variable values, but they are always added to the...
jvillena
I've just solved. I had to render the DomComponents after applying the changes. The solution was:
artf
No, with this editorRTE.DomComponents.render() you're triggering the render of all component, please read carefully about Components, by looking at stuff like this editorRTE.getSelected().view.$el[0].innerHTML = value I think you just didn...
#1305July 23, 2018by ionic6662 answers
Sorry, there's a problem that's been bothering me。 I created a component for chart. I write configuration items in script And I want the user to be able to modify the configuration items The problem is I can't get the chart
artf
You're completely misunderstanding the concept of JS in Components. Read the basics https://grapesjs.com/docs/modules/Components-js.html#basic-scripts and search in issues before posting a new one
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1304July 23, 2018by sanskipk2 answers
Hi I integrated grapejs with angular4.I added custom button.After click on edit button throwing error:- TypeError columnNumber: 7 fileName: "http://localhost:4200/vendor.js" lineNumber: 78800 message: "CanvasView.frame.el.contentDocument is null" ngOnInit() { console.log('oninit') this.editor = grapesjs.init({...
artf
There is a very similar issue #1288 please discuss it here. BTW I'd need a minimal live demo for such a case
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1303July 23, 2018by aj00222 answers
Hi, artf I would like to add some new block with custom slider when user dragged the slider into canvas need to show some popup with available options in flex slider and when user select that need to show the flex slider how can I achieve this. please help me, sir.
artf
You need to create a custom component https://grapesjs.com/docs/modules/Components.html https://grapesjs.com/docs/modules/Components-js.html
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
#1302July 21, 2018by michaelreckendorfer3 answers
I had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database. my loading.php is very simple for testing: <?php $ str = filegetcontents ('database.json'); echo $ str; ?> The string was split into individual characters and packaged in an array. After adju...
artf
https://grapesjs.com/docs/modules/Storage.html#setup-the-server
suresh5
I had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database.my loading.php is very simple for testing:The string was split into individual characters and packaged in an arr...
suresh5
I am not able to load template reply Can you help me with json format how to send ?
#1300July 20, 2018by FrciSmrci2 answers
Hi @artf the render of blocks outside the main editor added in v 0.14.5 isn't working with gjs-preset-webpage plugin, otherwise it works like a charm. Do you have any idea why this would be an issue? Thank you in advance!
artf
I think it's because the preset force the rendering inside its custom panels and, as the element of blocks is unique, is probably moved from the specified position. I close this issue as it has nothing to do with the core but I'd be glad t...
lock[bot]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.