I want to build a very simple rich text editor that lets you bold text and maybe italicize. My app is for mobile casual writers. Is there a way to tell a multi-input text field to read certain markers (like * * or [ ] or " " ) as indications to bold the in-between text? I know this works on places like reddit, however I have no clue how to go about setting that up. Ideally, i would be able to tap a button and it would generate the markers in the multi-input field for me so I can just write instead of find them in my keyboard.
Can you not use the rich text input plug in?
I would prefer not to because the visuals don’t seem very customizable to fit the feel of the app and i literally only need bold and italicize capabilities… is there a way to create a workflow where a button can insert [ b] [ /b] into the input field?
Don’t know to be honest.
You might be able to customise the plugin using themes and or option settings, it is based on the SCEditor, so you might be able to override the defaults.
I just had a play and it is possible to override the functionality as you can see in the the screengrab, I reduced the toolbar to simply a Bold and italic elements.
What this basically does is find the element that has the class sceditor-RichTextInput and set its toolbar options.
I managed to work out what the class was by inspecting the source of the page in the dev tools of chrome.
Based on this, you should be able to fully customize the look and functions of the RichTextPlug to suit your needs.
thanks so much!!! i’m going to look into this. should be perfect
What could be the solution?
You should be able to do a workflow for the input change on the element and the stick it’s contents anywhere, e.g, dB or customstate etc.
ok, hope i got it. Thanks!
Bookmarked, thanks for sharing!
I am having the same issue. Did you figure out what the issue is?