Format lost when at block copy-paste
Permalink
Hi there,
Is there a way to keep the format of a block to be able to replicate it without formating again each new block?
Thank you!
V.
Is there a way to keep the format of a block to be able to replicate it without formating again each new block?
Thank you!
V.
If you are using the same form in multiple locations, place it in a stack and format it in the stack, then insert the stack where you need to show the form. That way, you benefit from only needing to maintain it in one place (the stack), rather than everywhere you have copied it.
Thank you! I ll try that...
Hi again John,
I did the stack thing, I formated the block there, but when I add it to the page, it doesn't bring the format with it.
Am I the only one with this issue?
Thank you!
V.
I did the stack thing, I formated the block there, but when I add it to the page, it doesn't bring the format with it.
Am I the only one with this issue?
Thank you!
V.
@byvictoria
Please include more details about what you are trying to do.
Screenshots would be helpful also.
Please include more details about what you are trying to do.
Screenshots would be helpful also.
Hi @MrKDilkington,
I want to be able to copy and paste a text block without having to format it again. For example, I add a new Content block, I settle in Block Design a yellow background and 10px top padding, and save it. Afterwards, as I want a second Content block that looks the same, I would like to copy the first block and paste it somewhere else, but when I do that, only the content is pasted, it doesn't have either the yellow background nor the padding...
Thank you!
V.
I want to be able to copy and paste a text block without having to format it again. For example, I add a new Content block, I settle in Block Design a yellow background and 10px top padding, and save it. Afterwards, as I want a second Content block that looks the same, I would like to copy the first block and paste it somewhere else, but when I do that, only the content is pasted, it doesn't have either the yellow background nor the padding...
Thank you!
V.
@byvictoria
I can confirm this. I tried to recreate what you are describing using a Content block in a stack with custom styles. When the stack is used, the Content block is wrapped in a container with the custom style classes, but the CSS for the custom style is not added to the page.
Example:
Content block in stack with a custom style
- HTML
- CSS for the custom style is added to the page head
Stack added to a page
- HTML
- the stack has the classes for the custom style, but does not have the CSS
I have attached screenshots describing this.
I can confirm this. I tried to recreate what you are describing using a Content block in a stack with custom styles. When the stack is used, the Content block is wrapped in a container with the custom style classes, but the CSS for the custom style is not added to the page.
Example:
Content block in stack with a custom style
- HTML
<div class="ccm-custom-style-container ccm-custom-style-main-2472"> <!-- Content block and related code --> </div>
- CSS for the custom style is added to the page head
<style type="text/css" data-area-style-area-handle="Main" data-block-style-block-id="2472" data-style-set="76"> .ccm-custom-style-container.ccm-custom-style-main-2472{background-color:rgb(255, 219, 0);padding-top:10px} </style>
Stack added to a page
- HTML
<div class="ccm-custom-style-container ccm-custom-style-main-2472"> <!-- Content block --> </div>
- the stack has the classes for the custom style, but does not have the CSS
I have attached screenshots describing this.
@byvictoria
Regarding Content blocks with custom styles copied to the clipboard:
- They work when pasted onto the same page. The Content blocks are wrapped in a custom style container and the CSS is added to the page head.
- They do not work when pasted onto a different page. They are not wrapped in a custom style container and the CSS is not added to the page head.
Have you checked the bug tracker to see if others are experiencing this issue? If no one has reported this issue, I recommend reporting it, including the steps required to repeat the error, and a link to this thread.
concrete5 bug tracker
https://www.concrete5.org/developers/bugs...
Regarding Content blocks with custom styles copied to the clipboard:
- They work when pasted onto the same page. The Content blocks are wrapped in a custom style container and the CSS is added to the page head.
- They do not work when pasted onto a different page. They are not wrapped in a custom style container and the CSS is not added to the page head.
Have you checked the bug tracker to see if others are experiencing this issue? If no one has reported this issue, I recommend reporting it, including the steps required to repeat the error, and a link to this thread.
concrete5 bug tracker
https://www.concrete5.org/developers/bugs...
Thank you @MrKDilkington...
I am using Long Story Short theme, could that be an issue? Because if you tell me that formated blocks can be copied within the same page, and as this theme has a particular area-slides lay out, maybe the bug is related to this particular theme.
Cheers,
V.
I am using Long Story Short theme, could that be an issue? Because if you tell me that formated blocks can be copied within the same page, and as this theme has a particular area-slides lay out, maybe the bug is related to this particular theme.
Cheers,
V.
@byvictoria
I don't believe it is a theme specific issue.
When you style a Content block, copy it to the clipboard, then add the copy to the page, is the copy wrapped in a div with classes for the container and style?
I don't believe it is a theme specific issue.
When you style a Content block, copy it to the clipboard, then add the copy to the page, is the copy wrapped in a div with classes for the container and style?
Hi @MrKDilkington,
No, there is no div with format for the container or class... The only format is what I used inline (like <h2 style="color: white";>, but the only div is this:
<div class="col-sm-6"> and then the code for the content of the block, no more classes or format divs whatsoever...
Thank you for your help...
No, there is no div with format for the container or class... The only format is what I used inline (like <h2 style="color: white";>, but the only div is this:
<div class="col-sm-6"> and then the code for the content of the block, no more classes or format divs whatsoever...
Thank you for your help...
@byvictoria
I think you should create a bug issue for it.
I think you should create a bug issue for it.
I will, thanks a lot!
Hi MrKDilkington
I reported the bug, it was confirmed by several people, but now I can't find the link to see if there were any updates...
I tryied searching with keywords but with no success, is there any other way to find bug reports by email or user names?
Thank you!
V.
I reported the bug, it was confirmed by several people, but now I can't find the link to see if there were any updates...
I tryied searching with keywords but with no success, is there any other way to find bug reports by email or user names?
Thank you!
V.
@byvictoria
Do you remember the subject for the issue or the date that you posted it?
Do you remember the subject for the issue or the date that you posted it?
Thank you @MrKDilkington, I just found it...
Here is the link,
http://www.concrete5.org/developers/bugs/5-7-5-2/clipboard-block-do...
If you are experiencing the same issue, could you confirm it too?
Cheers,
V.
Here is the link,
http://www.concrete5.org/developers/bugs/5-7-5-2/clipboard-block-do...
If you are experiencing the same issue, could you confirm it too?
Cheers,
V.