S
S
Sergey Ignatiev2017-05-07 22:20:55
MODX
Sergey Ignatiev, 2017-05-07 22:20:55

How can I set up the TinyMCE text editor to automatically add images from the root?

Now, if you add an image to an article through the TinyMCE editor, it is not displayed, because the path is not set from the root, but in this way: src="assets/img/my_img/novosti/ovosti...."You have to manually put a slash everywhere at the beginning to get this look src="/assets/img/my_img/novosti/ovosti...."and the image is displayed. Tell. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2017-05-07
@serebro223

Specify the base href in the head of the site:
<base href="http://askmeplz.com/" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question