Skip to content
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

Adding more features #6

Open
MasterOfTheTiger opened this issue Mar 6, 2018 · 4 comments
Open

Adding more features #6

MasterOfTheTiger opened this issue Mar 6, 2018 · 4 comments

Comments

@MasterOfTheTiger
Copy link

What do I need to do if I want to make another feature? I am trying to make small text, but I do not know where to add code. I have already done a couple of things, but they don't seem to be working.

Here is the background.js file.

code.zip

@MasterOfTheTiger
Copy link
Author

@pufflegamerz I really need your help.

Also, I want to help you out with this. I don’t want to see it discontinued.

@petabyt
Copy link
Contributor

petabyt commented Mar 12, 2018

Sorry for the late reply, I have been busy lately. To add a feature, Go to line 22, which contains all the icons. You could add< img src='blah' id='something' >. Next, go to about line 240 and you should see all the functions for the format options. Add one, and change this line of code:
var finText = txtarea.value.substring(0, start) + '(blah)' + sel + '(/blah)' + txtarea.value.substring(end);
.Lastly, add this to line 105:

var blah= [last variable created].replace("(blah)","<some html tag>");
var blah1= blah.replace("(/blah)","</some html tag>");

then change div.innerHTML = item2; to div.innerHTML = blah1;
It's pretty complicated just to add something. When I wrote that I never even bothered to write comments. I might re-write it soon so It will be better and easier to add features.

@petabyt
Copy link
Contributor

petabyt commented Mar 16, 2018

I've started working on a new prototype.

@MasterOfTheTiger
Copy link
Author

Good!

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

No branches or pull requests

2 participants