-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve links on export/import #14
Comments
I have the same problem and that's really problematic if you want to :
I've created a workaround to export my links from etherpad. Maybe that's not the best way but some people may find it useful: exports.getLineHTMLForExport = async (hookName, context) => {
const content = $('<div>').html(context.lineContent);
content.find('span').each(function () {
const span = $(this);
const url = span.data('url');
if (!url) return; // not a url
span.replaceWith(
$('<a>').attr('href', `${url}`).text(span.text()));
});
context.lineContent = content.html();
}; I couldn't find how to preserve external links on setHtml or to copy paste it. Best regards |
Hi @LeaChemoul, I did not write this plugin, I just took the maintenance cause I improved the UI, so sorry but I have no more information than you have... |
@seballot Thanks for your work so far! Are you planning to actively maintain this project? Asking cause we're (Citizen OS - https://github.com/citizenos/) interested in a hyperlink plugin. I THINK this plugin needs a sizeable rewrite to support toolbar configuration, exports etc. So we're thinking if we are going to create a brand new plugin or PR this project. IF you lack time to maintain, which is perfectly understandable, we would like to take ownership of the project OR create a brand new plugin just to speed up the development and release cycle. Related to: citizenos/citizenos-fe#110 |
hi @tiblu I can defintly give you the ownership, should I transfer it to |
Yes, citizenos would be great.
Can you do the same for NPM?
All the best and thanks for work!
…On Wed, 9 Feb 2022, 19:00 Sebastian Castro, ***@***.***> wrote:
hi @tiblu <https://github.com/tiblu>
I can defintly give you the ownership, should I transfer it to citizenos ?
—
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYP6RYHUGNL6FXAPDO5XPLU2KMTXANCNFSM4S5NMXAA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
ok no prob. But you need to delete the fork on citizenos so I can transfer you the ownership |
for npm I have invited citizenos-owner as a maintainer |
@seballot Fork deleted.
Thank you! |
still not working for citizenos, as it's an organization I needed the proper right to transfer, so I transfered it to you and you will be able to transfer again |
All links are lost when exporting to html or any other format. Also, it would be great to restore them during import of saved document.
I am absulute dummy in node and js, but looking at the export code I noticed that there is some hook which enables including extra tags into exported html, so this must not be extremely complicated to do.
Regards,
Vasyl
The text was updated successfully, but these errors were encountered: