Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 29 13:36
    Lucienest commented #949
  • Jul 27 05:18
    mauricekindermann commented #868
  • Jul 27 05:12
    mauricekindermann commented #868
  • Jul 27 05:03
    mauricekindermann commented #868
  • Jul 27 05:02
    mauricekindermann commented #868
  • Jul 27 04:50
    mauricekindermann commented #868
  • Jul 27 04:17
    mauricekindermann commented #868
  • Jul 27 04:17
    mauricekindermann commented #868
  • Jul 27 04:15
    mauricekindermann commented #868
  • Jul 26 22:12
    ariel-devsar commented #1576
  • Jul 05 10:17
    mdsafeeuddin edited #1581
  • Jul 05 10:16
    mdsafeeuddin opened #1581
  • Jul 02 11:54
    Edson2001 commented #1572
  • Jul 02 08:45
    ryk4 commented #1572
  • Jun 29 15:43
    Edson2001 commented #1572
  • Jun 29 14:08
    ryk4 commented #1572
  • Jun 24 14:01
    nina-rafieifar opened #1580
  • Jun 23 09:27
    2klm closed #1579
  • Jun 16 12:56
    2klm commented #1579
  • Jun 16 11:44
    2klm commented #1579
Nate Mielnik
@nmielnik
I believe either of those should work, if all your trying to do is add some extra code to the removeFormat button
Sarven Capadisli
@csarven
@nmielnik Yes, ignoring would be helpful.. At first I thought adding contenteditable=false would help with that
Hazantip
@Hazantip
@nmielnik, thanks, i've extended removeFormat button constructor passing object with key 'handleClick' into edtiorInstance.toolbar.buttons
Hazantip
@Hazantip
button looks like
const removeFormat = {
            name: 'removeFormat',
            aria: 'remove formatting',
            action: 'removeFormat',
            contentDefault: '<b>X</b>',
            contentFA: '<i class="fa fa-eraser"></i>',
            handleClick: function (event) {
                    event.preventDefault();
                    event.stopPropagation();

                    // Undo default
                    this.execAction('removeFormat');

                    // Undo selection for all custom extension
                    const extensions = this.base.extensions;
                    const extensionsCustomOnly = this.base.options.extensions;

                    for (const key in extensions) {
                        const extension = extensions[key];
                        if (typeof extension.setInactive !== 'function') {    
                            continue;
                        }
                        if (typeof extension.classApplier !== 'object') {
                            continue;
                        }
                        extension.classApplier.undoToSelection();
                        extension.setInactive();
                        this.base.checkSelection();
                        console.log(`undo ${extension.name}`);
                    }
              }
      };
Hazantip
@Hazantip

Editor defaults

