Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Gutenberg adding references not working #547

Closed
helen-oneill opened this issue Mar 1, 2019 · 6 comments
Closed

Gutenberg adding references not working #547

helen-oneill opened this issue Mar 1, 2019 · 6 comments

Comments

@helen-oneill
Copy link

helen-oneill commented Mar 1, 2019

ABT Version:
5.0.3

PHP Version:
7.2

Theme:
Maisha

Browser:
Google Chrome Version 72.0.3626.119

I am having trouble inserting references into text on pages.
I follow the method I used previously (before Gutenberg) consisting of:

  1. Export references from Endnote as .txt, file
  2. Make any edits (I sometimes need to add italics). Save at .ris
  3. Using the ABT 'import' button, import the file into the reference list. References appear
  4. Put the text cursor in the text where you want to add the reference and click 'add reference' (+).

It then asks for a DOI, PMID or PMCID or an option to 'add manually'. I frequently have ISSN's recorded in Endnote but not the others, and it seems it wont let me upload it without it. What is going on/what am I doing wrong? Can someone help?

Thanks,
Helen

@dsifford
Copy link
Owner

dsifford commented Mar 1, 2019

This is not enough information for me to be able to even begin figure out what is going on. If you'd like you may reopen this with more detailed information.

@dsifford dsifford closed this as completed Mar 1, 2019
@helen-oneill
Copy link
Author

Hi Derek, thanks for the reply.
The coding caught me out and hid the remained of my question, apologies for this. I have amended it so hopefully you now may be able to help.

Best wishes,
Helen

@dsifford
Copy link
Owner

dsifford commented Mar 4, 2019

Thanks @helen-oneill... The issue I think you're having is you're attempting to "insert" references, but you're clicking the "add reference" button.

Here's an example:

https://www.useloom.com/share/9ec376632142463ab775db89f1a4ecff

@helen-oneill
Copy link
Author

helen-oneill commented Mar 12, 2019 via email

@dsifford
Copy link
Owner

@helen-oneill Ah, yep, that's by design. There's no way the plugin can manage or even be aware of citations inside a custom HTML block, unfortunately.

The same is true for shortcode blocks.

@helen-oneill
Copy link
Author

Ok I have found a solution that seems to work by mikeicode on this issue thread: WordPress/gutenberg#6833

mikeicode wrote:

"You can achieve this with CSS.

If you add the following CSS at Appearance → Customize → Additional CSS:

/* --- Justify Text Option --- */
.justify-text {
text-align: justify;
}
Then in the editor when you have a block selected you can add the CSS class justify-text in the right bar under "Advanced", example: https://snag.gy/SKIoHe.jpg "

I can now insert citations into justified text without issue.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants