Closed danvim closed 9 years ago
@danvim How do you solved the Problem? I would like to disallow the features "link" and "image". It would be nice when the regarding buttons won't be rendered. And on top i would like to implement the features "underline" and "line trough".
Hi, add commands with: https://github.com/bevacqua/woofmark#editoraddcommandbuttonid-combo-fn
For hiding features, that's probably a separate issue -- but I did so using JavaScript after initializing woofmark
, which is not so clean but definitely works: https://github.com/publiclab/PublicLab.Editor/blob/master/src/adapters/PublicLab.Woofmark.js#L278-L281
@tobigit I forgot since it was long ago, but it was through looking through the source code. I eventually went for another editor.
@jywarren @danvim Ok, thank you. If woofmark will take part of our software i will need an configurable and clean way to handle command-buttons.
@bevacqua, is there something in your pipeline regarding configurable command-buttons?
I think there's a possibility of adding a new options param for rendered buttons, but it'd a bit complex to implement. Currently, buttons are referred to:
I guess to create this feature, you'd have to provide an opportunity to add new items to the strings, and new commands that correspond to them, before render occurs.
I have the following code:
Is there is not a built-in way to render added command buttons? Or do I have to do it outside woofmark?