Is there is an option, to apply some actions initially to Editor? For example i want that all my text will be initially bold (do not propose use css on editor.)
Felix Tang
@tngflx
hi guys
i want to have a static toolbar as well as inline toolbar
is it possible to do that?
Arsalan Khalid
@arsalankhalid
Anyone familiar with how to approach sizing the whole editor, getting it into a form rather than the full page, the way it is now
just trying to start off with trying to figure out how to resize it, anyone able to redirect me towards something?
Felix Tang
@tngflx
channel is dead :(
AtomHeartFather
@AtomHeartFather
ello
Ayaz Uddin
@Ayaz2589
Hey everyone, is there a way to create code blocks into the medium-editor?
sloan-dog
@sloan-dog
@Ayaz2589 I'm interested in helping maintain
Jérémy Benoist
@j0k3r
@sloan-dog You should ping @nmielnik instead
Sarven Capadisli
@csarven

@sloan-dog @j0k3r @nmielnik FWIW: in the https://github.com/linkeddata/dokieli project, we use medium-editor.. but considering to switch to something else because of lack of dev activity in ME. Don't take this as criticism :) I decided to use ME awhile back because it hit the right boxes for dokieli's needs - also ME dev was quite active at the time. There are however some important issues IMHO - don't we all? - that makes it hard to work with or extend ME. From dokieli's POV, we just want to reuse an existing library as much as possible.. and the core of it need to be quite stable. We're not in the "business" of developing our own editor so counting on what the smart/hardworking folks are doing out there. I still think ME is great but it may be aging.. so if it gets picked up again, that'd be great. I don't know if there are fundamental shortcomings of the ME architecture that would make it more reasonable for a rewrite or whatever - this is something you folks know better. FYI recent discussion re the switch starts here: https://gitter.im/linkeddata/dokieli?at=5cb0caffbd70a40d5f3bd5ef . Note:

We need to factor in: regular WYSIWYG-like editing [..], collaborative-editing, versioning-friendly?, extensible for different forms of annotations (like RDFa embedding, Web Annotation..), active dev community

Happy to give further feedback. IIRC, I've already logged issues we've faced in ME GitHub issues and in dokieli's issues (search for ME or editor perhaps if of interest)
Jérémy Benoist
@j0k3r
Thanks for the kind words @csarven I think a lot of projects are using ME but we (@nmielnik and me) are no longer available to keep the project updated. I personnaly don't use it anymore in my current job and don't have enough spare time to maintain it during my free time.
Nate Mielnik
@nmielnik
thanks @csarven ! That all makes sense to me, my shortcoming was not trying harder to recruit & hand off the project years ago (I've actually done a talk about this exact topic). I'm not sure what the chances are of someone being willing to pick it up....but if no one does I can definitely empathize with not wanting to rely on it.
Carlos Guerrero
@guerrerocarlos
Hello @nmielnik happy to help over here!
I am working on a "github-integrated" editor called qinab.com that uses mediun-editor heavily, so since I am getting to know all the code anyway, happy to help with the project as well. @nmielnik
Shreyan Mehta
@duke7able
hello , I have worked on custom context-menus like this , i would be happy to help to contribute and maintain this repo
Dilantha
@dilantha111
Hi I work as a Full stack developer most of my experience are in java script, I would be happy to help
JasonSeah
@Jasonseah
Hi, would love to help in this amazing WYSIWYG library please do let me know how and what to help =D
wiredmartian
@wiredmartian
I'm interested a contributor to the project :)
Zhu Liang
@paradite
hey @nmielnik , i'm interested in helping to maintain the project. i built a small feature for ME before and helped with answering issues, if you still remember. and i really admire what you guys have achieved so far, so i don't want to see all the efforts go abandoned.
Bechir Ahmed
@BechirAhmed
Hey @nmielnik , thanks for your huge effort, i use this amazing WYSIWYG editor in my personal projects and i'm interested in helping to maintain it
Nate Mielnik
@nmielnik
@Jasonseah @wiredmartian @paradite @BechirAhmed apologies, my gitter notifications got screwed up
thebugzapper
@thebugzapper
Hi guys, I will help with this
Jiue-Ren Liao (Rick)
@xrick
Hi, everyone
I am seeking an easy tool to write medium articles, any suggestion?
Stefan Pejcic
@stefanpejcic
Hello everyone, the unofficial WordPress version can be found on: https://github.com/PluginsBay/Medium-Editor and soon on wp.org
Anyone that uses WordPress nad wants to help/contribute is welcome.
@nmielnik I'd also like to get involved in maintaining/collaborating
Nate Mielnik
@nmielnik
Awesome @stefanpejcic i'll add you to the repo now
Stefan Pejcic
@stefanpejcic
thanks @nmielnik great to be here
X-lem
@X-lem

Hey, I'm trying to get Medium to work with a runat="server" div.

<div class="editable" id="myDiv" runat="server">Information</div>

Then my back end.

var html = myDiv.InnerHtml

yet html always results in an empty string. If I remove the editable class html returns Information as expected. Does anyone have experience with getting the innerhtml from a medium editor?

X-lem
@X-lem

Solved
Seems like using a textarea instead of a div works.

<textarea class="editable" id="myTextArea" runat="server">Information</div>

It seems Medium creates a div and hides the textarea and auto updates the hidden textarea when the text within the div is changed.

Then the contents can be grabbed in the backend like myTextArea.Value

Dove Chen
@DoveChen
Hi
I have some problem when use the medium
When i want to limit the text input
But i can't use well
Can give me some advises
Ivo Valchev
@I-Valchev

hi everyone :-)

I'm using a single medium-editor element on the page (with Vue2-medium-editor)
is there a way to "redirect" any keypress to that component? thus, by typing without selecting it first, it types in it

Brajesh Yadav
@brajesh.mymailbox_gitlab
is there any medium editor , we can use with angular 8 for my travel portal
Abdul Matin
@shiponcs
I always got the toolbar static to the bottom of the root component, In ReactJS. Here is the codesandbox where I reproduced the problem.
https://codesandbox.io/s/compassionate-tree-qc6kf?file=/src/App.js
Nick
@nitnk9
Hi, I'm new but surely would like to help.
Philip Metzger
@philmetzger
Hey, anyone here?
Trying to get this working in NextJS but cant. any examples?
Adebayo Ijidakinro
@adeiji
Hey, I’m about to starting using this, but I have one question. How do I get the formatted content, I’m going to need to save this formatted text and then store it in a database. How do I get the formatted text?
Mark Kanning
@phosphenes
Howdy!! Anyone know how to deactivate a toolbar button from another toolbar button? I presume it'll have something to do with firing setInactive() on the target button...but I don't know HOW to grab a target button from within another buttons click handler. Thanks!